Why I can't install ns2 on ubuntu 6.06

Peter Garrett peter.garrett at optusnet.com.au
Sat Jul 29 13:06:07 UTC 2006


On Fri, 28 Jul 2006 17:23:02 +0800
"zhihang wang" <zhihang.wang at gmail.com> wrote:

> I have installed tcl/tk 8.4 . When I install ns2 or otcl with ./configure.
> the error occure:
> 
> checking for tcl.h... -I/usr/include/tcl8.4
> checking for tclInt.h... no
> checking for libtcl8.4... -L/usr/lib - ltcl8.4
> checking for init.tcl... /usr/lib/tcl8.4
> checking for http.tcl... /usr/lib/tcl8.4/http1.0
> checking Tcl http.tcl library... yes
> checking for tclsh8.4... /usr/bin/tclsh8.4
> 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.
> zhihang at ubuntu :~/ns2/otcl-1.11$

These kinds of errors almost always mean you are missing the *development*
packages for the program you are trying to compile. Try this:

 apt-cache search tcl tk | grep dev

You will see a whole list including for example 

tcl8.0-dev - Tcl (the Tool Command Language) v8.0 - development files
tcl8.3-dev - Tcl (the Tool Command Language) v8.3 - development files
tcl8.4-dev - Tcl (the Tool Command Language) v8.4 - development files
tk8.3-dev - Tk toolkit for Tcl and X11, v8.3 - development files
tk8.4-dev - Tk toolkit for Tcl and X11, v8.4 - development files

So you might try installing the 8.4 versions of these -dev packages before
running ./configure.

Peter

 







More information about the ubuntu-users mailing list