ubuntu下安装ns2出错(二)
2007-08-04 10:01
381 查看
虽然安装gcc后,再安装ns2,tcl的安装很顺利,但是安装tk时,出现以下提示信息:
error: X11/Xlib.h: No such file or directory
缺少X11/Xlib.h,在网上搜索时看到有人在问如何安装x11开发库的问题
命令为: apt-get install libx11-dev
在机子上试了一下,还是不行,又出现以下错误:
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.11... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
can't find X includes
otcl-1.12 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes.
还是没有得到解决.
总之,问题的焦点是缺少x11,所以先确保包含x11的包都正确地安装,应该就可以解决了.
先输入:sudo apt-cache search x11-dev
得到以下信息:
libx11-dev - X11 client-side library (development headers)
xlibs-dev - X Window System client library development files transitional package
libghc6-x11-dev - Haskell X11 binding for GHC
libooc-x11-dev - X11 specific modules for the oo2c compiler (devel)
libgl1-mesa-swx11-dev - A free implementation of the OpenGL API -- development support files
分别用下列命令安装:
sudo apt-get install libx11-dev
sudo apt-get install xlibs-dev
sudo apt-get install libghc6-x11-dev
sudo apt-get install libooc-x11-dev
安装完后,再安装ns2.终于正确地安装了ns2.兴奋中~~~~
error: X11/Xlib.h: No such file or directory
缺少X11/Xlib.h,在网上搜索时看到有人在问如何安装x11开发库的问题
命令为: apt-get install libx11-dev
在机子上试了一下,还是不行,又出现以下错误:
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.11... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
can't find X includes
otcl-1.12 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes.
还是没有得到解决.
总之,问题的焦点是缺少x11,所以先确保包含x11的包都正确地安装,应该就可以解决了.
先输入:sudo apt-cache search x11-dev
得到以下信息:
libx11-dev - X11 client-side library (development headers)
xlibs-dev - X Window System client library development files transitional package
libghc6-x11-dev - Haskell X11 binding for GHC
libooc-x11-dev - X11 specific modules for the oo2c compiler (devel)
libgl1-mesa-swx11-dev - A free implementation of the OpenGL API -- development support files
分别用下列命令安装:
sudo apt-get install libx11-dev
sudo apt-get install xlibs-dev
sudo apt-get install libghc6-x11-dev
sudo apt-get install libooc-x11-dev
安装完后,再安装ns2.终于正确地安装了ns2.兴奋中~~~~
相关文章推荐
- ubuntu下安装ns2出错(一)
- ubuntu下安装ns2出错(一)
- VM安装ubuntu出错二进制与此平台上的长模式不兼容
- Ubuntu中用sudo apt-get install安装某软件,结果出错:E: Unable to locate
- Ubuntu中安装XAMPP出错的解决方法
- 在Ubuntu 10.04上安装Mysql-python出错
- ubuntu安装php出错: xml2-config not found
- ubuntu 17.04安装网易云音乐linux版依赖包出错的解决办法
- ubuntu 8.04下安装NS2(ns-allinone-2.30) 安装问题处理(转)
- 在Ubuntu 14.10下安装Lua 5.2出错的解决
- ubuntu安装mysql-python出错,EnvironmentError: mysql_config not found
- ubuntu下安装海思的dvr编译环境出错
- Ubuntu系统下安装ImageMagick出错的解决过程
- ubuntu17 python3.6 出错 找不到 Python.h 安装uwsgi
- ubuntu安装opencv2.4.9编译出错NCVPixelOperations.hpp: error: a storage class is not allowed in an explicit
- ubuntu14. 4000 04安装cuda 7.0出错
- ubuntu下安装FastDFS出错问题
- Ubuntu 安装vim出错
- ubuntu16.0.4 安装32位库出错,解决
- Ubuntu gcc编译安装fcgi出错的解决办法