您的位置:首页 > 产品设计 > UI/UE

安装 Enthought Tool Suite 时遇到的问题

2009-05-26 17:15 330 查看
文:fasiondog 来源:http://blog.csdn.net/KongDong/archive/2009/05/26/4217942.aspx

因想研究一下Enthought Tool Suite
,尤其是可能需要使用其中的Chaco
Envisage

件包,便安装试用一下。刚开始装机时曾经使用新立得安装过部分enthought的软件包,结果现在发现搞不清到底都安装了ETS中的哪些包,Chaco
也不清楚到底安装了没有?而且版本也比较低。于是先用新立得把它们统统删除了。接着使用easy_install直接安装(命令:sudo
easy_install ETS[nonets]
)。结果总是卡壳,偏偏ETS的包又多,每运行一次easy_install又总是重新下载、编译、安装,慢!
无奈之下,用了个土招,每遇到一个卡壳的软件包,偶就Ctrl+C终止easy_install,然后复制它Downloading的软件包地址(还好,
它会把这个地址打印出来)直接下载,之后解压用“sudo python setup.py
install”一个个安装,这样也好看到底是什么错误。经过一番努力,发现之所以老是卡壳,都是缺少某个依赖软件包源码的头文件,只好一个个查看错误信
息,再用新立得查找,看看是哪个依赖包,安装之。总算是搞定了,下面记录了其中部分安装中错误信息和缺少的依赖包,供遇到同样安装不上ETS的同志们参
考,不过总的思路很简单,查看错误信息,到新立得里搜索(因为没有直接告诉你缺少的哪个源码包)安装确实的源码包后再重新安装:

1、安装到ETSDevTools-3.0.2,错误信息如下:

enthought/guitest/x11/guitest_wrap.cxx:2571:27: 错误: X11/Intrinsic.h:没有该文件或目录

enthought/guitest/x11/guitest_wrap.cxx:2572:28: 错误: X11/StringDefs.h:没有该文件或目录

……

error: Setup script exited with error: Command "g++ -pthread
-fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I/usr/include
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c enthought/guitest/x11/guitest_wrap.cxx -o
build/temp.linux-i686-2.6/enthought/guitest/x11/guitest_wrap.o" failed
with exit status 1

经查缺少:

libxt-dev: X11 toolkit intrinsics library (development headers)

解决上面的问题后,新出现的问题:

g++ -pthread -shared -Wl,-O1
-Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/enthought/guitest/x11/guitest_wrap.o -lX11
-lXtst -lXext -lstdc++ -o
build/lib.linux-i686-2.6/enthought/guitest/x11/_guitest.so

/usr/bin/ld: cannot find -lXtst

collect2: ld 返回 1

/usr/bin/ld: cannot find -lXtst

collect2: ld 返回 1

error: Command "g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/enthought/guitest/x11/guitest_wrap.o -lX11
-lXtst -lXext -lstdc++ -o
build/lib.linux-i686-2.6/enthought/guitest/x11/_guitest.so" failed with
exit status 1

经查缺少:

libxtst-dev: X11 Testing -- Resource extension library

2、安装Enable-3.1.0:

enthought/kiva/agg/src/gl_graphics_context.h:15:20: 错误: GL/gl.h:没有该文件或目录

enthought/kiva/agg/src/gl_graphics_context.h:16:21: 错误: GL/glu.h:没有该文件或目录

……

error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -fPIC -Ienthought/kiva/agg/src
-Ienthought/kiva/agg/agg-24/include
-Ienthought/kiva/agg/agg-24/font_freetype
-Ienthought/kiva/agg/freetype2/src/base
-Ienthought/kiva/agg/freetype2/src/bdf
-Ienthought/kiva/agg/freetype2/src/cache
-Ienthought/kiva/agg/freetype2/src/cff
-Ienthought/kiva/agg/freetype2/src/cid
-Ienthought/kiva/agg/freetype2/src/pcf
-Ienthought/kiva/agg/freetype2/src/pfr
-Ienthought/kiva/agg/freetype2/src/psaux
-Ienthought/kiva/agg/freetype2/src/pshinter
-Ienthought/kiva/agg/freetype2/src/psnames
-Ienthought/kiva/agg/freetype2/src/raster
-Ienthought/kiva/agg/freetype2/src/sfnt
-Ienthought/kiva/agg/freetype2/src/smooth
-Ienthought/kiva/agg/freetype2/src/truetype
-Ienthought/kiva/agg/freetype2/src/type1
-Ienthought/kiva/agg/freetype2/src/type42
-Ienthought/kiva/agg/freetype2/src/winfonts
-Ienthought/kiva/agg/freetype2/src/gzip
-Ienthought/kiva/agg/freetype2/include
-Ienthought/kiva/agg/freetype2/src -c
enthought/kiva/agg/src/gl_graphics_context.cpp -o
build/temp.linux-i686-2.6/enthought/kiva/agg/src/gl_graphics_context.o"
failed with exit status 1

经查缺少:

libglu1-mesa-dev: The OpenGL utility library -- development files
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: