How to associate GraphicsMagick with an application?

I would like to associate the standalone version of the GraphicsMagick binary gmwith the application, so I do not need to create and install the GraphicsMagick library on the server on which the application is to run.

More details

I am creating a build system that can generate a tarball containing the whole node.js application, including all binary dependencies (in our case, the binary nodeand the GraphicsMagick library). Then it uploads it to the server, retrieves and runs.

I tried just sending it with a precompiled binary gm, but, as expected, gmdepends 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 am running OSX locally, and our servers are running Ubuntu.

+5
source share
1 answer

GraphicsMagick --disable-shared -disable-installed. , . - "make DESTDIR =/tmp/gminstalldir install". , ( ) , , 'gm'.

- "gm" script, (, LD_LIBRARY_PATH), . /, .

+6

All Articles