[问题]Python连接问题

编译打包和其他
回复
weasteam
帖子: 51
注册时间: 2007-07-14 14:43

[问题]Python连接问题

#1

帖子 weasteam » 2008-06-10 21:10

我在编译awn-extras-applets-0.2.6遇到如下问题:

代码: 全选

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.
  ============================================================================
首先我以为是python没有安装,但去新立得一看,python2.5, python2.4等已经安装,安照它上面的例子,我找到/usr/lib/python2.5下面有两个与lib有关的文件珓,试了以下代码还是出现了上面的问题:

代码: 全选

./configure LDFLAGS="-L/usr/lib/python2.5/lib-dynload"
./configure LDFLAGS="-L/usr/lib/python2.5/lib-tk"
然后我测了下想看看是不是我的python没有装好,结果发现python没有问题:

代码: 全选

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.
>>> 
实在没有办法,我在新立得里找到python-all的软件包,给装了后,试了下面几个命令还是都有上里的问题:

代码: 全选

./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.
我的版本是上面所看到的,Python 2.5.2,不知道该如何添加。

后来,我又试了这个代码,还是不行。

代码: 全选

./configure PYTHON_VERSION=2.5.2
./configure PYTHON_VERSION=2.5
./configure PYTHON_VERSION="2.5"
weasteam
帖子: 51
注册时间: 2007-07-14 14:43

#2

帖子 weasteam » 2008-06-10 22:56

Sonebody? Anybody? Help me!!!
zarra
帖子: 89
注册时间: 2006-10-30 20:01

#3

帖子 zarra » 2008-06-10 22:59

看看python-dev 。。。。。
leohee
帖子: 30
注册时间: 2008-07-09 15:27

#4

帖子 leohee » 2008-07-14 16:21

:(
同样问题
目前也没有解决
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#5

帖子 BigSnake.NET » 2008-07-14 16:22

装 python-dev
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
coding_guy
帖子: 1
注册时间: 2009-12-15 20:20

Re: [问题]Python连接问题

#6

帖子 coding_guy » 2009-12-15 20:47

For your problem, you probably need install all python related packages.

Then there may be other errors.
To solve them, you have to install which you lacking.
Package name could be found from following build dependencies:

* debhelper (>= 7)
* doc-base
* gtk-doc-tools
* intltool
* libdbus-glib-1-dev
* libglade2-dev
* libgnome-desktop-dev
* libgnome2-dev
* libwnck-dev
* libxcomposite-dev
* libxdamage-dev
* python-all-dev (>= 2.4)
* python-cairo-dev
* python-elementtree
* python-gnome2-dev
* python-support (>= 0.7.0)
* quilt
* valac (>= 0.5.4)
imnoqiao
帖子: 23
注册时间: 2010-01-01 8:31

Re: [问题]Python连接问题

#7

帖子 imnoqiao » 2010-05-24 16:42

sudo apt-get python2.6-dev

这样也许能解决问题

http://ubuntuforums.org/showthread.php?t=1282304
回复