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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514
Rep:
# 15
Quote:
sh ./make-scen.csh
That's a wrong command. Please use : csh make-scen.csh
# 14 : Did you solve the tcl8.4.18 issues ?
Looks like you'd better start from scratch in /home/<user-name>/
with a new unpacked ns-allinone-2.31.tar.gz.
And : Never use any commands as root, when you extract,
and when you build software. No "root commands" in ns2, please.
That's a wrong command. Please use : csh make-scen.csh
# 14 : Did you solve the tcl8.4.18 issues ?
Looks like you'd better start from scratch in /home/<user-name>/
with a new unpacked ns-allinone-2.31.tar.gz.
And : Never use any commands as root, when you extract,
and when you build software. No "root commands" in ns2, please.
.
try all your ideas but not work
[majd@MSH ~]$ ls
Desktop Downloads ns-allinone-2.31 Pictures Templates
Documents Music ns-allinone-2.31.tar.gz Public Videos
[majd@MSH ~]$ cd ns-allinone-2.31/
[majd@MSH ns-allinone-2.31]$ cd ns-2.31/indep-utils/cmu-scen-gen/setdest/
[majd@MSH setdest]$ ./make-scen.csh
bash: ./make-scen.csh: /bin/csh: bad interpreter: No such file or directory
[majd@MSH setdest]$ sh ./make-scen.csh
./make-scen.csh: line 18: syntax error near unexpected token `('
./make-scen.csh: line 18: `foreach pt (0)'
[majd@MSH setdest]$ csh ./make-scen.csh
bash: csh: command not found...
Similar command is: 'ssh'
[majd@MSH setdest]$
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514
Rep:
# 19
If the file ns-allinone-2.31/ns-2.31/ns is present :
cd ns-allinone-2.31/ns-2.31/
su
make install && exit
... I.e. 'make install' copies 'ns' to /usr/local/bin/,
and you can use the 'ns' command.
If the file ns-allinone-2.31/ns-2.31/ns is present :
cd ns-allinone-2.31/ns-2.31/
su
make install && exit
... I.e. 'make install' copies 'ns' to /usr/local/bin/,
and you can use the 'ns' command.
.
[root@MSH ns-2.31]# make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1
[root@MSH ns-2.31]# exit
exit
[majd@MSH ns-2.31]$ ns
bash: ns: command not found...
Similar command is: 'nc'
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514
Rep:
# 21.
Quote:
/usr/bin/install: cannot stat `ns': No such file or directory
Very simple : You did not build ns-allinone-2.31/.
And you cannot install or use a file / command, that isn't present in
ns-allinone-2.31/ns-2.31/.
Are you building ns-allinone-2.31 with some modifications / patches ?
Please specify.
About your errors : Better delete all ns-allinone-2.31/ and start from scratch.
In /home/majd/ :
$ tar xvf ns-allinone-2.31.tar.gz && export CC=gcc34 CXX=g++34 && ./install
... Be aware that the export command is temporary :
You will reset to gcc / g++ version 4.7.0, when you exit the terminal.
About your errors : Better delete all ns-allinone-2.31/ and start from scratch.
In /home/majd/ :
$ tar xvf ns-allinone-2.31.tar.gz && export CC=gcc34 CXX=g++34 && ./install
... Be aware that the export command is temporary :
You will reset to gcc / g++ version 4.7.0, when you exit the terminal.
.
I do
$ tar xvf ns-allinone-2.31.tar.gz && export CC=gcc34 CXX=g++34 && ./install
but when finish
i type in terminal
ns
i have the same error
[majd@MSH ns-2.31]$ ns
bash: ns: command not found...
Similar command is: 'nc'
All editing .bashrc : Not required.
The binary 'ns' is hard coded to know the location of its libraries.
(And: Setting a path to a non existing binary isn't going to make it work.)
Are you building ns-allinone-2.31 with some modifications / patches ?
! Please answer. Missing respond : post # 22 !
.
i follow ur steps
when type ./install
its work but at the end this msg was written
In file included from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tkInt.h:21:0,
from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.h:18,
from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:16:
/home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk.h:83:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.14 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
[majd@localhost ns-allinone-2.31]$
Please put /home/majd/ns-allinone-2.31/bin:/home/majd/ns-allinone-2.31/tcl8.4.14/unix:/home/majd/ns-allinone-2.31/tk8.4.14/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/majd/ns-allinone-2.31/otcl-1.13, /home/majd/ns-allinone-2.31/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/majd/ns-allinone-2.31/tcl8.4.14/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.31; ./validate
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.