LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns make error in fedora 17 (https://www.linuxquestions.org/questions/linux-newbie-8/ns-make-error-in-fedora-17-a-948298/)

knudfl 08-15-2012 03:38 PM

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

.

majd_cs 08-17-2012 05:32 PM

Quote:

Originally Posted by knudfl (Post 4754945)
# 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]$

knudfl 08-17-2012 05:46 PM

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

.

majd_cs 08-17-2012 06:39 PM

thankssssss
 
Quote:

Originally Posted by knudfl (Post 4757119)
# 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'

knudfl 08-17-2012 07:29 PM

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

.

majd_cs 08-18-2012 03:00 AM

Quote:

Originally Posted by knudfl (Post 4757169)
# 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'

knudfl 08-18-2012 03:40 AM

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

.

majd_cs 08-18-2012 09:38 AM

Quote:

Originally Posted by knudfl (Post 4757393)
# 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

knudfl 08-18-2012 10:25 AM

# 23

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


If it is there, please read post # 20.


.

majd_cs 08-18-2012 10:34 AM

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

majd_cs 08-18-2012 10:39 AM

Quote:

Originally Posted by knudfl (Post 4757648)
# 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

knudfl 08-18-2012 01:11 PM

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

.

majd_cs 08-18-2012 01:26 PM

Quote:

Originally Posted by knudfl (Post 4757748)
# 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]$

knudfl 08-18-2012 03:51 PM

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

.

majd_cs 08-20-2012 03:44 PM

Done
 
Quote:

Originally Posted by knudfl (Post 4757865)
# 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 12:41 PM.