LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-29-2011, 06:30 AM   #1
Narges
Member
 
Registered: Oct 2011
Posts: 32

Rep: Reputation: Disabled
ns2.29.3 installation on fedora 15 , nam installation problem


Hello.
I have installed ns2.29.3 on fedora 15 using vmware.
I need 2.29 version since i have to work with mobile wimax packages and I have to install NIST and wimax packages as well.
The ns2 installation done successfully and validation also successfull and when I type
$./ns in terminal, I get %.
But when I type $./nam, i get the following:
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
please help me regarding this. I am very new to both Linux, ns2. Thank you.

more info: nam-1.11, tk8.4.11,otcl-1.11, my gcc version 4.6.1
 
Old 10-30-2011, 12:07 PM   #2
Narges
Member
 
Registered: Oct 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I have done what is suggested in http://www.linuxquestions.org/questi...4/#post4040310
I downloaded tk-8.4-lastevent.patch and in
cd ns-allinone-2.33/tk-8.4.18/
patch -p0 < tk-8.4-lastevent.patch :
patching file generic/tk.h
Hunk #1 succeeded at 650 (offset 15 lines).

then I run ./install again. It finished seccessfully. I get % when I type ns. But i get the same error for Nam as I mentioned above again.
I repeat the installation again. But it seems the tk-8.4-lastevent.patch file doesnt have any effect. It solved the issue for people with similar problem.
Please help me.
why its not working for me?
 
Old 10-30-2011, 07:45 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,461

Rep: Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800
I do believe that you will need to install gcc 4.3
then build it with 4.3 ( 4.6 is default ) once you patch 2.29 up to 2.34

also ns is in the fedora repos
" yum search ns " (ns-allinone)


for 2.29 ? you might need to install the legacy gcc 3.4 ( compat-gcc34) it is in the fedora repos
but if you need the older 3.2 you will need to build that your self.
 
Old 10-30-2011, 11:14 PM   #4
Narges
Member
 
Registered: Oct 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
John VV
Thank you for the reply.
Quote:
for 2.29 ? you might need to install the legacy gcc 3.4 ( compat-gcc34) it is in the fedora repos
but if you need the older 3.2 you will need to build that your self.
I had already installed it in my system before installing ns :

yum install gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel
cd ns-allinone-2.29/
export CC=gcc34 CXX=g++34

but after intallation I got the same error for nam again.

Quote:
I do believe that you will need to install gcc 4.3
then build it with 4.3 ( 4.6 is default ) once you patch 2.29 up to 2.34
my gcc is 4.6.1-9. so you are saying that doesnt support ns2.29 right?
if I type : yum install gcc-4.3
then it will be installed instead of the 4.6 one? ( is the default 4.6 removed from my system?) and doesnt it have any conflict for other applications in FC15?
what will happen if i suddenly update the whole system? $ sudo yum -y update (I believe that will update the gcc to the latest version)
Am I able to run ns2 after update again?

THank you.
 
Old 10-31-2011, 12:05 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 13,461

Rep: Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800
on fedora 15 gcc 4.1 and 4.3 will need to be built from source
and installed side by side

you build gcc4.3 using the "--program-suffix=-4.3 "or -4.1 ( for gcc4.1 )


that is life using fedora

a lot of code is WAY too new for some programs

4.6 is WAY too new for a lot of things
for example on suse11.4 ( running right now ) i have gcc 3.4,4.1,4.3,and 4.5

then after building use "alternatives" ( /etc/alternatives ) in bash to set what one is to be used .

"flash" on fedora is done using "alternatives" also

and check this forum
the FULL build instructions for gcc 4.3 and the legacy 3.4 are posted in many places .


you might want to have a read through the fedora documentation
https://docs.fedoraproject.org/en-US/index.html
https://docs.fedoraproject.org/en-US...tes/index.html
 
Old 10-31-2011, 12:09 PM   #6
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,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Nam is a separate application : Any 'nam' can be used.

Please use a binary Nam : nam-1.14.<arch>.tar.gz ..
32bits https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
64bits https://docs.google.com/uc?id=0B7S25...nload&hl=en_US

Unpack, and : # cp nam /usr/local/bin/

..

Last edited by knudfl; 11-02-2011 at 04:08 AM.
 
  


Reply


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
problem with ns2.34 installation in fedora 14 kathu Linux - Newbie 12 01-25-2013 01:34 AM
after installation ns2 i face problem during running and example on fedora 13 Ali shoaib abbasi Linux - Newbie 4 10-20-2011 05:31 PM
[SOLVED] ns2 nam not working in fedora 14 mujtiba Linux - Newbie 7 05-24-2011 08:30 AM
problem with opening nam in ns2 MLinux Linux - General 1 11-16-2010 05:01 AM
NS2 installation problem in fedora 7 rahat ullah Linux - Newbie 5 10-27-2009 03:56 AM


All times are GMT -5. The time now is 01:40 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