[Trac] Problem with svn-python bindings when run from apache

Dima Diall dimadiall at gmail.com
Mon Jun 6 01:26:19 CDT 2005


Christian, bingo!

On 6/5/05, Christian Boos <cboos at wanadoo.fr> wrote:
> ...
> You can try to debug this by issuing a 'ldd /long/path/sw/lib/libsvn_subr-1.so.0'
> in the shell and within the cgi to see the differences.

$ diff /tmp/ldd*
1,3c1,3
<       libaprutil-0.so.0 =>     /long/path/sw/lib/libaprutil-0.so.0
<       libexpat.so.0 =>         /long/path/sw/lib/libexpat.so.0
<       libapr-0.so.0 =>         /long/path/sw/lib/libapr-0.so.0
---
>       libaprutil-0.so.0 =>     /opt/httpd/lib/libaprutil-0.so.0
>       libexpat.so.0 =>         /opt/httpd/lib/libexpat.so.0
>       libapr-0.so.0 =>         /opt/httpd/lib/libapr-0.so.0

I am really clumsy: 1st, for forgetting about ldd in my "toolbox" and,
2nd, because I was already showing the environment variables in my
diagnostic cgi script and overlooked the obvious -- apache is
prepending it's own libraries to my custom path...

LD_LIBRARY_PATH=/opt/httpd/lib:/long/path/sw/lib:{REST...}

I overrode it by explicitly setting it (SetEnv) instead of passing
from the shell (PassEnv) and it works flawlessly. Now just need to
set-up modpython :-)

Merci beaucoup!
--
/dima [http://www.cs.ucl.ac.uk/students/d.diall/]

PS: btw, the Trac's installation guide puts a "CGI-capable web server"
in optional packages, does this mean that it is possible to run Trac
directly using just Python, à la MoinMoin?


More information about the Trac mailing list