I have been compiling ImageMagick 3.1.2 with the following options ./configure --prefix=/usr/local/imagick-3.1.2/ --with-php-config=/usr/local/php-5.3.13/bin/php-config --with-imagick=/usr/local/ImageMagick-6.8.8-6/ --libdir=/usr/local/apache/lib/This is working great but I would like to put all librairies (libMagickCore-6.Q16.so.2, libjpeg.so.62 ....) needed for imagick.so in one folder such as /usr/local/apache/libsThen I would export the environment variable LD_LIBRARY_PATH=/usr/local/apache/lib:Any idea ? 
Compiling ImageMagick with special path to librairies
compiling;php;imagemagick