LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-16-2011, 11:01 AM   #31
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
@kshitiz, post #29.
Easier to manage, when you have the files in your /home/<name>/.

Fedora / CentOS 5.x :
cd /home/kshitiz/tmp/ && tar xvf ns-allinone-2.28.tar.gz &&
patch -p0 < ns228-gcc40.patch ( See post #11 )
&& cd ns-allinone-2.28/tk8.4.5/ &&
wget ftp://gentoo.inode.at/portage/dev-la...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

( Required : # yum install compat-gcc-34-c++ ).

..
Hi, im very noob to this form. Im installing ns2.28 on fedora 12 with gcc 4.4.4. I did exactly what u suggested.

patch -p1 < ns228-gcc40.patch under ns-allinone2.28/ && patch -p0 < tk-8.4-lastevent.patch under tk-8.4.5/ Also modified makein file. But still got errors.

tclcl-1.16 make failed! Exiting ... No difference. Help pls.
 
Old 11-17-2011, 08:48 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
#31, @kh.bagi.

The "install command" is : 'export CC=gcc34 CXX=g++34 && ./install'.
Is that what you did ? ?


The export command is temporary. Will reset to default, when you exit the terminal.

..
 
Old 11-18-2011, 12:21 AM   #33
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#31, @kh.bagi.

The "install command" is : 'export CC=gcc34 CXX=g++34 && ./install'.
Is that what you did ? ?


The export command is temporary. Will reset to default, when you exit the terminal.

..
Thank you for ur reply. Actually i didnt 'export CC=gcc34 CXX=g++34 && ./install'. So here is what i tried today.

1.cd ns-allinone-2.28/patch -p1 < ns228-gcc40.patch(somehow patch -p0 < ns228-gcc40.patch command didnt work. dont know why. so changed it to p1 instead of p0)

2.cd ns-allinone-2.28/tk8.4.5/patch -p0 < tk-8.4-lastevent.patch

3.Didnt change "/ns-allinone-2.28/ns-2.28/makefile.in" this file

4.cd /ns-allinone-2.28/export CC=gcc34 CXX=g++34 && ./install

So installation worked. But i got error with validation as following:
alidate overall report: some tests failed:
./test-all-newreno ./test-all-red
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.

So i manually validate cd/tcl/test/ ./test-all-newreno and ./test-all-red. after this, i tried to validate whole ns2 and got same error above. thanks
 
Old 11-18-2011, 12:37 AM   #34
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
individual validation prompts for permission after every test and thus runs many test & opens a lot of xgraph window. I just pressed ENTER key until its finished
 
Old 11-18-2011, 04:00 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
#34, #35.
Quote:
validate overall report: some tests failed:
./test-all-newreno ./test-all-red
That's the expected result. ( Or better than expected.) : Read post # 11.

Nothing will be different by running some individual tests.

..

Last edited by knudfl; 11-18-2011 at 04:03 AM.
 
Old 11-22-2011, 12:20 PM   #36
kh.bagi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#34, #35.


That's the expected result. ( Or better than expected.) : Read post # 11.

Nothing will be different by running some individual tests.

..
Thank you. im running ns2, but still dont know whether the errors would come up. Anyway , thank you again.
 
Old 12-15-2011, 04:12 PM   #37
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
Hi knudfl...
can i do same steeps on post#10 to install ns-2.28 under fedora core 7
 
Old 12-15-2011, 05:04 PM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
Post # 37, @jommas : Welcome to LQ.

The procedure in post #10, and post #11 should do
for Fedora 6 .... Fedora 16.
 
1 members found this post helpful.
Old 12-15-2011, 05:10 PM   #39
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
thansssss alot for quick ans.

Last edited by jommas; 12-15-2011 at 05:14 PM.
 
Old 12-16-2011, 05:20 AM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
# 37, @jommas

I'd just remembered this :
In Fedora 7 you should be able to use only the patch ns228-gcc40.patch,
and omit the complicated (Ubuntu / Debian) method in post #10.
 
Old 12-16-2011, 12:22 PM   #41
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
Hi knudfl >>> i did this in my fedora 7 to install ns-2.28

From post #10:

Code:
[root@dhcppc0 ~]# sh script_228.txt
patching file ns-allinone-2.28/nam-1.11/agent.h
patching file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
patching file ns-allinone-2.28/ns-2.28/diffusion3/lib/nr/nr.hh
patching file ns-allinone-2.28/ns-2.28/queue/cbq.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.cc
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.h
mv: cannot stat `nam-1.10/': No such file or directory
ln: creating symbolic link `./nam-1.14': File exists
ln: creating symbolic link `nam-1.11/nam-1.14': File exists
patching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej
THin installed the ns2 and i get this in the end of the installation:

Code:
make: *** No rule to make target `VERSION', needed by `gen/version.c'.  Stop.
Nam make failed! Continue ...
See http://www.isi.edu/nsnam/ns-problems.html for problems
Please compile your nam separately.
Please compile your gt-itm & sgb2ns separately.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5:       /root/ns-allinone-2.28/{bin,include,lib}
tk8.4.5:                /root/ns-allinone-2.28/{bin,include,lib}
otcl:           /root/ns-allinone-2.28/otcl-1.9
tclcl:          /root/ns-allinone-2.28/tclcl-1.16
ns:             /root/ns-allinone-2.28/ns-2.28/ns
xgraph: /root/ns-allinone-2.28/xgraph-12.1

----------------------------------------------------------------------------------

Please put /root/ns-allinone-2.28/bin:/root/ns-allinone-2.28/tcl8.4.5/unix:/root/ns-allinone-2.28/tk8.4.5/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /root/ns-allinone-2.28/otcl-1.9, /root/ns-allinone-2.28/lib, 
    into your LD_LIBRARY_PATH environment variable.
    If it complains about X libraries, add path to your X libraries 
    into LD_LIBRARY_PATH.
    If you are using csh, you can set it like:
                setenv LD_LIBRARY_PATH <paths>
    If you are using sh, you can set it like:
                export LD_LIBRARY_PATH=<paths>

(2) You MUST put /root/ns-allinone-2.28/tcl8.4.5/library into your TCL_LIBRARY environmental
    variable. Otherwise ns/nam will complain during startup.

(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.5 
    and tk8.4.5. They are now installed under /root/ns-allinone-2.28/{bin,include,lib}

After these steps, you can now run the ns validation suite with
cd ns-2.28; ./validate

For trouble shooting, please first read ns problems page 
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
Then put the path

gedit ~/.bashrc
Code:
# LD_LIBRARY_PATH
OTCL_LIB=/home/root/ns-allinone-2.28/otcl-1.9
NS2_LIB=/home/root/ns-allinone-2.28/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/root/ns-allinone-2.28/tcl8.4.5/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/root/ns-allinone-2.28/bin:/home/root/ns-allinone-2.28/tcl8.4.5/unix:/home/root/ns-allinone-2.28/tk8.4.5/unix
NS=/home/root/ns-allinone-2.28/ns-2.28/
NAM=/home/root/ns-allinone-2.28/nam-1.11/
PATH=$PATH:$XGRAPH:$NS:$NAM

When i type ns i get "%"
but nam i get "command not found"
i did like post #23 but i get error like post #24
and i tried post #25 i get :
Code:
make: *** No rule to make target `VERSION', needed by `gen/version.c'.  Stop.
i have:
nam-1.11 contain VERSION file with code "1.11"
and also ns-2.28 contain VERSION file with code 2.28

i need your suggeestion.....

Last edited by jommas; 12-17-2011 at 04:07 PM. Reason: p
 
Old 12-16-2011, 02:29 PM   #42
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
# 41. See posts #11 and #37.
Better start from scratch with a new unpacked ns-allinone-2.28.tar.gz :

Fedora 6-7-8 etc., building ns-allinone-2.28 :

cd <folder-with ns-allinone-2.28/> && patch -p0 < ns228-gcc40.patch
&& cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install


Nam is not important, is a separate application. Any nam can be used.
https://docs.google.com/open?id=0B7S...YzNmY4NTI1ZDQ0
> > nam-1.14-fc6.el5.tar.gz > Unpack, and : # cp nam /usr/local/bin/

.

Last edited by knudfl; 12-16-2011 at 02:31 PM.
 
Old 12-16-2011, 04:20 PM   #43
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
me again...

i did the patch in post #42
and i get this:
Code:
[root@dhcppc0 ~]# cd ns-allinone-2.28/
[root@dhcppc0 ns-allinone-2.28]# patch -p0 < ns228-gcc40.patch.txt 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/nam-1.11/agent.h ns-allinone-2.28/nam-1.11/agent.h
|--- ns-allinone-2.28.orig/nam-1.11/agent.h     2001-06-15 21:53:10.000000000 -0400
|+++ ns-allinone-2.28/nam-1.11/agent.h  2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/diffusion3/filter_core/filter_core.hh ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
|--- ns-allinone-2.28.orig/ns-2.28/diffusion3/filter_core/filter_core.hh       2005-01-19 13:23:21.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh     2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 27
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/diffusion3/lib/nr/nr.hh ns-allinone-2.28/ns-2.28/diffusion3/lib/nr/nr.hh
|--- ns-allinone-2.28.orig/ns-2.28/diffusion3/lib/nr/nr.hh      2005-01-19 13:23:21.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/diffusion3/lib/nr/nr.hh   2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 40
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/queue/cbq.cc ns-allinone-2.28/ns-2.28/queue/cbq.cc
|--- ns-allinone-2.28.orig/ns-2.28/queue/cbq.cc 2005-01-25 17:38:47.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/queue/cbq.cc      2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 53
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/tora/tora_neighbor.h ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
|--- ns-allinone-2.28.orig/ns-2.28/tora/tora_neighbor.h 2005-01-19 13:23:53.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h      2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/xcp/xcpq.cc ns-allinone-2.28/ns-2.28/xcp/xcpq.cc
|--- ns-allinone-2.28.orig/ns-2.28/xcp/xcpq.cc  2005-02-03 13:29:20.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/xcp/xcpq.cc       2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru ns-allinone-2.28.orig/ns-2.28/xcp/xcpq.h ns-allinone-2.28/ns-2.28/xcp/xcpq.h
|--- ns-allinone-2.28.orig/ns-2.28/xcp/xcpq.h   2005-02-03 13:29:20.000000000 -0500
|+++ ns-allinone-2.28/ns-2.28/xcp/xcpq.h        2005-10-07 21:51:57.000000000 -0400
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
2 out of 2 hunks ignored
[root@dhcppc0 ns-allinone-2.28]#

Last edited by jommas; 12-17-2011 at 03:50 PM.
 
Old 12-16-2011, 06:15 PM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
#43
Quote:
[root@dhcppc0 ~]# cd ns-allinone-2.28/
[root@dhcppc0 ns-allinone-2.28]# patch -p0 < ns228-gcc40.patch.txt
Wrong. The text in #42 says : cd <folder-with ns-allinone-2.28/,
i.e. the parent directory for ns-allinone-2.28/ .
That's where you must do the patch command.


And : root should not be used. Please log in as unprivileged user,
and use like /home/<user-name>/ns2/ for your ns-allinone build.
And do all commands as <user>, not root.

..
 
Old 12-17-2011, 10:33 AM   #45
jommas
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
i did the patch o.k and ns-2, in the end of installation i get:
Code:
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5:       /home/shifa/simu/ns-allinone-2.28/{bin,include,lib}
tk8.4.5:                /home/shifa/simu/ns-allinone-2.28/{bin,include,lib}
otcl:           /home/shifa/simu/ns-allinone-2.28/otcl-1.9
tclcl:          /home/shifa/simu/ns-allinone-2.28/tclcl-1.16
ns:             /home/shifa/simu/ns-allinone-2.28/ns-2.28/ns
nam:    /home/shifa/simu/ns-allinone-2.28/nam-1.11/nam
xgraph: /home/shifa/simu/ns-allinone-2.28/xgraph-12.1

The validate process :

Code:
validate overall report: some tests failed:
     ./test-all-newreno ./test-all-red
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.

Last edited by jommas; 12-17-2011 at 03:51 PM.
 
  


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


All times are GMT -5. The time now is 02:51 PM.

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