LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-15-2012, 03:38 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 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.

.
 
Old 08-17-2012, 05:32 PM   #17
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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]$
 
Old 08-17-2012, 05:46 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 08-17-2012, 06:39 PM   #19
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
thankssssss

Quote:
Originally Posted by knudfl View Post
# 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'
 
Old 08-17-2012, 07:29 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

.
 
Old 08-18-2012, 03:00 AM   #21
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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'
 
Old 08-18-2012, 03:40 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

.
 
Old 08-18-2012, 09:38 AM   #23
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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
 
Old 08-18-2012, 10:25 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 23

? Is the file ns-allinone-2.31/ns-2.31/ns present now ? ?


If it is there, please read post # 20.


.
 
Old 08-18-2012, 10:34 AM   #25
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
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.
 
Old 08-18-2012, 10:39 AM   #26
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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
 
Old 08-18-2012, 01:11 PM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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
Quote:
I try this but not work with me http://www.edaboard.com/thread118830.html
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.
 
Old 08-18-2012, 01:26 PM   #28
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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.
 
Old 08-18-2012, 03:51 PM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 08-20-2012, 03:44 PM   #30
majd_cs
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Done

Quote:
Originally Posted by knudfl View Post
# 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?
 
  


Reply

Tags
crcn, crcn-fc17, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom linux kernel for fedora make bzImage error Aqua_Regia Linux - Newbie 1 12-15-2011 06:05 AM
b43-fwcutter-011 make error in Fedora 10 lupusarcanus Linux - Software 4 03-31-2009 11:02 AM
EW-7318USG - error during make - OS is Fedora staylor1962 Linux - Newbie 2 11-15-2008 03:11 PM
Fedora Core 9, make error BallsOfSteel Linux - Newbie 4 07-01-2008 01:28 PM
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration