代码: 全选
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.
============================================================================
代码: 全选
./configure LDFLAGS="-L/usr/lib/python2.5/lib-dynload"
./configure LDFLAGS="-L/usr/lib/python2.5/lib-tk"
代码: 全选
weasteam@weasteam-desktop:~$ python
Python 2.5.2 (r252:60911, May 7 2008, 15:19:09)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
代码: 全选
./configure
./configure LDFLAGS="-L/usr/lib/python/lib"
./configure LDFLAGS="-L/usr/lib/python2.5/lib"
./configure LDFLAGS="-L/usr/lib/python2.5"
./configure LDFLAGS="-L/usr/bin"
补充一下:
我看了INSTALL的说明里,说要指明python的版本。
代码: 全选
PYTHON_VERSION
The installed Python version to use, for example '2.3'. This
string will be appended to the Python interpreter canonical
name.
后来,我又试了这个代码,还是不行。
代码: 全选
./configure PYTHON_VERSION=2.5.2
./configure PYTHON_VERSION=2.5
./configure PYTHON_VERSION="2.5"