LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-25-2010, 07:37 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

Rep: Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525

@ 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/
..
 
Old 11-28-2010, 01:06 PM   #17
NewStar
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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.
 
Old 11-28-2010, 01:41 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

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

Last edited by knudfl; 11-28-2010 at 01:55 PM.
 
Old 11-28-2010, 09:32 PM   #19
NewStar
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
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.
 
Old 11-28-2010, 10:00 PM   #20
NewStar
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
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 ~]#
 
Old 11-29-2010, 03:24 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

Rep: Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525
@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/ ).
..
Attached Files
File Type: txt fedora.repo.txt (143 Bytes, 5 views)
File Type: txt fedora-updates.repo.txt (150 Bytes, 4 views)

Last edited by knudfl; 11-29-2010 at 03:35 AM.
 
Old 02-02-2011, 02:25 AM   #22
altamimi
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
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
 
Old 02-02-2011, 02:34 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

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

..
 
Old 05-25-2011, 10:54 AM   #24
astroboy123
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
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!
 
Old 05-26-2011, 02:08 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

Rep: Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525
@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

..

Last edited by knudfl; 05-26-2011 at 02:17 AM.
 
Old 05-27-2011, 06:17 AM   #26
astroboy123
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 05-27-2011, 11:22 PM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

Rep: Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525
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

..

Last edited by knudfl; 05-27-2011 at 11:35 PM.
 
Old 05-29-2011, 02:56 AM   #28
astroboy123
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
Everything is ok right now, thank you Knudfl!!!
 
Old 06-18-2011, 06:37 PM   #29
kshitiz
LQ Newbie
 
Registered: Jul 2005
Location: Kathmandu,Nepal
Distribution: ubuntu,Centos
Posts: 6

Rep: Reputation: 0
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
 
Old 06-19-2011, 02:35 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,618

Rep: Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525Reputation: 2525
@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++ ).

..
 
  


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 04:53 AM.

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