Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to build ns-allinone-2.35 :
$ sudo apt-get install g++-4.4
$ cd ns-allinone-2.35/
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
The install : $ cd ns-2.35/ && sudo make install
How to build ns-allinone-2.35 :
$ sudo apt-get install g++-4.4
$ cd ns-allinone-2.35/
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
The install : $ cd ns-2.35/ && sudo make install
dear knudfl, i accepted your advice and executed the commands, but i got the following errors:
/usr/ns-2/NS-2/ns-allinone-2.35/include/tclPort.h:25: fatal error: ../unix/tclUnixPort.h: 没有那个文件或目录
compilation terminated.
make: *** [libotcl.so] 错误 1
otcl-1.14 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
i used to changed the "include" file in tclPort.h,. i corrected it, but i still got the above errors. i examined the file tclPort.h again, found that my correction does not work. why?
i met an error when i installed tcl-debug-2.0, the error is:
warning: Script debugging disabled. Reconfigure with
--with-tcldebug, and recompile.
it was compiling fine. after that I tried with the same example by adding a statement, "debug 1" ,in the second line of the script, just to check whether it's getting enabled or not. so when I tried to run the script in the normal way(not in the debugging mode) like ns example.tcl at the prompt, it's giving above warning. the version of ns is ns-2.34, and ubuntu is 12.04. Specially, ns-2.34 is newly installed.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
← #20 .
Quote:
can you tell me why ?
? May be ? If you tell what you are doing / have done, like ...
$ cd ns-allinone-2.34/
$ tar xvf tcl-debug.tar.gz
$ cd tcl-debug/
$ patch -p1 < tcl-debug-2.0-configure.patch
$ ./configure
$ cp libtcldbg.a ../lib/
$ cp libtcldbg.a ../ns-2.34/lib/
$ cd ../ns-2.34/
$ ./configure --with-tcldebug
$ make
mv tcl-debug-2.0.tar.gz /home/romeo/ns2/ns-allinone-2.34/
cd /home/romeo/ns2/ns-allinone-2.34/
tar -zxvf tcl-debug-2.0.tar.gz
cd tcl-debug-2.0
./configure --prefix=/home/romeo/ns2/ns-allinone-2.34 --with-tcl=/home/romeo/ns2/ns-allinone-2.34/tcl8.4.13/unix
make
cd /home/romeo/ns2/ns-allinone-2.34/ns-2.34
./configure --with-tcldebug=/home/romeo/ns2/ns-allinone-2.34/tcl-debug-2.0
make clean
make
Last edited by huangguanglun; 09-13-2014 at 07:30 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
The page http://knowledgehurts.wordpress.com/...s-for-ns-2-34/
.. is attached as _tcl-debug-ns234.html.gz.txt :
Download the file, rename to _tcl-debug-ns234.html.gz ,
and do $ gunzip _tcl-debug-ns234.html.gz , then you can read html.
bash: tcl-debug-2.0-configure.patch: 没有那个文件或目录(no that file or directory)
A strange file, this "tcl-debug-2.0-configure.patch".
Looks normal, "properties" shows nothing unusual,
$ 'dos2unix' changes nothing, renaming doesn't do any difference.
This works for me : $ patch -p1 < t<TAB>
... then the »bash completion« will fill out the full file name.
Tcl-debug for ns-2.35, in Ubuntu 12.04 :
$ cd ns-allinone-2.35/
$ tar xvf tcl-debug.tar.gz
$ cd tcl-debug/
$ patch -p1 < tcl-debug-2.0-configure.patch
$ ./configure --with-tcl=../tcl8.5.10/unix
$ cp ../tcl8.5.10/unix/tclUnixPort.h ./
$ make
$ cp libtcldbg.a ../lib/
$ cp libtcldbg.a ../ns-2.35/lib/
$ cd ../ns-2.35/
$ cp ns ns-orig
$ make clean
cd ../
Use the attached file "install", which has "./configure --with-tcldebug" in line 543.
.. and do $ ./install
.. and you have a new executable 'ns' with tcldebug.
-
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.