LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to install NS2 on fedora 5 (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-ns2-on-fedora-5-a-612860/)

azamjiva 01-11-2008 09:53 AM

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

Emerson 01-12-2008 07:05 PM

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?

azamjiva 01-14-2008 02:40 PM

Linux version
 
ok then which Linux version is supportable to install ns package ?

Emerson 01-14-2008 03:27 PM

Quote:

Originally Posted by azamjiva (Post 3022284)
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.

acid_kewpie 01-14-2008 04:18 PM

nothing to do with networking. moved to Linux - Newbie.

kazim425 02-26-2008 02:35 AM

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

salady86 03-15-2008 06:40 AM

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

acid_kewpie 03-15-2008 07:48 AM

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?

salady86 03-15-2008 01:15 PM

Quote:

Originally Posted by acid_kewpie (Post 3089429)
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?

acid_kewpie 03-15-2008 02:00 PM

well, as above, is the ns binary actually there?

salady86 03-15-2008 11:16 PM

Quote:

Originally Posted by acid_kewpie (Post 3089660)
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

acid_kewpie 03-16-2008 05:33 AM

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.

kazim425 03-17-2008 06:07 AM

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

salady86 03-18-2008 03:03 AM

Quote:

Originally Posted by acid_kewpie (Post 3090152)
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

salady86 03-18-2008 03:34 AM

Quote:

Originally Posted by kazim425 (Post 3091198)
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...


All times are GMT -5. The time now is 11:22 PM.