LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-22-2015, 09:52 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

Re #15.

When you have done 'sudo ./install', you will have to delete the aquasim folder.
`sudo' is for administrative tasks, like 'make install', 'cp ns* /usr/local/bin/.
I.e. please no ns2 commands with sudo.

You are supposed to build all ns2 in /home/<user-name>/<ns2-folder>/.
I.e i.e. no sudo commands are required.

First thing to do :
$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev

Next : Install the compilers for ns-allinone-2.30 :
compat-gcc34_3.4.6-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-g++34_3.4.6-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. Download the two packages, and install them.

Aqua-Sim : cd <aquasim>/
$ tar xvf Aqua-Sim-1.0.tgz
$ export CC=gcc34 CXX=g++34 && ./install
... etc. etc.


-

Last edited by knudfl; 10-22-2015 at 03:25 PM.
 
Old 10-22-2015, 09:55 AM   #17
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Also I have this problem :

when I use "$ sudo apt-get install libxmu-dev build-essential autoconf automake"


Breaks: gvfs (< 1.8) but 1.6.4-0ubuntu1 is to be installed
libpango1.0-0 : Breaks: plymouth (< 0.8.2-2ubuntu19) but 0.8.2-2ubuntu5 is to be installed
E: Broken packages
 
Old 10-22-2015, 10:02 AM   #18
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
Re #17.

You forgot $ sudo apt-get update

This will do for the package install :
$ sudo apt-get install g++ autoconf libtool libxmu-dev
I.e. "build-essential" installs g++, autoconf, + some packages that you will never need.
https://packages.debian.org/squeeze/build-essential
>>> "If you do not plan to build Debian packages, you don't need this package."


-
 
Old 10-22-2015, 10:30 AM   #19
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Breaks: gvfs (< 1.8) but 1.6.4-0ubuntu1 is to be installed
libpango1.0-0 : Breaks: plymouth (< 0.8.2-2ubuntu19) but 0.8.2-2ubuntu5 is to be installed
E: Broken packages

when i use

sudo apt-get install libxmu-dev build-essential autoconf automake

could you please help me step by step
 
Old 10-22-2015, 11:07 AM   #20
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #10.

When you have done 'sudo ./install', you will have to delete the aquasim folder.
`sudo' is for administrative tasks, like 'make install', 'cp ns* /usr/local/bin/.
I.e. please no ns2 commands with sudo.

You are supposed to build all ns2 in /home/<user-name>/<ns2-folder>/.
I.e i.e. no sudo commands are required.

First thing to do :
$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev

Next : Install the compilers for ns-allinone-2.30 :
compat-gcc34_3.4.6-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-g++34_3.4.6-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. Download the two packages, and install them.

Aqua-Sim : cd <aquasim>/
$ tar xvf Aqua-Sim-1.0.tgz
$ export CC=gcc34 CXX=g++34 && ./install
... etc. etc.


-



I did that another problem is arise :

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-22-2015, 03:23 PM   #21
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
Re #20.

? Are you sure that you are using the 32bits Ubuntu 10.10 ?
( ubuntu-10.10-desktop-i386.iso )
$ uname -m


And are you sure the gcc34 / g++34 packages are installed ?
$ which gcc34
$ which g++34

Note : I tested all the above + an Aqua-Sim build yesterday : No issues.


-
 
Old 10-22-2015, 03:41 PM   #22
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #20.

? Are you sure that you are using the 32bits Ubuntu 10.10 ?
( ubuntu-10.10-desktop-i386.iso )
$ uname -m


And are you sure the gcc34 / g++34 packages are installed ?
$ which gcc34
$ which g++34

Note : I tested all the above + an Aqua-Sim build yesterday : No issues.


-


yes I am sure ... but i think that the version is release ... if not ... could you please give the steps (step by step).

thank you very much
 
Old 10-22-2015, 05:34 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
Re #22 : Please do not quote entire posts. A "one word reference" will do.

Repeat : You will have to show the replies from these three commands :
$ uname -m
$ which gcc34
$ which g++34


Quote:
could you please give the steps (step by step).
Steps for what ? The compat-gcc packages ? The build of aquasim ?


-
 
Old 10-24-2015, 10:22 AM   #24
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Dear there,

Still having the same problem ... when I run uwan-mac-random protocol ..... it shows that

$ ns uwan-mac-random.tcl
the start time is 0.001
num_nodes is set 8
INITIALIZE THE LIST xListHead
+++++++AFTER ANNOUNCE++++++++++++++
starting Simulation...
SORTING LISTS ...DONE!
Segmentation fault (core dumped)


What does Segmentation fault (core dumped) means?

Thanks
 
Old 10-24-2015, 11:54 AM   #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
Re #24.

You will still have to show the replies from these three commands :
$ uname -m
$ which gcc34
$ which g++34
 
Old 10-24-2015, 12:04 PM   #26
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Hello knudfl,

Yes, here we are /

mralfouzan@mralfouzan-VGN-Z12MN-B:~$ uname -m
i686


mralfouzan@mralfouzan-VGN-Z12MN-B:~$ which gcc34
/usr/bin/gcc34


mralfouzan@mralfouzan-VGN-Z12MN-B:~$ which g++34
/usr/bin/g++34

Thanks
 
Old 10-24-2015, 02:39 PM   #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
Re #24.

? Are you quite sure your build command was $ export CC=gcc34 CXX=g++34 && ./install


Segmentation fault : That's strange. I had no issues at all.
See post #12, three days ago.
And the critical simulation has always been `tmac-example.tcl', not `uwan-mac-random.tcl'.

What could possibly make a difference ?
The computer I used for the aquasim / Ubuntu 10.10 tests is a Dell Dimension 520.
Processor : Intel dual core 4300 , 1.8GHz.
The OS, Ubuntu 10.10 - i686 was installed `Aug 2012'.
The libc6 version is "2.12.1-0ubuntu10.4".
( The "info" command for the libc6 status is $ dpkg -s libc6 )
... But I cannot see any updates for the critical packages so you must have the same versions.

Other options : You can try with CentOS 6.7 ...
http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso
>>> CentOS-6.7-i386-LiveCD.iso

-
 
Old 10-24-2015, 04:42 PM   #28
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
Re #24.

A suggestion :
Why not use the package `aquasim-ns_2.30-ubuntu10_i386.deb' ?
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... provides /usr/local/bin/ns-aqua

Please download the 4MB package, and install it into Ubuntu 10.10.

Then you can do $ ns-aqua uwan-mac-random.tcl



-

Last edited by knudfl; 10-24-2015 at 04:51 PM.
 
Old 10-25-2015, 10:00 AM   #29
Mralfouzan
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
thanks knudfl,

i did that but i couldn't update ... i hv some problems with update :

$ sudo apt-get update


W: Failed to fetch http://security.ubuntu.com/ubuntu/di...rce/Sources.gz 404 Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/di...86/Packages.gz 404 Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/di...86/Packages.gz 404 Not Found [IP: 91.189.91.24 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
 
Old 10-25-2015, 12:57 PM   #30
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
Re #29.

Ubuntu 10.10 was moved to the "old archive" years ago, you'll need new links.

$ sudo gedit /etc/apt/sources.list
... then replace all text with these new eight lines :
Code:
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse universe
Then you can run $ sudo apt-get update
... but there is really no reason to update the ns2 build prerequisites.
If $ sudo apt-get install g++ autoconf libtool libxmu-dev
... was installed OK, you already have the latest available version of these, and their dependencies, libc6 etc.


? Did you try out the package `aquasim-ns_2.30-ubuntu10_i386.deb' ?


-

Last edited by knudfl; 10-25-2015 at 12:58 PM.
 
  


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
NS2 and Aquasim Preeti1910 Linux - Software 48 10-15-2016 01:09 PM
wireless ns/aquasim varshitha Linux - Wireless Networking 163 02-14-2015 06:04 PM
aquasim question MonaJalili Linux - Wireless Networking 6 05-12-2013 06:59 AM
Details for setting up PC for using Aquasim exploreuwsn Linux - Newbie 15 02-14-2013 12:10 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 02:54 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