![]() |
I have searched Fedora 12 based CentOS 6 - 32 (i686).on net. but no download link is available. can you provide me a link. Also how to ugrade from fedora 10 to 12
|
Quote:
Aborting. but when I run [rohinisharma@localhost ~]$ cd ns-2.26 [rohinisharma@localhost ns-2.26]$ cd nrlsensorsim2 [rohinisharma@localhost nrlsensorsim2]$ patch -p1 -t < ns226nrl226.patch patching file sensornets-NRL/sensoragent.h Reversed (or previously applied) patch detected! Assuming -R. Hunk #1 succeeded at 43 (offset 1 line). [rohinisharma@localhost nrlsensorsim2]$ ./patch_script.sh CHECKING PATH AND PERMISSIONS ON ../ns-allinone-2.1b9a/ OR ../ns-allinone-2.26/ PATH AND PERMISSIONS ARE GOOD Checking for recently modified files... WARNING!!! I THINK I FOUND MODIFIED FILES IN THE ../ns-allinone-2.26 TREE! PATCHES MAY NOT WORK CORRECTLY ON ALREADY MODIFIED FILES! Do you want to try anyway? (yes/no) yes Okay, trying anyway... NS2 tree is unmodified. Good. |
when I follow the steps
Save ns-allinone-2.26.tar.gz and nrlsensorsim-2.26.tgz.gz in any directory (folder) of your file system. 6) Open a new terminal and go to that directory. 7) Give the following command to untar ns-allinone-2.26.tar.gz tar -xzvf ns-allinone-2.26.tar.gz and following command to untar nrlsensorsim-2.26.tgz.gz tar -xzvf nrlsensorsim-2.26.tgz.gz 8) After executing the above command you will find the extracted folders named ns-allinone-2.26 and nrlsensorsim in the same directory. Put the downloaded ns226nrl226.patch file in the extracted folder named nrlsensorsim. 9) Using a terminal enter in this extracted folder (nrlsensorsim) and give the following command patch -p1 -t < ns226nrl226.patch then give the following command ./patch_script.sh if is asks for any permission, type yes and press enter. 10) Put the downloaded ns226.patch file in the extracted folder named ns-allinone-2.26. 11) Using a terminal enter in this folder (ns-allinone-2.26) and give the following command patch -p1 -t < ns226.patch 12) After successfully completing the above procedure install ns2.26 by giving the following command (in same extracted folder) export CC=gcc32 CXX=g++32 && sh install ./install error otcl-1.0a8 configuration failed! Exiting . when I try [rohinisharma@localhost ns-allinone-2.26]$ yum install libx11-dev Loaded plugins: refresh-packagekit You need to be root to perform this command. [rohinisharma@localhost ns-allinone-2.26]$ sudo su [root@localhost ns-allinone-2.26]# yum install libx!!-dev yum install libxcddev Loaded plugins: refresh-packagekit Setting up Install Process No package libxcddev available. Nothing to do [root@localhost ns-allinone-2.26]# yum install libx11-dev Loaded plugins: refresh-packagekit Setting up Install Process No package libx11-dev available. Nothing to do [root@localhost ns-allinone-2.26]# yum install libxmu-dev Loaded plugins: refresh-packagekit Setting up Install Process No package libxmu-dev available. Nothing to do [root@localhost ns-allinone-2.26]# yum install libxt-dev Loaded plugins: refresh-packagekit Setting up Install Process No package libxt-dev available. Nothing to do [root@localhost ns-allinone-2.26]# yum install libx11-heaaders-dev Loaded plugins: refresh-packagekit Setting up Install Process No package libx11-heaaders-dev available. Nothing to do [root@localhost ns-allinone-2.26]# yum install X11 Loaded plugins: refresh-packagekit Setting up Install Process No package X11 available. Nothing to do [root@localhost ns-allinone-2.26]# |
# 18 . Which Fedora ? ?
http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html export CC=gcc32 CXX=g++32 : You will have to install gcc / g++ version 3.2.3. I will upload the gcc32 packages for Fedora / CentOS ... later. About "yum install libxmu-dev" : A wrong package name cannot be installed. Please use $ yum search <name>, or part of name : To decide a package name. → This will pull all the required libX** packages : # yum install libXmu-devel → I.e. libX11-devel, libXt-devel, etc. etc. will be installed automatically as dependencies for libXmu-devel. All prerequisites for ns2 : # yum install \ gcc-c++ compat-gcc-34-c++ automake autoconf make libtool libXmu-devel patch Quite a long story you have there in post # 18 ... Why always try the most difficult way for your installs ? The short and safe way : Post # 15. - |
# 19 .
gcc32-3.2.3-1.sl5.i386.rpm https://docs.google.com/file/d/0B7S2...it?usp=sharing g++32-3.2.3-1.sl5.i386.rpm https://docs.google.com/file/d/0B7S2...it?usp=sharing cd Downloads/ # yum install gcc32-3.2.3-1.sl5.i386.rpm # yum install g++32-3.2.3-1.sl5.i386.rpm ... Then reboot, and the new compilers can be used. - |
# 16 .
1) CentOS 6.4 http://www.centos.org/ > i386 > http://isoredirect.centos.org/centos/6/isos/i386/ .. and then choose a mirror .. 2) The identical 'Scientific Linux SL-6.4' https://www.scientificlinux.org/ ... That's easier : There is a live cd, 695 MB .. > i386 > http://ftp1.scientificlinux.org/linu...fic/livecd/64/ > i386 > http://ftp1.scientificlinux.org/linu...ivecd/64/i386/ > SL-64-i386-2013-04-17-LiveCD.iso , 17-Apr-2013 > http://ftp1.scientificlinux.org/linu...-17-LiveCD.iso - |
Dear Kundfi
Thanks for replying. when I followed poat #15 on fedora 10(i686). I got following error * Build OTcl-1.0a8 ============================================================ No .configure file found in current directory Continuing with default options... checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc32 checking for C compiler default output... configure: error: C compiler cannot create executables otcl-1.0a8 configuration failed! Exiting ... Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes. [rohinisharma@localhost ns-allinone-2.26]$ |
when I use
yum install \ gcc-c++ compat-gcc-34-c++ automake autoconf make libtool libXmu-devel patch # yum install gcc32-3.2.3-1.sl5.i386.rpm # yum install g++32-3.2.3-1.sl5.i386.rpm otcl-1.0a8 has been installed successfully. But i got error $ns-allinone-2.26 $./install make: *** [Tcl.o] Error 1 tclcl-1.0b13 make failed! Exiting ... I made changes in directory ns-allinone-2.xx/tclcl-1.0b13 and search for the following file tclcl.h In the list of header files you wil see the following line: #include "tclcl-mappings.h" Cut this line and paste it before the following line: class InstVar; tcl Error gone. Then I got error as ./mobile/god.h:101: error: extra qualification ‘vector::’ on member ‘operator!=’ make: *** [src_rtg/sragent.o] Error 1 Ns make failed! Again Go in ns-allinone-2.xx/ns-2.xx/mobile and open god.h file depending on the line numbers given in error i.e. 88, 93, 98, 101, etc try to search "vector::" and delete it. Error ./mobile/god.h:101: error: extra qualification ‘vector::’ on member ‘operator!=’ removed |
when I use again ./install
queue/cbq.cc:850: error: ‘cbq_’ was not declared in this scope queue/cbq.cc:856: error: ‘cbq_’ was not declared in this scope queue/cbq.cc: In member function ‘void CBQClass::update(Packet*, double)’: queue/cbq.cc:873: error: ‘cbq_’ was not declared in this scope queue/cbq.cc: In member function ‘int CBQClass::desc_with_demand()’: queue/cbq.cc:928: error: ‘cbq_’ was not declared in this scope queue/cbq.cc: In member function ‘void CBQClass::newallot(double)’: queue/cbq.cc:975: error: ‘cbq_’ was not declared in this scope queue/cbq.cc: In member function ‘virtual int CBQClass::command(int, const char* const*)’: queue/cbq.cc:1002: error: ‘cbq_’ was not declared in this scope make: *** [queue/cbq.o] Error 1 Ns make failed! how to remove these erors. All these try are on fedora 10 |
To remove above error I
Add class CBQueue; before class CBQClass : public Connector { queue error removed But new errors webcache/webtraf.cc: In member function ‘virtual int WebTrafPool::command(int, const char* const*)’: webcache/webtraf.cc:415: error: ISO C++ forbids initialization in array new make: *** [webcache/webtraf.o] Error 1 Ns make failed! |
#22 #23 #24 #25 .
Did you install the two packages, gcc32-3.2.3-1.sl5.i386.rpm and g++32-3.2.3-1.sl5.i386.rpm ? And reboot ? Please type 'which gcc32' to have the install confirmed. And : 'which g++32'. *** Do not expect ns-2.26 to compile with g++34. |
Quote:
g++32-3.2.3-1.sl5.i386.rpm . And reboot also. After installing and reboot I just type ./install in ns-allinone-2.26 directory. |
# 27 .
? What is the reply from the command $ which gcc32 <Enter> ? And $ which g++32 <Enter> |
$export CC=gcc32 CXX=g++32
you need to reboot the system |
1 Attachment(s)
Hello kundfi. In ns2.26 installation on fedora 10 . Now i have problem.
n file included from sensornets-NRL/sensoragent.cc:50: ./sensornets-NRL/sensoragent.h: At global scope: ./sensornets-NRL/sensoragent.h:56: error: ‘SensorApp’ has not been declared ./sensornets-NRL/sensoragent.h:60: error: ISO C++ forbids declaration of ‘SensorApp’ with no type ./sensornets-NRL/sensoragent.h:60: error: expected ‘;’ before ‘*’ token In file included from sensornets-NRL/sensoragent.cc:51: ./sensornets-NRL/sensorapp.h:63: error: expected `)' before ‘*’ token ./sensornets-NRL/sensorapp.h:67: error: ISO C++ forbids declaration of ‘SensorApp’ with no type ./sensornets-NRL/sensorapp.h:67: error: expected ‘;’ before ‘*’ token ./sensornets-NRL/sensorapp.h:82: error: expected `)' before ‘*’ token ./sensornets-NRL/sensorapp.h:86: error: ISO C++ forbids declaration of ‘SensorApp’ with no type ./sensornets-NRL/sensorapp.h:86: error: expected ‘;’ before ‘*’ token sensornets-NRL/sensoragent.cc: In constructor ‘SensorAgent::SensorAgent()’: sensornets-NRL/sensoragent.cc:62: error: class ‘SensorAgent’ does not have any field named ‘sensor_app’ sensornets-NRL/sensoragent.cc: In member function ‘virtual void SensorAgent::recv(Packet*, Handler*)’: sensornets-NRL/sensoragent.cc:84: error: ‘sensor_app’ was not declared in this scope sensornets-NRL/sensoragent.cc: At global scope: sensornets-NRL/sensoragent.cc:93: error: prototype for ‘void SensorAgent::attach_sensor_app(SensorApp*)’ does not match any in class ‘SensorAgent’ ./sensornets-NRL/sensoragent.h:56: error: candidate is: void SensorAgent::attach_sensor_app(int*) make: *** [sensornets-NRL/sensoragent.o] Error 1 Ns make failed sensoragent.h file is attached |
All times are GMT -5. The time now is 03:41 AM. |