Chào mọi người,
Mình đang muốn cài đặt gói dev-python/lxml trên gentoo, nhưng cứ compile là lỗi setuptools, mình đang sử dụng setuptools 0.6.4.
Thông tin lỗi:
Code:
>>> Unpacking source...
>>> Unpacking lxml-2.2.3.tgz to /var/tmp/portage/dev-python/lxml-2.2.3/work
>>> Source unpacked in /var/tmp/portage/dev-python/lxml-2.2.3/work
>>> Preparing source in /var/tmp/portage/dev-python/lxml-2.2.3/work/lxml-2.2.3 ...
[32;01m*[0m Applying lxml-2.0.3-no-fake-pyrex.patch ...
[A[199C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/lxml-2.2.3/work/lxml-2.2.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/lxml-2.2.3/work/lxml-2.2.3 ...
[1;32m*[0m [1;34mBuilding of dev-python/lxml-2.2.3 with Python 2.6...[0m
python2.6 setup.py build -b build-2.6
Traceback (most recent call last):
File "setup.py", line 17, in <module>
pkg_resources.require("setuptools>=0.6c5")
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 621, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 519, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: setuptools>=0.6c5
[31;01m*[0m
[31;01m*[0m ERROR: dev-python/lxml-2.2.3 failed.
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 49: Called src_compile
[31;01m*[0m environment, line 3396: Called distutils_src_compile
[31;01m*[0m environment, line 823: Called python_execute_function 'building'
[31;01m*[0m environment, line 2978: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m die "${failure_message}";
[31;01m*[0m The die message:
[31;01m*[0m Building failed with Python 2.6 in building() function
[31;01m*[0m
[31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
[31;01m*[0m A complete build log is located at '/var/tmp/portage/dev-python/lxml-2.2.3/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/lxml-2.2.3/temp/environment'.
[31;01m*[0m
Thông tin: Code:
uname -a
Linux lunix 2.6.31-gentoo-r5osvn #3 SMP Mon Nov 9 10:32:38 ICT 2009 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
python 2.6.2-r1
t
Đã thử: gỡ bỏ python cài đặt lại, gỡ bỏ và cài đặt tất cả các thư viện của python, cài đặt lại setuptools, chạy python-updater, emerge --sync, update hệ thống, vẫn gặp phải lỗi trên.
Có bạn nào gặp lỗi này rồi hoặc biết cách khắc phục giúp đỡ dùm mình.
Thanks.