hi can any one please help me..

  • Thread starter chiranjeevi muttoju
  • Start date
C

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
 
A

Alf P. Steinbach

* 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

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
 
S

steve

Hello,

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top