Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problems trying to build python 2.6 as a shared library
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Withers  
View profile  
 More options Sep 25 2009, 7:08 am
Newsgroups: comp.lang.python
From: Chris Withers <ch...@simplistix.co.uk>
Date: Fri, 25 Sep 2009 12:08:05 +0100
Local: Fri, Sep 25 2009 7:08 am
Subject: problems trying to build python 2.6 as a shared library
Hi All,

I'm trying to build Python 2.6 as a shared library, so I did:

   ./configure --enable-shared
   make
   make altinstall

No obvious signs of failure, but when I try and use the resulting
python, I get:

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

Why might that be?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Nawijn  
View profile  
 More options Sep 25 2009, 7:36 am
Newsgroups: comp.lang.python
From: Marco Nawijn <naw...@gmail.com>
Date: Fri, 25 Sep 2009 04:36:28 -0700 (PDT)
Local: Fri, Sep 25 2009 7:36 am
Subject: Re: problems trying to build python 2.6 as a shared library
On Sep 25, 1:08 pm, Chris Withers <ch...@simplistix.co.uk> wrote:

Hello Chris,

The dynamic loader cannot find the python shared library.  There are
at least 2 options:
    1. Add path that contains the shared library to the
LD_LIBRARY_PATH environment variable. In a bash shell this can be
accomplished by:  export LD_LIBRARY_PATH=/path/to/python_shared_lib:
$LD_LIBRARY_PATH
    2. Add path to dynamic linker configuration file. This typically
is in '/etc/ld.so.conf'. See man page for ld for more information.

Note that I assumed that you are on a Unix/Linux machine.

Regards,

Marco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Heimes  
View profile  
 More options Sep 25 2009, 7:44 am
Newsgroups: comp.lang.python
From: Christian Heimes <li...@cheimes.de>
Date: Fri, 25 Sep 2009 13:44:50 +0200
Local: Fri, Sep 25 2009 7:44 am
Subject: Re: problems trying to build python 2.6 as a shared library

Marco Nawijn wrote:
> The dynamic loader cannot find the python shared library.  There are
> at least 2 options:
>     1. Add path that contains the shared library to the
> LD_LIBRARY_PATH environment variable. In a bash shell this can be
> accomplished by:  export LD_LIBRARY_PATH=/path/to/python_shared_lib:
> $LD_LIBRARY_PATH
>     2. Add path to dynamic linker configuration file. This typically
> is in '/etc/ld.so.conf'. See man page for ld for more information.

3. Set LD_RUN_PATH before you link the shared library or use the -rlink
option of the linker, see man(1) ld.

Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Withers  
View profile  
 More options Sep 30 2009, 9:56 am
Newsgroups: comp.lang.python
From: Chris Withers <ch...@simplistix.co.uk>
Date: Wed, 30 Sep 2009 14:56:40 +0100
Local: Wed, Sep 30 2009 9:56 am
Subject: Re: problems trying to build python 2.6 as a shared library

Marco Nawijn wrote:
>     2. Add path to dynamic linker configuration file. This typically
> is in '/etc/ld.so.conf'. See man page for ld for more information.

Yes, this was it.
Don't forget to run ldconfig after you've changed /etc/ld.so.conf

It's frustrating how the contents of this file vary from distro to
distro, particularly w.r.t. /usr/local/lib :-(

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »