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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-28-2010, 01:06 PM
|
#17
|
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Rep:
|
Quote:
Originally Posted by knudfl
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.
|
|
|
|
11-28-2010, 01:41 PM
|
#18
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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.
|
|
|
|
11-28-2010, 09:32 PM
|
#19
|
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Rep:
|
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.
|
|
|
|
11-28-2010, 10:00 PM
|
#20
|
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Rep:
|
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 ~]#
|
|
|
|
11-29-2010, 03:24 AM
|
#21
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
@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/ ).
..
Last edited by knudfl; 11-29-2010 at 03:35 AM.
|
|
|
|
02-02-2011, 02:25 AM
|
#22
|
|
LQ Newbie
Registered: Jan 2011
Posts: 1
Rep:
|
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
|
|
|
|
02-02-2011, 02:34 AM
|
#23
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
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.
..
|
|
|
|
05-25-2011, 10:54 AM
|
#24
|
|
LQ Newbie
Registered: May 2011
Posts: 3
Rep: 
|
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!
|
|
|
|
05-26-2011, 02:08 AM
|
#25
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
@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.
|
|
|
|
05-27-2011, 06:17 AM
|
#26
|
|
LQ Newbie
Registered: May 2011
Posts: 3
Rep: 
|
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.
|
|
|
|
05-27-2011, 11:22 PM
|
#27
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
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.
|
|
|
|
05-29-2011, 02:56 AM
|
#28
|
|
LQ Newbie
Registered: May 2011
Posts: 3
Rep: 
|
Everything is ok right now, thank you Knudfl!!! 
|
|
|
|
06-18-2011, 06:37 PM
|
#29
|
|
LQ Newbie
Registered: Jul 2005
Location: Kathmandu,Nepal
Distribution: ubuntu,Centos
Posts: 6
Rep:
|
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
|
|
|
|
06-19-2011, 02:35 AM
|
#30
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
@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++ ).
..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|