LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2013, 12:46 AM   #16
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled

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

Last edited by Aska123; 04-25-2013 at 01:02 AM.
 
Old 04-25-2013, 01:16 AM   #17
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
on fedora 10 :
$ tar xvf nrlsensorsim-2.26.tgz ; $ mv nrlsensorsim/ ns-allinone-2.26
$ tar xvf ns-allinone-2.26.tar.gz ; $ cd ns-allinone-2.26/
$ sh patch_script.sh ;
-
error : PATH permission are not good.

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.
 
Old 04-25-2013, 01:24 AM   #18
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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]#

Last edited by Aska123; 04-25-2013 at 01:31 AM.
 
Old 04-25-2013, 03:45 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

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

-

Last edited by knudfl; 04-25-2013 at 04:48 AM.
 
Old 04-25-2013, 04:18 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

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

-
 
Old 04-25-2013, 04:40 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

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

-
 
Old 04-26-2013, 01:02 AM   #22
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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]$

Last edited by Aska123; 04-26-2013 at 01:30 AM.
 
Old 04-26-2013, 01:22 AM   #23
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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

Last edited by Aska123; 04-26-2013 at 01:52 AM.
 
Old 04-26-2013, 01:54 AM   #24
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-26-2013, 02:09 AM   #25
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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!
 
Old 04-26-2013, 05:04 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
#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.
 
Old 04-26-2013, 05:16 AM   #27
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#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'.
.
yes I have installed gcc32-3.2.3-1.sl5.i386.rpm and
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.
 
Old 04-26-2013, 05:37 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
# 27 .

? What is the reply from the command $ which gcc32 <Enter>
? And $ which g++32 <Enter>
 
Old 04-27-2013, 08:16 AM   #29
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
$export CC=gcc32 CXX=g++32
you need to reboot the system
 
Old 04-27-2013, 08:32 AM   #30
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
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
Attached Files
File Type: txt sensoragent.h.txt (2.3 KB, 14 views)
 
  


Reply

Tags
nrlsensorsim, ns2


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
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
[SOLVED] how to install NS2 in Fedora 9 ? sange Linux - Software 2 01-23-2012 04:00 AM
how to install NS2.34 in fedora 14 naren123.k Linux - Software 9 03-12-2011 03:20 AM
How to install NS2 on fedora 11????? liban779 Linux - Software 5 03-04-2011 06:46 AM
how to install ns2 in fedora-5? salady86 Linux - Newbie 3 03-14-2008 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 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
Open Source Consulting | Domain Registration