469,275 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

built with --enable-shared but get error: libpython2.3.so.1.0: can't open shared object file

Hi,

Please release me from my own private hell.

Platform: SuSE 8.1

I'm installing python 2.3 tarball as follows:

../configure --enable-shared
make
make install

When I simply type:

% python

I get:

python: error while loading shared libraries: libpython2.3.so.1.0:
cannot open shared object file: No such file or directory

This is really, really, frustrating. The file does in fact live in
/usr/local/lib. Interestingly this is outside PYTHONHOME. How do I fix
this silly problem (which the python install process should *never*
let happen in the first place).
-Doug
Jul 18 '05 #1
2 3160
tu****@mmedia.is (Douglass Turner) writes:
Please release me from my own private hell.
OK, just install the non-shared library build.
Platform: SuSE 8.1

I'm installing python 2.3 tarball as follows:

./configure --enable-shared
make
make install

When I simply type:

% python

I get:

python: error while loading shared libraries: libpython2.3.so.1.0:
cannot open shared object file: No such file or directory

This is really, really, frustrating. The file does in fact live in
/usr/local/lib.
Is that in /etc/ld.so.conf? Maybe you should set LD_LIBRARY_RUN_PATH
(or whatever it's called).
Interestingly this is outside PYTHONHOME. How do I fix this silly
problem (which the python install process should *never* let happen
in the first place).


Unclear what Python can do. If you want to install a shared library
somewhere that the system doesn't look for it by default, you have to
do something to get it to look there. I guess there's probably some
way of putting an absolute path in the executable, but that leads to
its own form of entertainment (like, I would imagine, not being able
to run the interpreter until you install it).

Cheers,
mwh

--
It could be argued that since Suitespot is infinitely terrible,
that anything else, by very definition of being anything else,
is infinitely superior. -- ".", alt.sysadmin.recovery
Jul 18 '05 #2
tu****@mmedia.is (Douglass Turner) writes:
python: error while loading shared libraries: libpython2.3.so.1.0:
cannot open shared object file: No such file or directory

This is really, really, frustrating. The file does in fact live in
/usr/local/lib. ...


Try running

/sbin/ldconfig -v | less

it should list libpython2.3.so.1.0 and starting python should now
automagically load the shared library.

--
Manfred
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Haro Panosyan | last post: by
1 post views Thread by Dog Walker | last post: by
reply views Thread by member thudfoo | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.