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 11-25-2010 07:37 AM

@ NewStar, post # 15.
Quote:

This system is not registered with RHN.
Redhat EL 5 is not usable without a Redhat subscription.
Redhat EL 5 is commercial : You will have to pay to get packages.



Don't want to pay ?
Install one of the identical free versions instead :

1) CentOS 5.5 http://www.centos.org/
ISOs http://mirror.centos.org/centos/5/isos/

Or 2) Scientific Linux SL55 https://www.scientificlinux.org/
ISOs https://www.scientificlinux.org/download/
..

NewStar 11-28-2010 01:06 PM

Quote:

Originally Posted by knudfl (Post 4088112)
Same well tested method as ns-allinone-2.27, using some "ns-allinone-2.34 files".
# 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 "".

-----------

Hi,

I am following these steps to install ns2.28 in fedora 10. However when it reaches to : cd ../tk8.4.18/
i get this message:
bash : cd: tk8.4.18/: No Such file or directory

Thanks a lot for your help.

knudfl 11-28-2010 01:41 PM

# 17. Well, either you have no tk8.4.18/ .
Or you are in the wrong location.
Suggest : Use the 'ls' command to tell, what you have.
And the 'pwd' command to tell, where you are.
The two period ( .. ) means you go one level up.

Other comments ..
Start with the ns228-gcc40.patch, outside ns-allinone-2.28/ :
'patch -p0 < ns228-gcc40.patch'
( Hit <Enter> twice until it exits.)

And move the patch tk-8.4-lastevent.patch into tk8.4.18/

The file list in ns-allinone-2.28/ should be :
back-nam-1.11
back-otcl-1.9
back-tcl8.4.5
back-tclcl-1.16
back-tk8.4.5
cweb
gt-itm
include
install
INSTALL.WIN32
nam-1.11 -> nam-1.14/
nam-1.14 -> ../ns-allinone-2.34/nam-1.14/
ns-2.28
otcl-1.13 -> ../ns-allinone-2.34/otcl-1.13/
otcl-1.9 -> otcl-1.13/
README
sgb
tcl8.4.18 -> ../ns-allinone-2.34/tcl8.4.18/
tcl8.4.5 -> tcl8.4.18/
tclcl-1.16 -> tclcl-1.19/
tclcl-1.19 -> ../ns-allinone-2.34/tclcl-1.19/
tk8.4.18 -> ../ns-allinone-2.34/tk8.4.18/
tk8.4.5 -> tk8.4.18/
xgraph-12.1
zlib-1.1.4
..

I will show the result of './validate' in post #14 later.
..

P.S. : There is no reason to quote an entire post.
Makes the thread difficult to read.
Please delete the most.
..

NewStar 11-28-2010 09:32 PM

Can't create file ns-allinone-2.28/nam-1.11/agent.h.orig
 
Hi,

i applied the above instructions and here is the output:

-----------------------------------------------------------------------
[root@localhost ns-allinone-2.28]# ls
back-nam-1.11 bin INSTALL.WIN32 ns-2.28 readme tclcl-1.19
back-otcl-1.9 cweb lib ns-2.28_sip sgb tk8.4.18
back-tcl8.4.5 gt-itm man otcl-1.13 tcl8.4.18 tk8.4.5
back-tclcl-1.16 include nam-1.11 otcl-1.9 tcl8.4.5 xgraph-12.1
back-tk8.4.5 install nam-1.14 patch.sip tclcl-1.16 zlib-1.1.4
[root@localhost ns-allinone-2.28]# cd ..
[root@localhost Desktop]# patch -p0 < ns228-gcc40.patch
patching file ns-allinone-2.28/nam-1.11/agent.h
Hunk #1 FAILED at 70.
patch: **** Can't create file ns-allinone-2.28/nam-1.11/agent.h.orig : No such file or directory
[root@localhost Desktop]#
--------------------------------------------------------------------------

I did not add any of ns2.34 files. do i need to replace any files from v2.34 to folder ns2.28? one more thing, I have added SIP patch. just to let you know.

i am very thankful to you.

NewStar 11-28-2010 10:00 PM

compat-gcc-34-c++
 
One more thing might be related .. yum install compat-gcc-34-c++ could not be installed.

i get this when i tried to install it:
-----------------------------------------------------------
[root@localhost ~]# yum install compat-gcc-34-c++
Loaded plugins: refresh-packagekit
http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package compat-gcc-34-c++.i386 0:3.4.6-9 set to be updated
--> Processing Dependency: compat-gcc-34 = 3.4.6-9 for package: compat-gcc-34-c++
--> Running transaction check
---> Package compat-gcc-34.i386 0:3.4.6-9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
compat-gcc-34-c++ i386 3.4.6-9 fedora 11 M
Installing for dependencies:
compat-gcc-34 i386 3.4.6-9 fedora 4.0 M

Transaction Summary
================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 15 M
Is this ok [y/N]: y
Downloading Packages:
http://download.fedoraproject.org/pu....6-9.i386.rpm: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://download.fedoraproject.org/pu....6-9.i386.rpm: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
--------------------------------------------------------------------------------
Total 49 kB/s | 15 MB 05:12

Error Downloading Packages:
compat-gcc-34-3.4.6-9.i386: failure: Packages/compat-gcc-34-3.4.6-9.i386.rpm from fedora: [Errno 256] No more mirrors to try.
compat-gcc-34-c++-3.4.6-9.i386: failure: Packages/compat-gcc-34-c++-3.4.6-9.i386.rpm from fedora: [Errno 256] No more mirrors to try.

[root@localhost ~]#

knudfl 11-29-2010 03:24 AM

2 Attachment(s)
@NewStar, posts # 19, # 20.
Quote:

[root@localhost ns-allinone-2.28]# ls
1) Assume /home/<user-name>/ns-allinone-2.28/
or /home/<user-name>/ns2/ns-allinone-2.28/
No commands should be done as root !
Will make it difficult to use ns228.
Please delete everything and start from scratch.


2) You will need ns-allinone-2.28/ and ns-allinone-2.34/
present in the same location ! Please read post #10 again.

3) Fedora 10 is old. ( Was moved to "The old archive".)
Not present at http://download.fedoraproject.org/pub/fedora
any more. Use some new repo files for yum to work :
fedora.repo fedora-updates.repo ( Location : /etc/yum.repos.d/ ).
..

altamimi 02-02-2011 02:25 AM

Hi, Knudfl
Thank you for your continuing helpful comments.. I have installed ns-allinone-2.28 beside ns-34 on fedora 10.. ns-2.28 is working well, but the nam doesn't work.
$ nam
bash: nam: command not found
-----Also

$ ns simple.tcl
210
0.0037499999999999999
running nam...
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 8)
invoked from within
"finish"

could you plz tell me what's the problem here..
Many thanks

knudfl 02-02-2011 02:34 AM

Post # 22, @ altamimi : Welcome to LQ.

Any 'nam' can be used ( It is a separate application )
cd ns-allinone-2.34/nam-1.14/
su
make install
Which will copy one file = 'nam' to /usr/local/bin/
Then you will have nam in your path.

..

astroboy123 05-25-2011 10:54 AM

NAM error
 
Hi Knudfl,

I have installed ns-allinone-2.28 on fedora 11... i also have the problem with NAM like post #22.
I tried to fix this error with your advice in post #23 but it had the error like this:

[nhk@localhost nam-1.14]$ make install
/usr/bin/install -c -m 755 nam /usr/local/bin
/usr/bin/install: cannot stat `nam': No such file or directory
make: *** [install] Error 1

Please help me to fix this error.
Thank you so much!

knudfl 05-26-2011 02:08 AM

@astroboy123, post # 24 : Any 'nam' can be used.
If you want a nam "from ns-allinone-2.28" :
Edit the ns-allinone-2.28/nam-1.11/Makefile, lines 44-45 to
CC = gcc34
CPP = g++34
... And : cd ns-allinone-2.28/nam-1.11/ && make clean && make

Or use "another binary nam" for /usr/local/bin/ :
32bits https://docs.google.com/uc?id=0B7S25...Piyxo&hl=en_US
64bits https://docs.google.com/uc?id=0B7S25...jzIcL&hl=en_US

..

astroboy123 05-27-2011 06:17 AM

Thank you for your help,Knudfl!!!

But now i have another error:

/home/nhk/ns-allinone-2.28/tclcl-1.16/tclcl-config.h:37:1: warning: this is the location of the previous definition
make: *** No rule to make target `VERSION', needed by `gen/version.c'. Stop.
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems.

I thinh i have to create the file "version.c" in /tclcl-1.16/gen but i don't know the code for this file....

Can you help me once more time?

Thank you.

knudfl 05-27-2011 11:22 PM

Post # 25 :
Quote:

No rule to make target `VERSION', needed by `gen/version.c'
The text in "gen/version.c" asks for a file by name VERSION.
( ns-allinone-2.28/ns-2.28/VERSION , ns-allinone-2.28/nam-1.11/VERSION ).

Two file examples "VERSION" are attached to post # 23 here ..
http://www.linuxquestions.org/questi...612/page2.html

..

astroboy123 05-29-2011 02:56 AM

Everything is ok right now, thank you Knudfl!!!:)

kshitiz 06-18-2011 06:37 PM

what is this tk-8.4-lastevent.patch means

GOt the error

/usr/local/work/ns2/ns-allinone-2.28/tk8.4.5/unix/../generic/tkConsole.c:90: warning: (near initialization for ‘consoleChannelType’)
make: *** [tkConsole.o] Error 1
tk8.4.5 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com


I am using Centos 5.5

knudfl 06-19-2011 02:35 AM

@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++ ).

..


All times are GMT -5. The time now is 10:19 AM.