I would like to bundle a standalone version of the GraphicsMagick gm
binary with an application, so that I don't have to build and install the GraphicsMagick library on the server where the application is supposed to run.
Details
I'm creating a build system that can generate a tar-ball containing an entire node.js application including all the binary dependencies (in our case the node
binary and the GraphicsMagick library). It then uploads it to a server, extracts it and run it.
I've tried to just ship it with a pre-compiled gm
binary, but as expected gm
depends on several libraries, so I get errors like gm: error while loading shared libraries: libGraphicsMagick.so.3: cannot open shared object file: No such file or directory
.
I'm running OSX locally and our servers run Ubuntu.