0

I need to make a portable build of ImageMagick so that I can copy and run it on another machine without having to install 3rd party shared libraries.

I compiled it by running

./configure --disable-shared \
            --enable-delegate-build \
            --prefix=/app/bin/linux/imagemagick-7

followed by make && make install. Then I copied the files from /app/bin/linux/imagemagick-7 to a different server, but running ldd still shows that some required libraries are missing:

# ldd bin/magick
    linux-vdso.so.1 (0x00007ffcde3c5000)
    libjbig.so.0 => not found
    libtiff.so.5 => not found
    libjpeg.so.8 => not found
    libgomp.so.1 => not found
    /* omitted for brevity */
    /lib64/ld-linux-x86-64.so.2 (0x00007f014836c000)

I can copy these files to a "dependencies" directory and point to it before execution using export LD_LIBRARY_PATH=dependencies, but how can I compile the code so that all of the dependencies will end up in a subdirectory of the install directory?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.