473,563 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3384
tu****@mmedia.i s (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.re covery
Jul 18 '05 #2
tu****@mmedia.i s (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
39353
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 Studio .NET 2003 Microsoft Data Access Component MDAC 2.8 ..NET Framework 1.0 ..NET Framework 2.0 Beta ..NET Framework 2.0 SDK Beta ASP.NET web matrix project Version 0.6
2
2237
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 templete function. Now let say from that executable I am loading a shared object and executing(dlsym-ing) some f() function, which inside calls the templete function. (Of course the header file...
1
4446
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 Microsoft Jet Engine workgroup information file". I've looked on the Microsoft website (where I normallly get 1000 convoluted results based on my searches) and when I type this in, I don't get a...
3
24322
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 2.3.4. When I run the application through direct console connection, It works perfect. But, when I schedule a crontab job to run the application, It logs this
1
3741
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 such file or directory I just installed db2 9.1 express-c for linux to give it a try since I have been using the windows version.. it seems to be missing some libs.. I searched google for the...
1
3495
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. The call from python is libdialog.init_dialog( x, y) I need to define x and y so that they will have the structure of sys.stdin and sys.stdout; the called function (init_dialog) is using a (std?)...
0
1147
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 * from ctypes.util import find_library libc = CDLL(find_library("c")) libdialog = CDLL(find_library("dialog"))
2
6976
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 2.3.4. Running the application through direct console, when I try to import the cx_Oracle, I get the following error message: ImportError: /usr/lib/python2.3/site-packages/cx_Oracle.so: cannot...
3
2815
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 have sucesfully cross compiled and m2crypto.so file has been generated. when I give the make command, python script is called internally which should take m2crypto.so module as input and should...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.