On Fri, 4 Aug 2006, Lance Squire wrote:

> unknown wrote:
>>
>> you should never, never compile as root.  fyi.
>>
>
> Yes, but I must 'su' for the 'gem install rmagick' to work properly.

that means you are compiling as root.  if the installs uses non-standard
library paths (LD_RUN_PATH or -r switch to ld.so) they will then fail at
runtime as doing this as root is silently ignored.

>>> libs ARN'T in 'usr/local/lib' they are in 'usr/lib' (see top)
>>
>> and do you have ld.so configured to look there?
>>
>
> Well, as Rails is working properly, and was installed the same way, I
> presume that ld.so is pointing to 'usr/lib'

rails doesn't require a properly configured ld.so since it uses now shared
libs

> Can't find relevent ld.so to check...
>
> # locate ld.so
> /etc/ld.so.cache
> /etc/ld.so.conf
> /etc/ld.so.conf.d
> /etc/ld.so.conf.d/mysql-i386.conf
> /etc/ld.so.conf.d/qt-i386.conf
> /usr/lib/librpmbuild.so
> /usr/lib/kde3/kded_kssld.so
> /usr/share/doc/man-pages-ja-20060115/translation_lists/ld.so.translation_list
> /usr/share/man/ja/man8/ld.so.8.gz
> /usr/share/man/man8/ld.so.8.gz

to check - find the '*.so' created by the 'gem instann rmagick' command, then
do something like

   ldd RMagick.so

for instance

jib:~ > ldd /dmsp/reference/ruby-1.8.1/lib/ruby/site_ruby/1.8/i686-linux/RMagick.so
         libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x0086e000)
         libz.so.1 => /usr/lib/libz.so.1 (0x002d6000)
         libMagick.so.6 => /dmsp/reference/lib/libMagick.so.6 (0x00c1f000)
         libtiff.so.3 => /dmsp/reference/lib/libtiff.so.3 (0x00e82000)
         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x0068f000)
         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00ad4000)
         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00578000)
         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00111000)
         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00128000)
         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x009c1000)
         libbz2.so.1 => /usr/lib/libbz2.so.1 (0x00e08000)
         libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00207000)
         libm.so.6 => /lib/tls/libm.so.6 (0x0079a000)
         libdl.so.2 => /lib/libdl.so.2 (0x003f7000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x0053a000)
         libc.so.6 => /lib/tls/libc.so.6 (0x00ae2000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00506000)


-a
-- 
happiness is not something ready-made.  it comes from your own actions.
- h.h. the 14th dali lama