banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Gentoo: Không thể cài đặt lxml  XML
  [Question]   Gentoo: Không thể cài đặt lxml 15/11/2009 01:01:44 (+0700) | #1 | 198263
mR.Bi
Member

[Minus]    0    [Plus]
Joined: 22/03/2006 13:17:49
Messages: 812
Offline
[Profile] [PM] [WWW]
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 ...
 * Applying lxml-2.0.3-no-fake-pyrex.patch ...
  [ ok ]
>>> 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 ...
 * Building of dev-python/lxml-2.2.3 with Python 2.6...
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
 * 
 * ERROR: dev-python/lxml-2.2.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3396:  Called distutils_src_compile
 *             environment, line  823:  Called python_execute_function 'building'
 *             environment, line 2978:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *  The die message:
 *   Building failed with Python 2.6 in building() function
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/lxml-2.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/lxml-2.2.3/temp/environment'.
 *


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.
All of my life I have lived by a code and the code is simple: "honour your parent, love your woman and defend your children"
[Up] [Print Copy]
  [Question]   Gentoo: Không thể cài đặt lxml 27/11/2009 14:48:26 (+0700) | #2 | 199284
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Anh chưa dùng Gentoo bao giờ, nhưng thử với setuptools phiên bản mới hơn chưa em?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Gentoo: Không thể cài đặt lxml 28/11/2009 03:07:24 (+0700) | #3 | 199308
mR.Bi
Member

[Minus]    0    [Plus]
Joined: 22/03/2006 13:17:49
Messages: 812
Offline
[Profile] [PM] [WWW]
Hì, cái này em giải quyết được rồi, unmask setuptools phiên bản mới, resync rồi install lxml lại là ok.
Cám ơn anh.
All of my life I have lived by a code and the code is simple: "honour your parent, love your woman and defend your children"
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|