ImageMagick is installed in a local directory, doesn't work

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick is installed in a local directory, doesn't work

Post by magick »

Add --disabled-installed to your configure script command line and rebuild/reinstall then use the MAGICK_HOME environment variable.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: ImageMagick is installed in a local directory, doesn't work

Post by anthony »

Note --disabled-installed configuration does install a copy of IM
What it does is tell IM to try and NOT use the system installed installed version. That is it will look for libraries and coders in the directory given by the MAGICK_HOME environment variable first. This is the recommended solution as
you only need to set that environment variable and your command PATH.

If you do not want to use this, you can still have the system installed IM and a personal IM installed together. I myself have done this.

The trick in that case is to ensure that the personal installed version has the right --prefix configuration option to install in somewhere in your home, so the binaries and libraries have the right path locations for coders and delegates. Also when running you need to ensure that PATH and LD_LIBRARY_PATH, lists your personal IM before any system version, or you will get signature mismatches and other posible odd behaviours.

Basically you need to have to do a lot more work to make sure you only use your personal version of IM and not the system version. A little harder requiring more setup, especially for scripts run from web servers, daemons, GUI, or remotely. Caution and care is needed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply