LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-11-2008, 10:53 AM   #1
azamjiva
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Question Unable to install NS2 on fedora 5


I have tried to install NS2 using package ns-allinone-2.29.3.tar
but have encountered with errors

Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...


so far commands i used to install this package are
./install

i think some path parameters are missing please help me out with this .i duno the command to put path parameters .

awaiting for reply
 
Old 01-12-2008, 08:05 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Welcome to LQ!

You miss GCC, in fact you miss entire GNU toolchain. Can't tell you where to get these for FC5. Even FC6 is no longer supported. Do you have all install disks? Would you consider a newer, supported version of Linux?
 
Old 01-14-2008, 03:40 PM   #3
azamjiva
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Linux version

ok then which Linux version is supportable to install ns package ?
 
Old 01-14-2008, 04:27 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Quote:
Originally Posted by azamjiva View Post
ok then which Linux version is supportable to install ns package ?
NS2 can be installed in any Linux, no problem here. With a newer, supported Linux it is much easier. Get yourself Fedora 8 and use Fedora package management to install whatever software you desire. There's no need to compile it by yourself. Make sure your computer meets hardware requirements before downloading an ISO.
 
Old 01-14-2008, 05:18 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
nothing to do with networking. moved to Linux - Newbie.
 
Old 02-26-2008, 03:35 AM   #6
kazim425
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
steps to install ns2 in fedora

you can follow these steps in any linux environment

INSTALLING NS-2 ON FEDORA 8

STEP 1

From terminal login as super user and do the following.(internet must also be connected in order to install the package dependencies.

yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
And for nam installation (optional):
yum install libXmu-devel

STEP 2

From terminal go to the folder where the ns-allinone patch is placed and type the following to extract
$ tar -xzf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.29
$. /install

STEP 3

Now go to /etc folder and type

gedit ~/.bashrc

Add the following lines to the end of it. Remember replace "/your/path" by something like "/home/kazim". And accordingly also change the version numbers. This is for ns 2.31.

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.31/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/your/path/ns-allinone-2.31/ns-2.31/
NAM=/your/path/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

Let it take effect immediately

source ~/.bashrc



Note: the step described above is important; otherwise, you cannot run ns successfully.
or you can restart your X windows.i.e. logout and then login, or reboot your system, to make it work.)

Now, the installation has been completed. If you try:
$ ns

Then a "%" will appear on the screen.type "exit" to quit the mode and back to "$"


If you miss out step 1 you may get the following errors

Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...

If you miss step 3

At the prompt when you type ns you will get
Ns command not found
 
Old 03-15-2008, 07:40 AM   #7
salady86
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
i followed the steps exactly as mentioned below....
STEP 2

From terminal go to the folder where the ns-allinone patch is placed and type the following to extract
$ tar -xzf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.29
$. /install

STEP 3

Now go to /etc folder and type

gedit ~/.bashrc

Add the following lines to the end of it. Remember replace "/your/path" by something like "/home/kazim". And accordingly also change the version numbers. This is for ns 2.31.

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.31/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/your/path/ns-allinone-2.31/ns-2.31/
NAM=/your/path/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

then i gave
source ~/.bashrc

i then typed ns
bash: ns: command not found....

whats wrong????please help..i have tried almost 10 times the same thing..but not succesful...sumone help!!!!!!1
 
Old 03-15-2008, 08:48 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well at that level, you have a path issue potentially. it looks like the binary should be in /your/path/ns-allinone-2.31/ns-2.31/ is it?
 
Old 03-15-2008, 02:15 PM   #9
salady86
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
well at that level, you have a path issue potentially. it looks like the binary should be in /your/path/ns-allinone-2.31/ns-2.31/ is it?
i gave gedit ~/.bashrc

then added the following lines

PATH=$PATH:/home/salady/ns2new/ns-2.31/bin
export PATH
PATH=$PATH:/home/salady/ns2new/ns-2.31/tcl8.4.14/unix
export PATH
PATH=$PATH:/home/salady/ns2new/ns-2.31/tk8.4.18/unix
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/salady/ns2new/ns-2.31/otcl-1.13:/home/salady/ns2new/ns-2.31/lib
export LD_LIBRARY_PATH
TCL_LIBRARY=$TCL_LIBRARY:/home/salady/ns2new/ns-2.31/tcl8.4.14/library
export TCL_LIBRARY

then gave source ~/.bashrc

then tried ns
bash:ns command not found...

wat to do?
 
Old 03-15-2008, 03:00 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well, as above, is the ns binary actually there?
 
Old 03-16-2008, 12:16 AM   #11
salady86
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
well, as above, is the ns binary actually there?
well actually..what do you mean by the ns binary??? im new to linux...please explain clearly
 
Old 03-16-2008, 06:33 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
ok, just show us what is in the /home/salady/ns2new/ns-2.31/bin directory. that's where the "ns" program should be i assume.
 
Old 03-17-2008, 07:07 AM   #13
kazim425
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
gedit ~/.bashrc

copy and paste this

# LD_LIBRARY_PATH
OTCL_LIB=/home/salady/ns2new/otcl-1.13
NS2_LIB=/home/salady/ns2new/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB



# TCL_LIBRARY
TCL_LIB=/home/salady/ns2new/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/salady/ns2new/bin:/home/salady/ns2new/tcl8.4.14/unix:/home/salady/ns2new/tk8.4.14/unix
NS=/home/salady/ns2new/ns-2.31/
NAM=/home/salady/ns2new/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

source ~/.bashrc
restart system
if still it says no ns found

then just run ./install again when installation completes try ns from propmt

if still there is problem send me the screenshots of the steps you do
 
Old 03-18-2008, 04:03 AM   #14
salady86
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
ok, just show us what is in the /home/salady/ns2new/ns-2.31/bin directory. that's where the "ns" program should be i assume.
sorry for the late reply...

this is what is in my /home/salady/ns2new/ns-2.31/bin

ns2new/ns-2.31/bin/NS
ns2new/ns-2.31/bin/check-diff.pl
ns2new/ns-2.31/bin/color-event.pl
ns2new/ns-2.31/bin/cplot.tcl
ns2new/ns-2.31/bin/dynamics.pl
ns2new/ns-2.31/bin/gen-files
ns2new/ns-2.31/bin/gen-vcmake.pl
ns2new/ns-2.31/bin/getrc
ns2new/ns-2.31/bin/gnuplot.pl
ns2new/ns-2.31/bin/ktest-all
ns2new/ns-2.31/bin/nam2ns.pl
ns2new/ns-2.31/bin/ns2nam.pl
ns2new/ns-2.31/bin/ns2oldns.pl
ns2new/ns-2.31/bin/oldns2ns.pl
ns2new/ns-2.31/bin/raw2gp
ns2new/ns-2.31/bin/raw2xg
ns2new/ns-2.31/bin/raw2xg-sctp
ns2new/ns-2.31/bin/rt
ns2new/ns-2.31/bin/set_flow_id
ns2new/ns-2.31/bin/string2c.tcl
ns2new/ns-2.31/bin/tcl-expand.tcl
ns2new/ns-2.31/bin/tcpf2xgr
ns2new/ns-2.31/bin/tcpfull-summarize.tcl
ns2new/ns-2.31/bin/trsplit
ns2new/ns-2.31/bin/xgraph.pl
 
Old 03-18-2008, 04:34 AM   #15
salady86
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by kazim425 View Post
gedit ~/.bashrc

copy and paste this

# LD_LIBRARY_PATH
OTCL_LIB=/home/salady/ns2new/otcl-1.13
NS2_LIB=/home/salady/ns2new/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB



# TCL_LIBRARY
TCL_LIB=/home/salady/ns2new/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/salady/ns2new/bin:/home/salady/ns2new/tcl8.4.14/unix:/home/salady/ns2new/tk8.4.14/unix
NS=/home/salady/ns2new/ns-2.31/
NAM=/home/salady/ns2new/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

source ~/.bashrc
restart system
if still it says no ns found

then just run ./install again when installation completes try ns from propmt

if still there is problem send me the screenshots of the steps you do
hello...
i dont know how to send the screenshots..there is no option to attach a file...

i have the install file in the path /home/salady/ns2new/ns-2.31/allinone
i logged in as root and gave gedit ~/.bashrc

i gave
# LD_LIBRARY_PATH
OTCL_LIB=/home/salady/ns2new/ns-2.31/otcl-1.13
NS2_LIB=/home/salady/ns2new/ns-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB


# TCL_LIBRARY
TCL_LIB=/home/salady/ns2new/ns-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/salady/ns2new/ns-2.31/bin:/home/salady/ns2new/ns-2.31/tcl8.4.14/unix:/home/salady/ns2new/ns-2.31/tk8.4.18/unix
NS=/home/salady/ns2new/ns-2.31/allinone(is this right?)
NAM=/home/salady/ns2new/ns-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

i gave source ~/.bashrc
restarted n tried ns
bash:ns command not found
cd /home/salady/ns2new/ns-2.31/allinone
./install...

it gave the following..

[root@localhost allinone]# ./install
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
./install: line 280: cd: ./xgraph-12.1: No such file or directory
./install: line 281: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
./install: line 300: cd: ./cweb: No such file or directory
ns-allinone unable to install cweb for you. Please install it manually. cweb is used by sgb to create sgblibrary needed by scenario-generator. But this will not affect the use of ns as such, so continue..
============================================================
* Build Stanford GraphBase
============================================================
./install: line 331: cd: ./sgb: No such file or directory
Unable to create sgb library. This library is used by gt-itm and so for scenario generators. If you already have sgblib (possible if you are on solaris,sunos or freebsd platforms) you may still be able to run gt-itm. so continuing..
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
./install: line 390: cd: ./zlib-1.2.3: No such file or directory
./install: line 392: ./configure: No such file or directory
Zlib-1.2.3 configuration failed, but it's optional, so continuing ...
============================================================
* Build tcl8.4.14
============================================================
./install: line 412: cd: ./tcl8.4.14/unix: No such file or directory
./install: line 419: ./configure: No such file or directory
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
[root@localhost allinone]#

i really dont undersatnd wats wrong...where should be the install file present..tell me the path exactly....anyways thanks a lot for ur reply...
 
  


Reply

Tags
fedora, install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I install NS2 ? hoang_it Linux - Software 19 10-14-2009 07:02 AM
How to install NS2 simulator(version 2.29) in Fedora 7. mrbhush General 1 05-06-2009 02:41 AM
Problem in installing NS2 in fedora 5 arunram Linux - Software 6 03-14-2009 08:49 AM
steps to install ns2-2.31 in fedora7 me_linuxkid Linux - Wireless Networking 0 09-26-2007 03:50 AM
a problem about ns2 install !!! blueskyhff Linux - Software 1 07-03-2007 03:11 AM


All times are GMT -5. The time now is 05:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration