Forum OpenACS Q&A: Re: Error: return: failed to redirect '404': exceeded recursion limit of 3

Hi Tammy,

libpq.so is not found error is likely caused by the fact your postgres is probably the tarball.  Since libpq.so is likely located on /usr/local/pgsql/lib which is not in the library path of your OS.

A solution to do this is add LD_LIBRARY_PATH to your env.  You can either use a shell script similar to this.

export LD_LIBRARY_PATH=/usr/local/pgsql/lib:PUT_YOUR_OTHER_PATHS_HERE

$NSD_HOME/bin/nsd -t yourconfig.tcl -u nsadmin

You can also do the above on your shell before making the shell script.  Similar stuff must be done for daemontools.

If you have done this its and its not working check out if /usr/local/pgsql/lib has the correct rights.  I have encountered this problem too when the dir was set to 750.  Eventhough root was the user I used to run it, it did not seem to find the lib.

Good luck and welcome to OpenACS.