Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
08-15-2012, 03:38 PM
|
#16
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 15
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.
.
|
|
|
08-17-2012, 05:32 PM
|
#17
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 15
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]$
|
|
|
08-17-2012, 05:46 PM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 17
Quote:
bash: csh: command not found...
|
Finding a package, providing 'csh' : yum provides */csh
.... The reply is tcsh.
# yum install tcsh
And : You don't have to use 'csh ./make-scen.csh'.
This will do : 'csh make-scen.csh'
.
Last edited by knudfl; 08-17-2012 at 05:48 PM.
|
|
|
08-17-2012, 06:39 PM
|
#19
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
thankssssss
Quote:
Originally Posted by knudfl
# 17
Finding a package, providing 'csh' : yum provides */csh
.... The reply is tcsh.
# yum install tcsh
And : You don't have to use 'csh ./make-scen.csh'.
This will do : 'csh make-scen.csh'
.
|
plz tell me about this .. why ns command not work?
[majd@MSH ns-2.31]$ ns
bash: ns: command not found...
Similar command is: 'nc'
|
|
|
08-17-2012, 07:29 PM
|
#20
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
.
|
|
|
08-18-2012, 03:00 AM
|
#21
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 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.
.
|
[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'
|
|
|
08-18-2012, 03:40 AM
|
#22
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
.
|
|
|
08-18-2012, 09:38 AM
|
#23
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 21.
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'
plz help me
|
|
|
08-18-2012, 10:25 AM
|
#24
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 23
? Is the file ns-allinone-2.31/ns-2.31/ns present now ? ?
If it is there, please read post # 20.
.
|
|
|
08-18-2012, 10:34 AM
|
#25
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
this all file in ns-2.31
[root@localhost ns-2.31]# ls
adc delaybox Makefile.in satellite
allinone diffserv makefile.vc sctp
aodv diffusion mcast sensor-nets
apps diffusion3 mobile src_rtg
asim doc mpls tcl
autoconf.h.in dsdv nix tcp
autoconf-win32.h dsr ns.1 test-all
BASE-VERSION empweb ns_tclsh.cc TODO.html
baytcp emulate packmime tools
bin FILES pgm tora
bitmap gaf plm trace
CHANGES.html HOWTO-CONTRIBUTE pushback validate
classifier imep qs validate-full
common indep-utils queue validate.out
conf install-sh rap validate.win32
config.guess INSTALL.WIN32 README validate-wired
config.h lib realaudio validate-wireless
config.sub LICENSES release_steps.txt VERSION
configure link routealgo webcache
configure.in linkstate routing wpan
COPYRIGHTS mac rtproto xcp
Last edited by majd_cs; 08-18-2012 at 10:38 AM.
|
|
|
08-18-2012, 10:39 AM
|
#26
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 23
? Is the file ns-allinone-2.31/ns-2.31/ns present now ? ?
If it is there, please read post # 20.
.
|
and i try this but not work with me
http://www.edaboard.com/thread118830.html
|
|
|
08-18-2012, 01:11 PM
|
#27
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 25
What's the error message, when your build fails ?
Are you building ns-allinone-2.31 with some modifications / patches ?
! Please answer. Missing respond : post # 22 !
# 26
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.)
.
Last edited by knudfl; 08-18-2012 at 01:13 PM.
|
|
|
08-18-2012, 01:26 PM
|
#28
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Quote:
Originally Posted by knudfl
# 25
What's the error message, when your build fails ?
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]$
Last edited by majd_cs; 08-18-2012 at 01:29 PM.
|
|
|
08-18-2012, 03:51 PM
|
#29
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 28
Quote:
fatal error: X11/Xlib.h: No such file or directory
|
One ore more X*-devel package is missing.
These are the usual prerequisites for ns2 :
# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel
See post #1 : Xlib.h is from the package 'libX11-devel'
Quote post #1 : " # yum install libX11-devel ... "
.
Last edited by knudfl; 08-19-2012 at 04:59 AM.
|
|
|
08-20-2012, 03:44 PM
|
#30
|
LQ Newbie
Registered: Aug 2012
Posts: 19
Rep: 
|
Done
Quote:
Originally Posted by knudfl
# 28
.
|
done and at the end this msg appear :
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
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
please tell me how i can do this step by step?
|
|
|
All times are GMT -5. The time now is 10:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|