ric_da_inf
May 22nd, 2008, 10:04 AM
Hello everybody!
I've an ubuntu hardy heron clear installed. I wanted to download and install the package network simulator 2 (ns-2) and all the package required "tcl/tk".
I run sudo apt-get install tk8.4-dev tcl8.4-dev and then I download from site http://www.isi.edu/nsnam/ns/ns-build.html the version 1.13 of otcl library for tcl.
When I try to run "./configure", I encountered a problem who stop the makefile creation process as :
--------------------------------------------
$ ./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 ANSI C... 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 egrep... 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 tcl.h... -I/usr/include/tcl8.4/tcl-private/generic
checking for tclInt.h... -I/usr/include/tcl8.4/tcl-private/generic
checking for libtcl8.4... -L/usr/lib -ltcl8.4
checking for init.tcl... no
checking for http.tcl... no
checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in /http /http2.4 /http2.3 /http2.1 /http2.0 /http1.0
--------------------------------------------
The problem is in "configure" script, it seems there were wrong path to "init.tcl" and "http.tcl", you have to mod it adding :
- to variable
TCL_TCL_PLACES="../lib/tcl$TCL_HI_VERS \
../lib/tcl$TCL_ALT_VERS \
../lib/tcl$TCL_VERS \
../lib/tcl \
--------THIS NEW SEARCH PATH-----------
/usr/share/tcltk/tcl$TCL_VERS \
/usr/share/tcltk/tcl$TCL_HI_VERS \
/usr/share/tcltk/tcl$TCL_ALT_VERS \
--------THIS NEW SEARCH PATH-----------
..............................
- to variable
TK_TCL_PLACES=" \
../lib/tk$TK_HI_VERS \
../lib/tk$TK_VERS \
../lib/tk$TK_ALT_VERS \
../tk$TK_VERS/library \
../tk$TK_ALT_VERS/library \
../tk$TK_HI_VERS/library \
../tk/library \
--------THIS NEW SEARCH PATH-----------
/usr/share/tcltk/tk$TK_VERS \
/usr/share/tcltk/tk$TK_ALT_VERS \
/usr/share/tcltk/tk$TK_HI_VERS \
/usr/share/tcltk/tk$TK_VERS \
--------THIS NEW SEARCH PATH-----------
................
I hope this is usefull hint..
Long life and prosper
I've an ubuntu hardy heron clear installed. I wanted to download and install the package network simulator 2 (ns-2) and all the package required "tcl/tk".
I run sudo apt-get install tk8.4-dev tcl8.4-dev and then I download from site http://www.isi.edu/nsnam/ns/ns-build.html the version 1.13 of otcl library for tcl.
When I try to run "./configure", I encountered a problem who stop the makefile creation process as :
--------------------------------------------
$ ./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 ANSI C... 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 egrep... 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 tcl.h... -I/usr/include/tcl8.4/tcl-private/generic
checking for tclInt.h... -I/usr/include/tcl8.4/tcl-private/generic
checking for libtcl8.4... -L/usr/lib -ltcl8.4
checking for init.tcl... no
checking for http.tcl... no
checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in /http /http2.4 /http2.3 /http2.1 /http2.0 /http1.0
--------------------------------------------
The problem is in "configure" script, it seems there were wrong path to "init.tcl" and "http.tcl", you have to mod it adding :
- to variable
TCL_TCL_PLACES="../lib/tcl$TCL_HI_VERS \
../lib/tcl$TCL_ALT_VERS \
../lib/tcl$TCL_VERS \
../lib/tcl \
--------THIS NEW SEARCH PATH-----------
/usr/share/tcltk/tcl$TCL_VERS \
/usr/share/tcltk/tcl$TCL_HI_VERS \
/usr/share/tcltk/tcl$TCL_ALT_VERS \
--------THIS NEW SEARCH PATH-----------
..............................
- to variable
TK_TCL_PLACES=" \
../lib/tk$TK_HI_VERS \
../lib/tk$TK_VERS \
../lib/tk$TK_ALT_VERS \
../tk$TK_VERS/library \
../tk$TK_ALT_VERS/library \
../tk$TK_HI_VERS/library \
../tk/library \
--------THIS NEW SEARCH PATH-----------
/usr/share/tcltk/tk$TK_VERS \
/usr/share/tcltk/tk$TK_ALT_VERS \
/usr/share/tcltk/tk$TK_HI_VERS \
/usr/share/tcltk/tk$TK_VERS \
--------THIS NEW SEARCH PATH-----------
................
I hope this is usefull hint..
Long life and prosper