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 |
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? |
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. |
John VV
Thank you for the reply. Quote:
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:
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. |
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 |
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/ .. |
All times are GMT -5. The time now is 08:21 PM. |