From: Carl Youngblood Date: 2003-10-01T02:39:01+09:00 Subject: Re: fastcgi permission error > so, when any program runs that requires 'fcgi.so', it, in turn, will cause the > linker to look for all the other libs it needs. sometimes the paths will be > incomplete and the linker will need to look for the others in LD_LIBRARY_PATH > or /etc/ld.so.conf. it can happen (it has to me) that a module _you_ require > works completely find because the directory of the libs _it_ depends on are in > your LD_LIBRARY_PATH and ld.so can find them. however, when you are running a > cgi it is user nobody that is running the script and his LD_LIBRARY_PATH may > not have a path where the depending lib can be found. Yep, that seems to be the problem. In fact, libfcgi.so.0 is not being found for any user. [carl@dhcppc1 carl]$ ldd /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fcgi.so libfcgi.so.0 => not found libdl.so.2 => /lib/libdl.so.2 (0x4001b000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001e000) libm.so.6 => /lib/libm.so.6 (0x4004a000) libc.so.6 => /lib/libc.so.6 (0x4006c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libfcgi.so.0 is in /usr/local/lib. I added /usr/local/lib to /etc/ld.so.conf, but I'm still seeing the same problem. I'm assuming that it's just because editing the file doesn't update my environment automatically. The thing is, I'm trying to write a shell script that will take a default redhat installation and setup apache with ruby-fcgi so I would like to know how to get my system to dynamically update my changes to /etc/ld.so.conf. Thanks for all the help. Carl