红联Linux门户
Linux帮助

救命!求解!关于python的library path!!!!!!!!!!!!!!

发布时间:2011-03-02 12:27:46来源:红联作者:coaaz
[i=s] 本帖最后由 coaaz 于 2011-3-2 12:30 编辑 [/i]

情况是这样的:
我的系统 rhel 5.5
那天在avant-window-navigator官网下载了最新的 0.4.0的源码包
./configure 后发现没有 python的编译器(之前系统上的是python2.4)
于是去了http://www.python.org/getit/ 下载了Python-2.7.1 源码包
./configure
make
make install
一切都按照默认路径配置完成后
再去./configure avant-window-navigator0.4.0
提示我[code]...
checking for bash... /bin/bash
checking if dolt supports this host... yes, replacing libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/local/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for the distutils Python package... yes
checking for Python include path... -I/usr/local/include/python2.7
checking for Python library path... -L/usr/local/lib/python2.7/config -lpython
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: in `/root/avant-window-navigator-0.4.0':
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.
============================================================================

See `config.log' for more details.
[root@station119 avant-window-navigator-0.4.0]#
[root@station119 avant-window-navigator-0.4.0]#
[/code]想尽各种方法、百度、google还是没办法,2天了(5ty(

救命啊!!!!!
文章评论

共有 3 条评论

  1. a864072389 于 2017-03-24 20:34:37发表:

    您好,你这个问题最后是怎么解决的呢,我也已经耗了两天了,求大神帮助,不胜感激!

  2. 于 2012-08-14 11:26:21发表:

    你的系统安装多个python版本,将/usr/bin/python指向你要的版本就ok了

  3. alick 于 2011-03-02 23:27:33发表:

    avant 依赖的是 python 的 development environment(开发环境),所以你需要安装的是
    python-devel 这个软件包(从软件源安装)。
    rhel 的系统上必然有 python 的解释器的,不然这个系统根本不能运行。