LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ns installation (https://www.linuxquestions.org/questions/linux-software-2/ns-installation-765896/)

jeni_m110 10-31-2009 09:44 PM

ns installation
 
hi,
i had problem to install ns-2.1b8-mvast, i try to install ns-allinone 2.1b8 and then add ADMR and ODMRP protocols from ns-2.1b8-mcast. but i don't know how?
i found a text from a link that is now expired. could any one explain it clear for me?
i'm a new user with linux and ns.
thanks in advance

this is the text:
tar xzvf ns-allinone-2.1b8.tar.gz
gedit install
===================
search/replace
./configure
>> bash ./configure
save
===================
tar xzvf ns-2ns-2.1b8-mcast.gz
rename ns-2.1b8-mcast>> ns-2.1b8
mv ns-2.1b8 >> ns-allinone-2.1b8
cd ns-allinone-2.1b8
patch -p1 < ../ns-allinone-2.1b8.patch
sudo mkdir /opt/ns
sudo chown -R gweep:gweep /opt/ns \\\ sudo chown -R gweep\\\:gweep /opt/ns
export LD_LIBRARY_PATH=/opt/ns/2.1b8
cd ns-allinone-2.1b8/tcl8.3.2/unix
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
======================
make clean

และ

make distclean
======================
make
make install


cd ../../tk8.3.2/unix
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../../otcl-1.0a7
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../tclcl-1.0b11
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../ns-2.1b8
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
export PATH=/opt/ns/bin:$PATH
make
make install

TB0ne 11-01-2009 01:44 PM

Quote:

Originally Posted by jeni_m110 (Post 3739661)
hi,
i had problem to install ns-2.1b8-mvast, i try to install ns-allinone 2.1b8 and then add ADMR and ODMRP protocols from ns-2.1b8-mcast. but i don't know how?
i found a text from a link that is now expired. could any one explain it clear for me?
i'm a new user with linux and ns.
thanks in advance

this is the text:
tar xzvf ns-allinone-2.1b8.tar.gz
gedit install
===================
search/replace
./configure
>> bash ./configure
save
===================
tar xzvf ns-2ns-2.1b8-mcast.gz
rename ns-2.1b8-mcast>> ns-2.1b8
mv ns-2.1b8 >> ns-allinone-2.1b8
cd ns-allinone-2.1b8
patch -p1 < ../ns-allinone-2.1b8.patch
sudo mkdir /opt/ns
sudo chown -R gweep:gweep /opt/ns \\\ sudo chown -R gweep\\\:gweep /opt/ns
export LD_LIBRARY_PATH=/opt/ns/2.1b8
cd ns-allinone-2.1b8/tcl8.3.2/unix
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
======================
make clean

และ

make distclean
======================
make
make install


cd ../../tk8.3.2/unix
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../../otcl-1.0a7
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../tclcl-1.0b11
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
make
make install
cd ../ns-2.1b8
CFLAGS="-g -O2 -fno-stack-protector" CXXFLAGS="-g -O2 -fno-stack-protector" bash ./configure --prefix=/opt/ns/2.1b8
rm config.log
export PATH=/opt/ns/bin:$PATH
make
make install

And isn't this almost the same question you have in another thread?

Everyone there has given you advice, but you're not taking much of it.

John VV 11-01-2009 04:19 PM

please do not double post


All times are GMT -5. The time now is 09:28 AM.