[FWTools] fwtools 0.9.8 error on RHEL 3

Frank Warmerdam fwarmerdam at gmail.com
Fri Apr 29 09:51:15 EDT 2005


On 4/29/05, Norman Barker <nbarker at rsinc.com> wrote:
> I got round it by doing this by creating this script in my cgi-bin directory for mapserver and explicitly setting
> LD_LIBRARY_PATH again!!
> 
> #!/bin/sh
> . /usr/local/FWTools/fwtools_env.sh
> LD_LIBRARY_PATH=/usr/local/FWTools/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH
> exec mapserv "$*"
> 
> And this worked, any ideas on getting working without the hack?

Norman, 

One of the things I changed in 0.9.8 was to set the LD_LIBRARY_PATH
like this:
  LD_LIBRARY_PATH=${FWTOOLS_HOME}/lib:${LD_LIBRARY_PATH}:/lib:${FWTOOLS_HOME}/lib/fallback

My local libgcc_s.so is in the $FWTOOLS_HOME/lib/fallback.  The
intent was to only use my libgcc_s.so (in .../lib/fallback) if one isn't found 
in /lib.  But I am suspecting that your libgcc_s.so is either somewhere
else, or missing.  And that it would be better if I didn't distribute 
libgcc_s.so at all. 

Hmm, that doesn't explain why things work for you at the shell, but 
in the cgi situation.  Perhaps your local account already had an
LD_LIBRARY_PATH variable, but the cgi account did not, and the 
empty portion of the LD_LIBRARY_PATH is causing problems?  If
LD_LIBRARY_PATH is unset to start, it expands to something like:
/opt/FWTools/lib::/opt/FWTools/lib/fallback. 

Could you try a few experiments including:

 o Alter your script to read:

#!/bin/sh
LD_LIBRARY_PATH=/junk
export LD_LIBRARY_PATH
. /usr/local/FWTools/fwtools_env.sh
LD_LIBRARY_PATH=/usr/local/FWTools/lib:$LD_LIBRARY_PATH
exec mapserv "$*"

 o See if you have your own libgcc_s.so in /lib. 

I appreciate your assistance in fixing this up.  One of my objectives
with FWTools-linux is to make it fairly distribution ad version agnostic,
but there are definately some tricky aspects to making this work.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the FWTools mailing list