LinuxQuestions.org
Review your favorite Linux distribution.
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 12-17-2011, 11:54 AM   #46
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,644

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531

#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

..
 
Old 12-17-2011, 03:22 PM   #47
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
Yes it work , kndufl you are the best ... Thank you
 
Old 12-17-2011, 04:48 PM   #48
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
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
Attached Files
File Type: txt README.txt (3.9 KB, 4 views)
File Type: txt EDCA_ns-2_28-v1-0-2.tgz.txt (33.3 KB, 5 views)
 
Old 12-18-2011, 07:00 AM   #49
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,644

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
# 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.
 
Old 12-30-2011, 01:16 AM   #50
Gunasekaran
LQ Newbie
 
Registered: Nov 2011
Location: tamilnadu,vellore
Distribution: ns2
Posts: 13

Rep: Reputation: Disabled
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.....
 
Old 03-12-2012, 08:46 PM   #51
hhgh
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy 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,
 
Old 03-12-2012, 08:51 PM   #52
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by hhgh View Post
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.
 
Old 03-12-2012, 09:15 PM   #53
hhgh
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy

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!
 
Old 03-13-2012, 12:43 AM   #54
hhgh
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy 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
 
Old 03-13-2012, 01:55 AM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,644

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
# 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

.

Last edited by knudfl; 03-13-2012 at 01:59 AM.
 
Old 03-13-2012, 05:14 PM   #56
hhgh
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Smile

Hi knudfl (#55),

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

It worked!!
 
Old 04-23-2012, 07:24 PM   #57
harshanlinux
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
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.

Last edited by harshanlinux; 04-23-2012 at 07:50 PM.
 
Old 05-02-2012, 04:14 AM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,644

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Post # 57, @harshanlinux : Welcome to LQ.
Quote:
validate overall report: some tests failed;
Which tests failed ? ?
 
Old 05-25-2012, 09:52 PM   #59
Zahraa85
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
problem with ns-allinone-2.28 on ubuntu 10.04

Quote:
Originally Posted by knudfl View Post
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
 
Old 05-27-2012, 05:22 AM   #60
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,644

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
# 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.)

.

Last edited by knudfl; 10-22-2012 at 05:04 AM.
 
  


Reply

Tags
fail, g++41-compat-1110, ns2, ns228, tk-8.4-lastevent.patch, validation


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
OS Validation on C++ Bassy Programming 2 04-17-2009 12:31 AM
tk8.4.11 make failed---a problem about ns2 install !!! blueskyhff Linux - Software 1 07-03-2007 02:26 AM
xml validation kshkid Programming 1 05-02-2007 01:46 AM
Need Your Validation scbops Linux - Newbie 1 12-27-2006 05:09 AM
Validation Makaveli.2003 Programming 1 05-06-2002 08:30 AM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
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