472,342 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

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 3276
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert | last post by:
Ref. Windows 2000 proffessional 5.00.2195 Service pack 4 Internet explorer 6.0.2800.1106 Visual basic .NET Standard 2003 MSDN library for Visual...
2
by: Haro Panosyan | last post by:
Suppose I have defined a templete function prototype in a header file and the body in .cpp file and created executable without actually calling the...
1
by: Jozef | last post by:
Hello, I am running the code shown below, and when it runs the "doc.Permissions=1048319" line, I get a "Run-time error 3358: Cannot open the...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python...
1
by: vasilip | last post by:
root@Server:/opt/ibm/db2/V9.1/bin# ./db2adutl ../db2adutl: error while loading shared libraries: libApiDS.so: cannot open shared object file: No...
1
by: Dog Walker | last post by:
I need to call a function in a shared object with this signature: init_dialog(FILE *input, FILE *output) The FILE*'s are to stdin and stdout. ...
0
by: member thudfoo | last post by:
On 11/8/08, Dog Walker <thudfoo@gmail.comwrote: I should have said "stderr" rather than "stdout". And the answer is: from ctypes import *...
2
by: Rhuddlan | last post by:
Hi, I am using RedHat EL 4 and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.3.1-10g-py23-1.i386.rpm) and Python...
3
by: Rams chin | last post by:
Hi, Iam trying to build crda agent module on a cross platform(ARM). To build the same, one of the input module is m2crypto shared object file. I...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.