cat install-imagemagick.sh #!/bin/bash su -c '( # uncomment the following line if you need to get the file #wget 'http://downloads.sourceforge.net/imagemagick/ImageMagick-6.3.0-5.tar.gz' tar -xzvf ImageMagick-6.3.0-5.tar.gz cd ImageMagick-6.3.0 ./configure make make install cd - rm -rf ImageMagick-6.3.0 )' 2>&1 | tee installImageMagickOut.txt echo " ***************************************************************** image magic should be installed from source. now let's test if perl -MImageMagick works you may get errors about a missing .so file if this happens, try doing ( updatedb; locate the-so-file.so; ) then change /etc/ld.so.conf to include the directory containing that file then do ldconfig and try again ***************************************************************** " /usr/local/path/to/custom/perl -MImage::Magick -e '' #### $ cat so-config-imagemagick.sh #!/bin/bash ./so-config-from-subdir.sh if [ ! -f /etc/ld.so.conf.d/imagemagick.conf ]; then echo /usr/local/lib >> /etc/ld.so.conf.d/imagemagick.conf ldconfig fi result=`/usr/angebote/perlroot/bin/perl -MImage::Magick -e ''` if [ -n "$result" ]; then echo result: $result exit echo "seems there was a problem configuring shared libraries for image magick running /usr/angebote/perlroot/bin/perl -MImage::Magick -e '' resulted in error $result if you got an error about a missing .so file, try doing ( updatedb; locate the-so-file.so; ) then change /etc/ld.so.conf to include the directory containing that file then do ldconfig and try again " fi $ cat so-config-from-subdir.sh #!/bin/bash # if we aren't reading from the ld.so.conf.d subdir, start doing so # if the result of the grep is a zero length string config_from_subdir=`grep 'include /etc/ld.so.conf.d/\*.conf' /etc/ld.so.conf`; if [ -z "$config_from_subdir" ]; then echo 'include /etc/ld.so.conf.d/*.conf' >> /etc/ld.so.conf fi mkdir -p /etc/ld.so.conf.d $