LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-20-2012, 07:15 AM   #16
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

#15
Quote:
Does anyone know the gcc version for ubuntu 10.04.4
You can have as many compilers ( gcc / g++ ) as you want,
installed at the same time.

I'd vote for g++-4.1 not gcc-4.3 / g++-4.3 ( For ns-2.30 ) :
sudo apt-get install g++-4.1 ( gcc-4.1 will be installed too for dependency.)

( Will make a check with Ubuntu 10.04 / ns-2.30 tonight, and let you know.)

.

Last edited by knudfl; 03-20-2012 at 07:25 AM.
 
Old 03-20-2012, 07:23 AM   #17
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
Duplicate deleted

Last edited by knudfl; 03-20-2012 at 07:26 AM.
 
Old 03-20-2012, 07:27 AM   #18
Preeti1910
LQ Newbie
 
Registered: Mar 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Error Statements

Quote:
gcc-4.4 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/preeti/ns-allinone-2.30/include -I/home/preeti/ns-allinone-2.30/include -I/home/preeti/ns-allinone-2.30/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/preeti/ns-allinone-2.30/otcl-1.12/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/preeti/ns-allinone-2.30/otcl-1.12/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.12 make failed! Exiting ...
Please help
 
Old 03-20-2012, 08:43 AM   #19
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
# 18 : Ubuntu 10.04 ..
Why use gcc-4.4 / g++-4.4, when the advice is g++-4.1 / gcc-4.1 ? ?

1) sudo apt-get install g++-4.1 ( Read post # 16.)

2) Use the 'make clean' command in ns-allinone-2.30/otcl :
cd ns-allinone-2.30/otcl-* && make clean && rm Makefile && exit

3) The install :
cd ns-allinone-2.30/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

.

Last edited by knudfl; 03-20-2012 at 08:44 AM.
 
Old 03-20-2012, 11:12 AM   #20
Preeti1910
LQ Newbie
 
Registered: Mar 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Knudfl

I saw gcc4.4 in some update so thought of trying it out.
Anyways i tried those commands you gave in 15 and 19. But it says

Quote:
preeti@preeti-laptop:~/ns-allinone-2.30/otcl-1.12$ make clean && rm Makefile && exit
make: *** No rule to make target `clean'. Stop.

Last edited by Preeti1910; 03-20-2012 at 11:31 AM.
 
Old 03-20-2012, 11:45 AM   #21
Preeti1910
LQ Newbie
 
Registered: Mar 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi knudfl

Finally the installation is done... Thanks for your help.
Now I need to edit the bashrc file.
Can you tell me the lines i need to append.

Thanks
 
Old 03-20-2012, 12:18 PM   #22
Preeti1910
LQ Newbie
 
Registered: Mar 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
preeti@preeti-laptop:~$ ns
% exit
preeti@preeti-laptop:~$ nam
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 {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
I am unable to understand the problem. None of the tcl script is working.
Same statements come when I execute the script.

Please help.
 
Old 03-20-2012, 02:59 PM   #23
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
# 21.

Quote:
Now I need to edit the bashrc file.
Can you tell me the lines i need to append.
Not required on Linux.
cd ns-allinone-2.30/2.30/ && sudo make install
( 'make install' will copy 'ns' to /usr/local/bin/ ).


# 22 : Nam : Will sometimes fail. Any 'nam' can be used.
32bits https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
64bits https://docs.google.com/open?id=0B7S...NiYjY0ODE1YmQw
Unpack nam-1.14-<arch>.tar.gz, and : sudo cp nam /usr/local/bin/

.

Last edited by knudfl; 03-20-2012 at 03:07 PM.
 
Old 03-20-2012, 03:27 PM   #24
swordx85
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
Hi,

Is there any documentation about aquasim?

Why wiki pages are down? Are there any other pages about aquasim?
 
Old 03-20-2012, 04:44 PM   #25
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
#24 : Google .. documentation aquasim for ns2 ..

http://www.mendeley.com/research/aqu...nsor-networks/

http://isi.edu/~johnh/PAPERS/Heidemann11a.pdf

http://sci.tamucc.edu/~cams/projects/358.pdf

http://scholarlyexchange.org/ojs/ind...load/8324/5908

.
 
Old 04-05-2012, 07:38 AM   #26
Fang89
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by Preeti1910 View Post
Hi knudfl

Finally the installation is done... Thanks for your help.
Now I need to edit the bashrc file.
Can you tell me the lines i need to append.

Thanks
Hi,
I am also working on underwater environment recently.
I have installed Ubuntu 8.04, NS2.27 and NS2.34 before.
Now, I am planing to install aquasim.
And I'll try it with Ubuntu 10.04 and ns2.30.
However, after tar -xzvf aquasim.tar.gz, I got ns-allinone-2.27 instead of ns-allinone-2.30.
Could you please tell me the link for downloading aquasim, thanks a million!
 
Old 04-06-2012, 05:06 AM   #27
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
Post #26, @ Fang89 : Welcome to LQ.

Please read post #2, and follow the link >>> post #8 ( and #12 ) here :
http://www.linuxquestions.org/questi...asim-855532/#8
>>>
1) tar xvf ns-allinone-2.30.tar.gz
2) cd ns-allinone-2.30/ && tar xvf Aqua-sim_ns230.no-test.tar.bz2
..... etc. etc.

.

Last edited by knudfl; 04-06-2012 at 05:07 AM.
 
1 members found this post helpful.
Old 04-06-2012, 07:57 AM   #28
Fang89
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post #26, @ Fang89 : Welcome to LQ.

Please read post #2, and follow the link >>> post #8 ( and #12 ) here :
http://www.linuxquestions.org/questi...asim-855532/#8
>>>
1) tar xvf ns-allinone-2.30.tar.gz
2) cd ns-allinone-2.30/ && tar xvf Aqua-sim_ns230.no-test.tar.bz2
..... etc. etc.

.
Thanks a million for reply!
The link for downloading was invalid for me because my old browser did not support Google document.

Now, I have successfully downloaded Aqua-sim_ns230.no-test.tar.bz2.
I am trying to install.
 
Old 04-16-2012, 06:25 AM   #29
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
Email from Fang89 :
Quote:
Thank you so much! Aquasim worked.
Now, I still have a problem with installing Aqua3D.

After downloading Aqua3D standalone package (Aqua3D-1.0.0-src) from
http://obinet.engr.uconn.edu/wiki/in...3D&redirect=no

I could not decipher the following:
"5.Extract the Aqua-Sim package with tar -xzf and cd into the folder
6.Enter ./install and the install script will build the entire package (including Aqua3D) "

The installed AquaSim package is for 2D simulation without Aqua3D package.
Could you please tell me how can i add this Aqua3D standalone package into worked Aquasim ..
Reply : I don't know the application Aqua3D,
but I guess you will find something in the documentation:
http://obinet.engr.uconn.edu/wiki/in...Aqua-3D_manual
http://obinet.engr.uconn.edu/wiki/in...-3D_dev_manual

This is what I know :
cd aqua3d-1.0.0-src/ && make : You get a standalone binary 'aqua3d'.
The command ./aqua3d will open the aqua3d GUI application, and say : Load a .tr file.

.
 
Old 11-01-2012, 06:22 PM   #30
dina
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Email from Fang89 :


http://obinet.engr.uconn.edu/wiki/in...Aqua-3D_manual
http://obinet.engr.uconn.edu/wiki/in...-3D_dev_manual

This is what I know :
cd aqua3d-1.0.0-src/ && make : You get a standalone binary 'aqua3d'.
The command ./aqua3d will open the aqua3d GUI application, and say : Load a .tr file.

.
i followed these steps and put the aqua3d-1.0.0-src in the ns-2.30 folder and reinstall Aqua-sim (ns-allinone-2.30) but i found the following error:

otcl-1.12 has been installed successfully.
============================================================
* Build Tclcl-1.18
============================================================
./configure: line 987: config.log: Permission denied
tclcl-1.18 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.

when i ignored this error and complete the installation of aqua3d-1.0.0-src/ && make
and then type ./aqua3d to test the package i found:

dina@ubuntu:~/Aqua-sim/ns-2.30/aqua3d-1.0.0-src$ ./aqua3d

Aqua3D running...
Writing to log file: /home/dina/Aqua-sim/ns-2.30/aqua3d-1.0.0-src/log/aqua3d.log
Xlib: extension "GLX" missing on display ":0.0".
freeglut (Я� �"� ): OpenGL GLX extension not supported by display ':0.0'

where is the error?????
 
  


Reply

Tags
aqua3d, aquasim, g++41-compat, 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
Aquasim & Aqua3d - ns2 swordx85 Linux - Wireless Networking 9 10-16-2016 09:54 AM
wireless ns/aquasim varshitha Linux - Wireless Networking 163 02-14-2015 06:04 PM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
aquasim varshitha Linux - Wireless Networking 0 01-29-2011 09:42 AM

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

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