LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns2 - some validation tests failed (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-some-validation-tests-failed-732164/)

knudfl 12-17-2011 11:54 AM

#45
Quote:

validate overall report: some tests failed:
./test-all-newreno ./test-all-red
Perfect. That's the expected result. See post #11.


Posting issues : Please do not use colored text. Is less readable.
And : Please edit posts #41 and #43 ( #45 ) to use CODE Tags :
Edit > Go Advanced, and use the # button.
Or write [/code] at text end, and [code] at code text start.
http://www.linuxquestions.org/questi....php?do=bbcode

..

jommas 12-17-2011 03:22 PM

Yes it work , kndufl you are the best ... Thank you

jommas 12-17-2011 04:48 PM

2 Attachment(s)
knudfl im very sory i ask a lot of qustions...
this time new case
im tried to install ieee802.11e patch , (i uploaded just rename and delet .txt)

and i followed the installation steps in readme file
but: in step 7,8 and 9
when im try to open the files (wireless-phy.h , wireless-phy.cc and packet.h) i get: Couldn't disply


example for wireless-phy.h file
Code:

Couldn't display "/home/shifa/simu/ns-allinone-2.28/ns-2.28/mac/wireless-phy.h".
what you think

knudfl 12-18-2011 07:00 AM

# 48
Quote:

Couldn't display "/home/shifa/simu/ns-allinone-2.28/ns-2.28/mac/wireless-phy.h"
Which command are you using ? ?

Headers like wireless-phy.h are usually used for compiling only.

Gunasekaran 12-30-2011 01:16 AM

installation &validation failed in ns2.31 on ubuntu 10.04 lucid
 
@ knudfl sir,

Actually me and my friends trying to install ns2.31 on ubuntu 10.04 since 1 month but not good results came yet.this is the error came when i install and validate....

error occur while ./install

checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.32-33-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc-4.3 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/guna/ns-allinone-2.31/include -I/home/guna/ns-allinone-2.31/include -I/home/guna/ns-allinone-2.31/include -I/include otcl.c
make: gcc-4.3: Command not found
make: *** [libotcl.so] Error 127
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
guna@ubuntu:~/ns-allinone-2.31$

error occur while ./validate

Running test full-asymmetric:
../../ns test-suite-delaybox.tcl full-asymmetric QUIET
./test-all-template1: 149: ../../ns: Too many levels of symbolic links
Test not implemented
All test output agrees with reference output.
Fri Dec 30 12:22:30 IST 2011
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode

validate overall report: some tests failed:
./test-all-simultaneous
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.
guna@ubuntu:~/ns-allinone-2.31/ns-2.31$ source ~/.bashrc
guna@ubuntu:~/ns-allinone-2.31/ns-2.31$ ns
ns: command not found
guna@ubuntu:~/ns-allinone-2.31/ns-2.31$

sir,

i used so many different installation steps all is failed, currently i used this steps......

How to install NS2 with Ubuntu 10.04 By Noor Zaman

This manual will work for NS2 allinone-2.34 with Ubuntu 10.4. As Ubuntus new version 10.04 needs following packages before any further installation, otherwise it will not work with it.
Please follow the following steps:

1. Install necessary tools for building:

sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3

2. It turns out that otcl does not like the version of gcc installed by default in Lucid. So go ahead and change ns-allinone-2.34/otcl-1.13/Makefile.in. Find the line that says:

CC= @CC@
and change it to:
CC= gcc-4.3
3. Now follow the following steps for installation of nsallinone 2.34 and it will work with your machine. (copy ns-allinone-2.34.tar.gz)

Suppose that there is "ns-allinone-2.33.tar.gz" in current directory (e.g. "~/" for me is "/home/noor").
All steps are done in Terminal, so open a terminal in Accessories/Terminal.To extract the file:
tar xvfz ./ns-allinone-2.33.tar.gz


4. Change your directory within terminal as following way

$ cd /home/noor$ cd /home/noor/ns-allinone-2.34

5. Download & install some packages from repository if needed (Now its optional)

$ sudo apt-get install build-essential autoconf automake libxmu-dev
6. Install the ns2

$ cd ns-allinone-2.34
$ ./install
7. Edit some paths

$ gedit ~/.bashrc
8. Put these lines on that file in the last. Off course, you might change /home/noor for it depends on where you extract ns-allinone-2.34.tar.

# LD_LIBRARY_PATHOTCL_LIB=/home/noor/ns-allinone-2.34/otcl-1.13NS2_LIB=/home/noor/ns-allinone-2.34/libX11_LIB=/usr/X11R6/libUSR_LOCAL_LIB=/usr/local/libexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB# TCL_LIBRARYTCL_LIB=/home/noor/ns-allinone-2.34/tcl8.4.18/libraryUSR_LIB=/usr/libexport TCL_LIBRARY=$TCL_LIB:$USR_LIB# PATHXGRAPH=/home/noor/ns-allinone-2.34/bin:/home/noor/ns-allinone-2.34/tcl8.4.18/unix:/home/noor/ns-allinone-2.34/tk8.4.18/unix:/home/noor/ns-allinone-2.34/xgraph-12.1/NS=/home/noor/ns-allinone-2.34/ns-2.34/NAM=/home/noor/ns-allinone-2.34/nam-1.13/export PATH=$PATH:$XGRAPH:$NS:$NAM

9. Validate it (take very long time compare to install process)
$ cd ns-2.33$ ./validate

10. Let it take effect immediately

$ source ~/.bashrc

11. Try to run it as following way, by just typing ns with terminal

$ ns
12. If the installation is successful, then you will be able to see % at the command prompt. Type following command to exit
% exit

13. Good luck and please keep remember me in your prays(Thanks in advance). Noor Zaman, King Faisal University, Saudi Arabia.


sir pls help me...thanks in advance.....

hhgh 03-12-2012 08:46 PM

Problem with NS2.28 installation on CentOS 6
 
Hi all,

I am trying to install ns2 2.28 in CentOS 6.


The procedure in posts #10 does not work for me.

Trying to run the the script posted ("script_228.txt") but got error at the first stage:

When executing the patch below:
patch -p0 < ns228-gcc40.patch.txt

Linux asks "File to patch:? "


Please help,
Thank you in advance,

kh.bagi 03-12-2012 08:51 PM

Quote:

Originally Posted by hhgh (Post 4625271)
Hi all,

I am trying to install ns2 2.28 in CentOS 6.


The procedure in posts #10 does not work for me.

Trying to run the the script posted ("script_228.txt") but got error at the first stage:

When executing the patch below:
patch -p0 < ns228-gcc40.patch.txt

Linux asks "File to patch:? "


Please help,
Thank you in advance,

HI. patch file has to have a .patch extension, not .txt So remove .txt and try again.

hhgh 03-12-2012 09:15 PM

Hi kh.bagi,

Thanks for your prompt response.

I did as you suggested, the PATCH worked properly.

But, for the rest of procedure, i got another error.

at the point of:
" cd tk8.4.18/ "

the Error:
bash: cd: tk8.4.18/: No such file or directory


Please help!

hhgh 03-13-2012 12:43 AM

Installing NS2.28 on Linux CentOS 6 ?
 
Hi knudfl,

I am going to install NS2.28 on CentOS 6.

Shall I follow all steps described in Post #10. However, when it reaches to : cd ../tk8.4.18/
i get this message:
bash : cd: tk8.4.18/: No Such file or directory

I have already installed ns2.35 and it works properly now. Am I required to have installed ns2.34 as well on my machine?

Please help me. I am totally confused here! I don not know from which point should I start?

Thank you in advance

knudfl 03-13-2012 01:55 AM

# 54 : Actually CentOS, Fedora can use the simplest install.
(The method in #10 was originally made up for Ubuntu.)

tar xvf ns-allinone-2.28.tar.gz && patch -p0 < ns228-gcc40.patch
&& cd ns-allinone-2.28/tk8.4.5 &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../
&& export CC=gcc34 CXX=g++34 && ./install


Validate : A pefect result, only 2 tests failed :
validate overall report: some tests failed:
./test-all-newreno ./test-all-red

.

hhgh 03-13-2012 05:14 PM

Hi knudfl (#55),

Many thanks for your sincere help and continuous support on NS2.28 installation on Linux!

It worked!!

harshanlinux 04-23-2012 07:24 PM

please help me on this problem......

i have installed ns-allinone-2.1b8a on red hat Linux 7.3. but after installing the NS version, i typed the ./validate and at the end of the validation,
validate overall report: some tests failed;
-
-
-
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.
i really don't no what is the problem. if this is the version problem please tell me what Linux version i should use to install the ns-allinone-2.1b8a.

knudfl 05-02-2012 04:14 AM

Post # 57, @harshanlinux : Welcome to LQ.
Quote:

validate overall report: some tests failed;
Which tests failed ? ?

Zahraa85 05-25-2012 09:52 PM

problem with ns-allinone-2.28 on ubuntu 10.04
 
Quote:

Originally Posted by knudfl (Post 4088112)
Same well tested Ubuntu method as ns-allinone-2.27, using some "ns-allinone-2.34 files".
http://www.linuxquestions.org/questi...10-a-782356/#3
'ns-allinone-2.34/' is required too.
EDIT : Fedora, CentOS : Please see post # 55.

# yum install compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel \
libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool

**** All these commands can also be run as a script : 'sh script_228.txt' :
cd ns-allinone-2.28/
mv otcl-1.9/ back-otcl-1.9/
mv tclcl-1.16/ back-tclcl-1.16
mv tcl8.4.5/ back-tcl8.4.5
mv tk8.4.5/ back-tk8.4.5
mv nam-1.11/ back-nam-1.11

ln -s ../ns-allinone-2.34/otcl-1.13/
ln -s ../ns-allinone-2.34/tclcl-1.19/
ln -s ../ns-allinone-2.34/tcl8.4.18/
ln -s ../ns-allinone-2.34/tk8.4.18/
ln -s ../ns-allinone-2.34/nam-1.14/

ln -s otcl-1.13/ otcl-1.9
ln -s tclcl-1.19/ tclcl-1.16
ln -s tcl8.4.18/ tcl8.4.5
ln -s tk8.4.18/ tk8.4.5
ln -s nam-1.14/ nam-1.11

mv nam-1.10/ back-nam-1.10
ln -s ../ns-allinone-2.34/nam-1.14/
ln -s nam-1.14/ nam-1.11

mkdir -p include
cd include/
ln -s ../tcl8.4.18/generic/tclInt.h
ln -s ../tcl8.4.18/generic/tclIntDecls.h

cd ../tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch
exit
****

Edit ns-allinone-2.28/ns-2.28/Makefile.in, line 36-37 to
CC = gcc34
CPP = g++34

cd ns-allinone-2.28/ && ./install
.............
.............

And a reasonable "validation".
"" validate overall report: some tests failed:
./test-all-newreno ./test-all-tcpHighspeed ./test-all-red ./test-all-cbq ./test-all-xcp "".


Hello Mr.Knuduf

Thank you for your help,
I followed your steps for installation ns-2.28 on ubuntu 10.04 but i got the following error:

make: g++-34: Command not found
make: *** [tools/random.o] Error 127
Ns make failed!

and i used the following link to solve the above error
http://www.linuxquestions.org/questi...-found-936150/
post #1
but the error still not solved

do you have any idea please

Thank you

knudfl 05-27-2012 05:22 AM

# 59 : Ubuntu 10.04 and ns-2.28 : There are new instructions ...
Use both patches, ns228-gcc40.patch + ns-2.28-gcc410.patch,
and the extra ns-2.34 files can be omitted : Post # 15 here ..
http://www.linuxquestions.org/questi...4-a-842773/#15
... The latest known results of 'validate' are very good.

gcc / g++ : sudo apt-get install g++-4.1
Use this export line : export CC=gcc-4.1 CXX=g++-4.1

( gcc34 , g++34 is for Fedora, CentOS.)

.


All times are GMT -5. The time now is 03:35 PM.