LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2013, 11:45 PM   #1
geethuthulasidas
LQ Newbie
 
Registered: Oct 2013
Posts: 6
Blog Entries: 1

Rep: Reputation: Disabled
error in running default programs in Aquasim


hi all
i installed Aquasim 1.0.
i tried to run programs already in the folder named uw_tcl.
but error comes as below.The thing is it is already given program in folder.

invalid command name "Agent/UWSink"
while executing
"Agent/UWSink set passive 1"
(file "GOAL-string.tcl" line 67)


I tried another program in the same folder.the error is....

invalid command name "Agent/Vectorbasedforward"
while executing
"Agent/Vectorbasedforward set hop_by_hop_ 0"
(file "vbf_example_5.tcl" line 64)

can anyone help me in this???
 
Old 10-22-2013, 02:03 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
invalid command name "Agent/UWSink"
Quote:
invalid command name "Agent/Vectorbasedforward"
Happens with an executable 'ns' with no "aqua" functions.

So either you have a failed build. Or you are using the wrong "ns".

Build example, post #69 here
http://www.linuxquestions.org/questi...532/page5.html
Installing the "aquasim" 'ns' : $ cd ns-2.30/ && sudo make install
... And : ! You are not supposed to add any text to .bashrc !

All aquasim, LQ http://www.linuxquestions.org/questions/tags/aquasim/

Which Ubuntu is it ? 1) $ uname -m <Enter> ; 2) cat /etc/issue


P.S. : There is a binary package aquasim-ns-2.30-ubuntu10_i386.deb
for a 32bits Ubuntu OS, post # 45 here
http://www.linuxquestions.org/questi...532/page3.html


-

Last edited by knudfl; 10-22-2013 at 02:09 AM.
 
Old 10-23-2013, 07:57 AM   #3
geethuthulasidas
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
hi knudfl,
i can run the default programs in ns-2.30/tcl/ex...
but nt able to run the default programs in underwatersensor..
i tried by reinstalling Aquasim.but it is still the same
 
Old 10-23-2013, 08:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .

! Repeat ! Which Ubuntu is it about ?
Please show the replies from these two commands in a new post :
1) $ uname -m <Enter> ; 2) cat /etc/issue <Enter>


Quote:
I tried by reinstalling Aquasim.
The install command is :
$ export CC=gcc41 CXX=g++41 && ./install
... ? Did you use a command like this ?

-
 
Old 10-23-2013, 08:14 AM   #5
geethuthulasidas
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
first command give i686
second one give
bash: cat/etc/issue: No such file or directory

---------- Post added 10-23-13 at 08:14 AM ----------

it is ubuntu 12.04
 
Old 10-23-2013, 09:52 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5.

Ubuntu 12.04 - i686. First thing to do :
Download and install the package "aquasim-ns-2.30-ubuntu10_i386.deb".
See post # 2.
Then you can run all the simulations in 'underwatersensor/' with :
$ ns-aqua <file>.tcl


Building Aqua-Sim : $ export CC=gcc41 CXX=g++41 && ./install
* You will of course have to install the gcc41/g++41 packages :
$ sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb g++41-compat-4.1.2_i386.deb
Links, post # 18 here ..
http://www.linuxquestions.org/questi...022/page2.html

-
 
Old 10-24-2013, 07:33 AM   #7
geethuthulasidas
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
i give the command $ export CC=gcc41 CXX=g++41 && ./install
it showed the below error

============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
configure: error: expected an absolute directory name for --prefix: ../
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc41 -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
make: gcc41: Command not found
make: *** [test_io] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/sgb2alt sgb2alt.o -lm -lgb
gcc -I../include -L../lib -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
gt-itm has been installed successfully.
gcc -I../include -L../lib -o ../bin/sgb2comns sgb2comns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2hierns sgb2hierns.o -lm -lgb
gcc -I../include -L../lib -o ../bin/sgb2ns sgb2ns.o -lm -lgb
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.2.3 with gcc41.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
make: Nothing to be done for `all'.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.13
============================================================
rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
errors tclsh tcltest lib.exp Tcl
cd dltest ; make clean
make[1]: Entering directory `/home/geethu/aquasim/tcl8.4.13/unix/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker
rm -f *.so
make[1]: Leaving directory `/home/geethu/aquasim/tcl8.4.13/unix/dltest'
rm -rf Makefile config.status config.cache config.log tclConfig.sh \
SCRPtcl.* prototype *.plist Tcl.framework
cd dltest ; make distclean
make[1]: Entering directory `/home/geethu/aquasim/tcl8.4.13/unix/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker
rm -f *.so
rm -f Makefile
make[1]: Leaving directory `/home/geethu/aquasim/tcl8.4.13/unix/dltest'
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
 
Old 10-24-2013, 10:57 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 7 .
Quote:
I give the command $ export CC=gcc41 CXX=g++41 && ./install
Quote:
checking whether the C compiler (gcc41 ) works... no
You will of course have to install the gcc / g++ packages.
.. And then reboot. And check the presence of the executable :
$ which gcc41
$ which g++41

-
 
Old 10-25-2013, 05:09 AM   #9
geethuthulasidas
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I installed ubuntu 10.04...n dt aquasim is workin fine....
 
  


Reply

Tags
aquasim, ns2



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
[SOLVED] Aquasim:How insert mac protocol to aquasim vaj-bor Linux - Software 35 03-15-2017 06:43 PM
Installing Aquasim in Ubuntu 10.10: Error in installation. Please help aquasimjunior Linux - Software 4 07-25-2012 03:32 AM
default programs Four Programming 1 03-03-2012 11:39 AM
Setting default programs JungleNut Linux - General 5 02-05-2006 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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