[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

hi can any one please help me..

chiranjeevi muttoju

2/15/2010 8:51:00 AM

Hi,
when i'm installing the pytc(python wrapper for tokyo cabinet.) i'm
getting the fallowing error.. i'm getting this error for python2.6
only.. for python 2.4 its working fine..
---------------------------------------------
running install
running build
running build_ext
building 'pytc' extension
gcc -pthread -shared build/temp.linux-x86_64-2.6/pytc.o -L/usr/local/
lib -L. -ltokyocabinet -lpython2.6 -o build/lib.linux-x86_64-2.6/
pytc.so
/usr/bin/ld: cannot find -lpython2.6
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

---------------------------------------------

What is that error. if any body know please help me.. thank you.
2 Answers

Alf P. Steinbach

2/15/2010 9:11:00 AM

0

* chiranjeevi muttoju:
> Hi,
> when i'm installing the pytc(python wrapper for tokyo cabinet.) i'm
> getting the fallowing error.. i'm getting this error for python2.6
> only.. for python 2.4 its working fine..
> ---------------------------------------------
> running install
> running build
> running build_ext
> building 'pytc' extension
> gcc -pthread -shared build/temp.linux-x86_64-2.6/pytc.o -L/usr/local/
> lib -L. -ltokyocabinet -lpython2.6 -o build/lib.linux-x86_64-2.6/
> pytc.so
> /usr/bin/ld: cannot find -lpython2.6
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
>
> ---------------------------------------------
>
> What is that error. if any body know please help me.. thank you.

It means the compiler can't find the python2.6 library; it's not in any of the
directories where gcc searches for libraries.

You can specify (additional) directories where gcc should search for libraries
via the LIBRARY_PATH environment variable.

At least according to my MinGW documentation for Windows, but I assume that it's
the same in Linux.


Cheers & hth.,

- Alf

steve

2/15/2010 9:13:00 AM

0

Hello,

On 02/15/2010 02:20 PM, chiranjeevi muttoju wrote:
> Hi,
> when i'm installing the pytc(python wrapper for tokyo cabinet.) i'm
> getting the fallowing error.. i'm getting this error for python2.6
> only.. for python 2.4 its working fine..
> ---------------------------------------------
> running install
> running build
> running build_ext
> building 'pytc' extension
> gcc -pthread -shared build/temp.linux-x86_64-2.6/pytc.o -L/usr/local/
> lib -L. -ltokyocabinet -lpython2.6 -o build/lib.linux-x86_64-2.6/
> pytc.so
> /usr/bin/ld: cannot find -lpython2.6
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You need to install the python development libraries. For example if you are
doing this on a Fedora or Red Hat Enterprise Linux system, execute the command:

$ yum install python-devel

....to install the necessary libraries.

cheers,
- steve