on my system (CentOS), I do this:
As that goes in its own file, there's no need for trickery.echo "/usr/local/lib" > /etc/ld.so.conf.d/ImageMagick.conf ldconfig
Oh, and of course my /etc/ld.so.conf is just this:
include ld.so.conf.d/*.conf
In Section
Seekers of Perl Wisdom