LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2015, 01:37 PM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Rep: Reputation: Disabled
installing aqua-sim simulator


Hi

I'm trying to install aqua-sim but I got the following partial message:

tk8.4.13 installation succeeded.
============================================================
* Build OTcl-1.12
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking standard STL is available... no
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.11... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
can't find X includes
otcl-1.12 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.


can any one help, please?
Thank you in advance.
 
Old 05-25-2015, 09:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,439

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Quote:
can't find X includes
Before building any ns2, you will have to install the build prerequisites :

$ sudo apt-get install g++ automake libtool libxmu-dev

The build :
$ mkdir Aquasim
$ cd Aquasim/
$ tar xvf Aqua-Sim-1.0.tgz
$ patch -p0 < ns230_gcc44.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install


-
 
Old 05-25-2015, 11:51 AM   #3
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
I could not execute the command patch -p0 < ns230_gcc44.patch
It claims that the file ns230_gcc44.patch does not exist.

I skipped it and when I run the command ./install, the following problem dispaly:

linkstate/ls.cc: In member function LsLinkStateList* LsTopoMap::insertLinkState(int, const LsLinkState&):
linkstate/ls.cc:134:48: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsTopoMap::insertLinkState failed\n"); // debug
^
linkstate/ls.cc: In member function LsMessage* LsMessageCenter::newMessage(int, ls_message_type_t):
linkstate/ls.cc:326:37: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
"LsMessageCenter::newMessage.\n");
^
linkstate/ls.cc: In member function int LsRetransmissionManager::messageOut(int, const LsMessage&):
linkstate/ls.cc:408:29: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Can't insert.");
^
linkstate/ls.cc: In member function int LsRetransmissionManager::ackIn(int, const LsMessage&):
linkstate/ls.cc:447:50: warning: suggest parentheses around && within || [-Wparentheses]
(peerPtr->tpmSeq_ == LS_INVALID_MESSAGE_ID) &&
^
linkstate/ls.cc: In member function int LsRetransmissionManager::resendMessages(int):
linkstate/ls.cc:488:63: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Wait a minute, nothing to send for this neighbor");
^
linkstate/ls.cc: In member function void LsRouting::linkStateChanged():
linkstate/ls.cc:531:66: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsRouting::linkStateChanged: linkStateListPtr null\n");
^
linkstate/ls.cc:537:60: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsRouting::linkStateChanged: oldLsPtr null!!\n");
^
linkstate/ls.cc:560:61: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("New and old link State list are not aligned.\n");
^
linkstate/ls.cc: In member function bool LsRouting::sendLinkStates(bool):
linkstate/ls.cc:696:76: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Can't get new link state list, in LsRouting::sendLinkStates\n");
^
linkstate/ls.cc: In member function void LsRouting::regenAndSend(int, int, const LsLinkStateList&):
linkstate/ls.cc:799:57: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("lsl is empty, in LsRouting::regenAndSend.\n");
^
linkstate/ls.cc:803:34: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
"LsRouting::sendLinkStates\n");
^
linkstate/ls.cc: In member function LsPaths* LsRouting::_computeRoutes():
linkstate/ls.cc:877:46: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("computeRoutes: nhlp == NULL \n");
^
linkstate/ls.cc:914:44: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error (" popShortestPath() failed\n");
^
In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of void LsMap<Key, T>::eraseAll() [with Key = int; T = LsIdSeq]:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:58: error: erase was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
^
linkstate/ls.h:137:58: note: declarations in dependent base std::map<int, LsIdSeq, std::less<int>, std::allocator<std:air<const int, LsIdSeq> > > are not found by unqualified lookup
linkstate/ls.h:137:58: note: use this->erase instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 05-27-2015, 09:17 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,439

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Quote:
I could not execute the command patch -p0 < ns230_gcc44.patch
You will of course have to download the "ns230_gcc44.patch".
... And then copy ns230_gcc44.patch to "Aquasim/".

I.e. the patch must be present in the directory where you do the "apply patch command".
Or : You can point to the folder with the patch, e.g. :
$ patch -p0 < /home/name/Downloads/ns230_gcc44.patch


-
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aqua-Sim (ns-2 based underwater network simulator) Questions sdb Linux - Wireless Networking 1 01-29-2016 03:05 AM
NS2 and Aqua-sim Faiza Al-Salti Linux - Networking 3 06-12-2014 01:46 AM
Simulation in aqua-sim Faiza Al-Salti Linux - Newbie 9 05-29-2014 09:41 AM
[SOLVED] install aqua-sim on ubuntu dina Linux - Newbie 4 11-01-2012 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 AM.

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