2013-06-24 173 views
3

我試着在我的Ubuntu安裝NS-2.35的所有功能於一身的包12.10NS2安裝錯誤

I型 「的./configure」 和文件夾「,然後 「做」 TCL-8.5.10 「和文件夾」tk8.5.10「

沒有發生錯誤。

但是,當我進入文件夾的OTcl 1.14,輸入「的./configure」它顯示了一個錯誤:

[email protected]:/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. 
[email protected]:/opt/ns-allinone-2.35/otcl$ 

而當我進入TCLCL-1.20,輸入「的./configure」它顯示了一個錯誤太多:

[email protected]:/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. 
[email protected]:/opt/ns-allinone-2.35/tclcl$ 

我該怎麼辦?我已經在tcl文件夾中完成了「./configure + make」。

任何人都可以給我一個建議嗎?非常感謝!

回答

2

嘗試使用該標誌的./configure --with-TCL-版本的情況下= 8.5(或8.4你有8.4安裝)...爲我工作。

-1

將當前工作目錄/ns-allinone-2.35/ns-2.35/(其中安裝了NS的文件夾),並在終端中輸入以下命令:

注意:不要忘記更改「DT」您的用戶名:

./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