首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu12.10上的ns2安装错误

Ubuntu12.10上的ns2安装错误
EN

Stack Overflow用户
提问于 2013-06-24 22:03:43
回答 3查看 7.8K关注 0票数 3

我尝试在我的Ubuntu 12.10上安装ns-2.35多合一软件包

我键入"./configure“,然后在文件夹"tcl-8.5.10”和文件夹"tk8.5.10“中键入"make”。

没有make错误。

但当我进入文件夹otcl-1.14并键入"./configure“时,它显示了一个错误:

代码语言:javascript
复制
dartkouth@dartkouth-P8010:/opt/ns-allinone-2.35/otcl$ sudo ./configure
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
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
./configure: line 4803: tclsh: command not found
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh... no
checking for tclsh... no
checking for tclsh... no
checking for tclsh8.4... no
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
dartkouth@dartkouth-P8010:/opt/ns-allinone-2.35/otcl$ 

当我输入tclcl-1.20并输入"./configure“时,它也显示了一个错误:

代码语言:javascript
复制
dartkouth@dartkouth-P8010:/opt/ns-allinone-2.35/tclcl$ sudo ./configure
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
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 ranlib... ranlib
checking for snprintf... yes
checking for ANSI C header files... (cached) yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
./configure: line 5926: tclsh: command not found
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh... no
checking for tclsh... no
checking for tclsh... no
checking for tclsh8.4... no
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
dartkouth@dartkouth-P8010:/opt/ns-allinone-2.35/tclcl$ 

我能做什么?我已经在tcl文件夹中完成了"./configure + make“。

有人能给我一个建议吗?非常感谢!

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2013-07-03 14:31:30

对于ns all in one package,不需要执行./configure .just解压缩tar文件并输入all in one 2.35文件夹类型./install。对于Ubuntu,您需要修改tclcl中的一些源文件,工具参考以下链接

http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/

票数 0
EN

Stack Overflow用户

发布于 2014-12-18 02:27:22

尝试使用./configure --with-tcl-ver=8.5 (如果安装了8.4,则为8.4 )...对我很管用。

票数 2
EN

Stack Overflow用户

发布于 2017-07-14 19:42:59

将当前工作目录更改为/ns-allinone-2.35/ns-2.35/ (安装ns的文件夹),并在终端中输入以下命令:

注意:不要忘记将"dt“更改为您的用户名:

代码语言:javascript
复制
./configure --with-tcl=/home/dt/ns-allinone-2.35/tcl8.5.10 --with-tcl-ver=8.5.10  --with-tk=/home/dt/ns-allinone-2.35/tk8.5.10 --with-tk-ver=8.5.10
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17277446

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档