473,545 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirecting ./configure --prefix

Dan
I suspect this isn't specifically a Python question, but I
encountered it with Python so I thought I'd ask here.

I'm running Linux (Fedora 2), and just downloaded the Python 2.4
kit. I did the following from my user account:
./configure --prefix=/some/private/dir --enable-shared
make
make test # all was okay
make install

Now, when I try to run this I get the following error:
python: error while loading shared libraries:
libpython2.4.so .1.0: cannot open shared object file: No such
file or directory

This library is in /some/private/dir/lib, but that directory is
not being searched.

So, I have these questions:
- Can I get Python to search /some/private/dir/lib for
library files?
- Will sys.path be okay? How can I make it okay?
- Is there anything else I need to worry about?

Any help would be appreciated.

Thanks,
Dan

--
dedded att verizon dott net
Jul 18 '05 #1
3 2532
On Monday 13 December 2004 21:15, Dan wrote:
I suspect this isn't specifically a Python question, but I
encountered it with Python so I thought I'd ask here.

I'm running Linux (Fedora 2), and just downloaded the Python 2.4
kit. I did the following from my user account:
./configure --prefix=/some/private/dir --enable-shared
make
make test # all was okay
make install

Now, when I try to run this I get the following error:
python: error while loading shared libraries:
libpython2.4.so .1.0: cannot open shared object file: No such
file or directory

This library is in /some/private/dir/lib, but that directory is
not being searched.

So, I have these questions:
- Can I get Python to search /some/private/dir/lib for
library files?
- Will sys.path be okay? How can I make it okay?
- Is there anything else I need to worry about?


I think you just need to this if your shell is bash (default shell in
FC2 I think)
LD_LIBRARY_PATH =/some/private/dir/lib; export LD_LIBRARY_PATH
or if you're using csh or tcsh
setenv LD_LIBRARY_PATH /some/private/dir/lib

If that works, you can put this in the appropriate dot file so you don't
have to retype them each time you login/create a new shell.

For bash I think it's ~/.bashrc or ~/.profile
and for csh it's ~/.cshrc and ~/.tcshrc for tcsh.

HTH,
Dave
Jul 18 '05 #2
Dan
Dave Reed wrote:
LD_LIBRARY_PATH =/some/private/dir/lib; export LD_LIBRARY_PATH


LD_LIBRARY_PATH does the trick, and sys.path seems okay by default.
Thanks!

/Dan

--
dedded att verizon dott net
Jul 18 '05 #3
Hi Dan,
LD_LIBRARY_PATH =/some/private/dir/lib; export LD_LIBRARY_PATH


LD_LIBRARY_PATH does the trick, and sys.path seems okay by default.
Thanks!


If you are the admin of the machine and python is not the only package
installed in a non-standard directory, then editing the /etc/ld.so.conf
file might be the better option.

Have look at 'man ldconfig' and 'man ld.so'.

Yours,

Mark
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2855
by: Holger Joukl | last post by:
Hi there, 2 questions regarding build/installation issues: 1. In the python 2.3.3 setup.py script, the detect_modules method of class PyBuildExt contains the following code: 253 if os.path.normpath(sys.prefix) != '/usr': 254 add_dir_to_list(self.compiler.library_dirs, 255 ...
3
4792
by: paul koelle | last post by:
Hi list, My ultimate goal is to have a small HTTP proxy which is able to show a message specific to clients name/ip/status then handle the original request normally either by redirecting the client, or acting as a proxy. I started with a modified version of TinyHTTPProxy postet by Suzuki Hisao somewhere in 2003 to this list and tried to...
2
466
by: CSN | last post by:
Is is possible to find out what options (prefix, bindir, etc.) were specified to "configure" when Postgres was built? __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ ---------------------------(end of broadcast)---------------------------
1
3290
by: Markus Wollny | last post by:
Hi! I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache Ant version 1.5 and j2sdk1.4.1_05 installed: Verifiying ant: # which javac /usr/java/j2sdk1.4.1_05/bin/javac # ant -version Apache Ant version 1.5 compiled on October 15 2002
8
5768
by: Morpheus | last post by:
I am trying to test a function that outputs text to the standard output, presumably using a cout call. I do not have access to the source, but need to test the output. Is this possible? I can technically create an executable that calls the function and then using a command prompt call the exexutable using the > output.txt redirector but I...
2
1872
by: Chris Miles | last post by:
On a standard Solaris 10 installation with Sun-supplied open-source packages installed (like SFWrline for readline libs) I cannot seem to force Python configure/setup.py to build with readline support. SFWrline installs readline in /opt/sfw/lib & /opt/sfw/include (This is all attempted with Python-2.4.3 on Solaris 10 06/06 i386) With...
1
3848
by: Eric West | last post by:
Hello gurus of the internet- I'm trying to install PHP on a system with MySQL I've had success using MySQL which was installed via "yum install mysql" on my CentOS 4.3 system. My problem is that I'd really like to use Mysql5, but when I install it via MySQL-client-standard-5.0.26-0.rhel4.i386.rpm and...
0
1181
by: =?utf-8?Q?Poor=20Yorick?= | last post by:
Today I needed to install python from source on linux to a custom path. /usr/lib/libtk8.3.so existed, but I wanted python to link to /my/custom/path/lib/libtk8.4.so. I had LDFLAGS set: LDFLAGS="-L/my/custom/path/lib -Wl,-rpath,$base/lib -Wl,--enable-new-dtags" configure looked like this: ../configure...
8
1511
omerbutt
by: omerbutt | last post by:
hi there i a making a community page where i am editing the details for the communities added in the favourities of the user the, i am using html ajax javascript,php and mysql.Now the problem is that when i edit the details of any particular community the form submits the information is sent on another page "communityeditdone.php"but from that...
0
7502
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
7434
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
7946
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7457
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
7791
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...
0
5078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
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
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
744
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.