By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,942 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,942 IT Pros & Developers. It's quick & easy.

--enable-shared, how do i set the rpath?

P: n/a
I've built a python with --enable-shared in order to support mod_python,
but now I have to set LD_LIBRARY_PATH to $prefix/lib.

Worse, it seems mod_python will die on some import statements,
I'm suspecting ones that need to pull in .so's.

Any clues appreciated...
Mark.

--
Mark Harrison
Pixar Animation Studios
Nov 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mark Harrison schrieb:
I've built a python with --enable-shared in order to support mod_python,
Why do you think you have to build with --enable-shared to support
mod_python? I'd try to avoid --enable-shared if possible. It
has undesirable consequences...
but now I have to set LD_LIBRARY_PATH to $prefix/lib.
.... this being one of them. Actually, if you can pass -Wl,-rpath
correctly to the linkage of mod_python, you don't need
LD_LIBRARY_PATH, unless you move libpython2.5.so around.
Worse, it seems mod_python will die on some import statements,
I'm suspecting ones that need to pull in .so's.
You should inspect sys.path to find out whether it ought to find
those modules.

Regards,
Martin
Nov 27 '06 #2

P: n/a
Mark Harrison wrote:
I've built a python with --enable-shared in order to support mod_python,
but now I have to set LD_LIBRARY_PATH to $prefix/lib.

Worse, it seems mod_python will die on some import statements,
I'm suspecting ones that need to pull in .so's.
I find that most of my Apache problems stem from incorrect permissions. Make
sure that the user running the Apache process has "read" and "execute"
permissions for the .so's.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Nov 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.