Im ask for your help because, Im tring to install libhid (libhid-0.2.16) in openSUSE 11.2 but when I ran the “./configure” command, I’m getting this error…
**SWIG Version 1.3.36
Compiled with g++ [i686-suse-linux-gnu]
Please see Simplified Wrapper and Interface Generator for reporting bugs and further information
checking for python… /usr/local/bin/python
checking for python version… 2.6
checking for python platform… linux2
checking for python script directory… ${prefix}/lib/python2.6/site-packages
checking for python extension module directory… ${exec_prefix}/lib/python2.6/site-packages
checking for python2.6… (cached) /usr/local/bin/python
checking for a version of Python >= ‘2.1.0’… yes
checking for the distutils Python package… yes
checking for Python include path… -I/usr/local/include/python2.6
checking for Python library path… /usr/local/lib/python2.6/config/libpython2.6.a
checking for Python site-packages path… /usr/local/lib/python2.6/site-packages
checking python extra libraries… -lpthread -ldl -lutil
checking python extra linking flags… -Xlinker -export-dynamic
checking consistency of all components of python development environment… no
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
**
I have installed the python and python-devel packages with yast but I keep getting the same error.
I really don’t know why Im getting this error.
Thanks in advance for your help, I really Appreciate that.
>
> Hello
>
> Im ask for your help because, Im tring to install libhid
> (libhid-0.2.16) in openSUSE 11.2 but when I ran the “./configure”
> command, I’m getting this error…
>
>
> SWIG VERSION 1.3.36
>
> COMPILED WITH G++ [I686-SUSE-LINUX-GNU]
> PLEASE SEE ‘SIMPLIFIED WRAPPER AND INTERFACE GENERATOR’
> (HTTP://WWW.SWIG.ORG) FOR REPORTING BUGS AND FURTHER INFORMATION
> CHECKING FOR PYTHON… /USR/LOCAL/BIN/PYTHON
> CHECKING FOR PYTHON VERSION… 2.6
> CHECKING FOR PYTHON PLATFORM… LINUX2
> CHECKING FOR PYTHON SCRIPT DIRECTORY…
> ${PREFIX}/LIB/PYTHON2.6/SITE-PACKAGES
> CHECKING FOR PYTHON EXTENSION MODULE DIRECTORY…
> ${EXEC_PREFIX}/LIB/PYTHON2.6/SITE-PACKAGES
> CHECKING FOR PYTHON2.6… (CACHED) /USR/LOCAL/BIN/PYTHON
> CHECKING FOR A VERSION OF PYTHON >= ‘2.1.0’… YES
> CHECKING FOR THE DISTUTILS PYTHON PACKAGE… YES
> CHECKING FOR PYTHON INCLUDE PATH… -I/USR/LOCAL/INCLUDE/PYTHON2.6
> CHECKING FOR PYTHON LIBRARY PATH…
> /USR/LOCAL/LIB/PYTHON2.6/CONFIG/LIBPYTHON2.6.A
> CHECKING FOR PYTHON SITE-PACKAGES PATH…
> /USR/LOCAL/LIB/PYTHON2.6/SITE-PACKAGES
> CHECKING PYTHON EXTRA LIBRARIES… -LPTHREAD -LDL -LUTIL
> CHECKING PYTHON EXTRA LINKING FLAGS… -XLINKER -EXPORT-DYNAMIC
> CHECKING CONSISTENCY OF ALL COMPONENTS OF PYTHON DEVELOPMENT
> ENVIRONMENT… NO
> CONFIGURE: ERROR:
> COULD NOT LINK TEST PROGRAM TO PYTHON. MAYBE THE MAIN PYTHON LIBRARY
> HAS BEEN
> INSTALLED IN SOME NON-STANDARD LIBRARY PATH. IF SO, PASS IT TO
> CONFIGURE,
> VIA THE LDFLAGS ENVIRONMENT VARIABLE.
> EXAMPLE: ./CONFIGURE LDFLAGS="-L/USR/NON-STANDARD-PATH/PYTHON/LIB"
>
>
> ERROR!
> YOU PROBABLY HAVE TO INSTALL THE DEVELOPMENT VERSION OF THE PYTHON
> PACKAGE
> FOR YOUR DISTRIBUTION. THE EXACT NAME OF THIS PACKAGE VARIES AMONG
> THEM.
>
>
>
> I have installed the python and python-devel packages with yast but I
> keep getting the same error.
>
> I really don’t know why Im getting this error.
>
> Thanks in advance for your help, I really Appreciate that.
>
>
Looks like you may have multiple pythons installed (/usr/local/bin/python
plus the packaged one in /usr/bin) - something to check.
But for the immediate problem - look in the build directory for a
‘configure.cache’ file from a previous run of ./configure. If there is one,
‘rm’ it and run the ./configure again.
ulrick82 wrote:
> I have installed the python and python-devel packages with yast but I
> keep getting the same error.
sometimes after installing new libraries you used to need to run
ldconfig to rescan the libraries. Rather like a giant ‘hash table’
which lets linux link libraries faster.
i thought YaST is supposed to do that, but maybe it didn’t for some
reason (or maybe something else is wrong), anyway this might fix it,
if not it shouldn’t make it worse:
open a terminal, become root with
su -
give your root pass when asked, then run
ldconfig
hmmmmm…i just noticed your output says it is looking for python 2.6
and found 2.1, but then found libraries for 2.6A—so, maybe you got a
kinda mixed up python install there…
**checking for python version... 2.6**
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for python2.6... (cached) /usr/local/bin/python
**checking for a version of Python >= '2.1.0'... yes**
The script first checked and found python 2.6 (as expected) and later (for what ever reason) it checks if python >= 2.1.0 is installed (which of course is true with 2.6.x).
> The script first checked and found python 2.6 (as expected) and later
> (for what ever reason) it checks if python >= 2.1.0 is installed (which
> of course is true with 2.6.x).
thx, i’m really not much good at reading non-alpha text symbols…
I ran ldconfig to load the libraries links and it keep failing.
Looks like you may have multiple pythons installed (/usr/local/bin/python
plus the packaged one in /usr/bin) - something to check.
But for the immediate problem - look in the build directory for a
‘configure.cache’ file from a previous run of ./configure. If there is one,
‘rm’ it and run the ./configure again.
There is no “configure.cache”, file this is all i have in the folder.
What i can see is that **python-config** file is a link file but **python2.6-config** is not a link file, Is that wrong?... maybe python is wrong installed?
When taking a close look you’ll see that “python-config” is a symbolic link to “python2.6-config”.