Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I am working on a project based on underwater environment. I have Ubuntu 11.4 installed. Also I have installed NS2-2.34. I want to install aquasim for simulation purposes. Can anyone please guide me about the installation procedures and give me some links of the tutorials.
Aquasim is for ns-2.30 :
You can have more than one version of ns-allinone-2.xx installed.
Except that Ubuntu 11.xx (12.xx?) is worst choice for special software.
g++41-compat-4.1.2_i386.deb, gcc41-compat-4.1.2_i386.deb may work :
export CC=gcc41 CXX=g++41 && ./install
I followed your instructions in this thread and also the links to the previous threads you provided.
Got the following results.
Please help.
Platform: Ubuntu 11.04
NS2.34 already installed.
As you said, it supports more than one version of NS. So, now installing NS-allinone-2.30 and Aqua-sim for NS-2.30.
Quote:
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
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’
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments
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’
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments
gcc -g -o cweave cweave.o common.o
ln: creating symbolic link `cweave': File exists
ln: creating symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc41 -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
make: gcc41: Command not found
make: *** [gb_io.o] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* 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.
gcc41 -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* 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/urvashi/ns-allinone-2.30/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/urvashi/ns-allinone-2.30/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/urvashi/ns-allinone-2.30/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/urvashi/ns-allinone-2.30/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 Scripticscom
to see if they have a fix for your platform.
Thanks for the reply but the commands that you mentioned are not running. They give an error "Command not found". Can you please elaborate or suggest a differnt way.
Hi Satyaveer
I have tried this link before but coul'nt decipher the following:
"essential libs for the installation of ns-allinone-2.30. Usually, it requires gcc/g++
complier, automake, X11 lib. To make Aqua3D works, some other packages, such as
freeglut, GTK+ 2.0 and wxGTK-2.8.11, are also required ."
How can i install the above said?
also when i try without above sets, it gives some gcc not found error.
Please help
gtk+2 : always installed by default.
wxGTK-2.8.11 and freeglut :
sudo apt-get install libwxgtk2.8-dev freeglut3-dev
And please read this other thread about Ubuntu 11.04 (11.10) http://www.linuxquestions.org/questi...1-04-a-921068/
"No old Ubuntu compilers .. will work in Ubuntu 11.04 and 11.10"
( And none of the defult g++ 4.4 , 4.5 , 4.6 will work with ns-2.30 ).
Thanks for your reply.
commands that you told, worked.
when I gave the command ./install
it gave this result
1.
Quote:
/home/urvashi/ns-allinone-2.30/otcl-1.12/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/urvashi/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.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#7, @emmashi : Please read posts #2 and #6 :
You will have to download and install the compilers.
( Ubuntu 11.04 : It's not gcc-4.2, but gcc41 ( and g++41 ).
sudo dpkg -i gcc41-compat-4.1.3_i386.deb g++41-compat-4.1.2_i386.deb
.. Then reboot, and the new compilers can be used.
And :
cd ns-allinone-2.30/ && export CC=gcc41 CXX=g++41 && ./install
this command is not working.
I have downloaded it from the link you provided.
Also, i tried the installation from synaptic manager. but it didn't work.
It gives the following error.
Quote:
dpkg: error processing gcc41-compat-4.1.2_i386.deb (--install):
cannot access archive: No such file or directory
dpkg: error processing g++41-compat-4.1.2_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
gcc41-compat-4.1.2_i386.deb
g++41-compat-4.1.2_i386.deb
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#9.
The first command is 'pwd', if you don't know your location.
Most terminals will open in /home/<name>/.
Some in /home/<name>/Documents/.
Depending on your settings in /home/<name>/.config/user-dirs.dirs
Then change to the directory with files to be installed.
Like : cd Downloads/ ; sudo dpkg -i <package> <package>
but some important notices were given at the end to change some path variables, I did that.
next it asked to run command
cd ns-2.30
and then ./validate
but command ./validate did not work.
what should I do next? Need help again.
Quote:
validate overall report: some tests failed:
./test-all-simple ./test-all-tcp ./test-all-testReno ./test-all-newreno ./test-all-sack ./test-all-tcpOptions ./test-all-tcpReset ./test-all-simple-full ./test-all-full ./test-all-testReno-full ./test-all-testReno-bayfull ./test-all-sack-full ./test-all-tcp-init-win ./test-all-tcpVariants ./test-all-LimTransmit ./test-all-aimd ./test-all-greis ./test-all-rfc793edu ./test-all-rfc2581 ./test-all-rbp ./test-all-sctp ./test-all-tcpHighspeed ./test-all-frto ./test-all-friendly ./test-all-srm ./test-all-realaudio ./test-all-ecn ./test-all-ecn-ack ./test-all-ecn-full ./test-all-quickstart ./test-all-diffusion3 ./test-all-smac ./test-all-smac-multihop ./test-all-manual-routing ./test-all-hier-routing ./test-all-algo-routing ./test-all-lan ./test-all-mcast ./test-all-vc ./test-all-session ./test-all-mixmode ./test-all-red ./test-all-adaptive-red ./test-all-red-pd ./test-all-rio ./test-all-vq ./test-all-rem ./test-all-gk ./test-all-pi ./test-all-cbq ./test-all-schedule ./test-all-rr ./test-all-monitor ./test-all-jobs ./test-all-intserv ./test-all-diffserv ./test-all-webcache ./test-all-mcache ./test-all-webtraf ./test-all-simultaneous ./test-all-mip ./test-all-links ./test-all-plm ./test-all-linkstate ./test-all-mpls ./test-all-oddBehaviors ./test-all-wireless-shadowing ./test-all-wireless-lan-aodv ./test-all-wireless-tdma ./test-all-wireless-gridkeeper ./test-all-wireless-diffusion ./test-all-wireless-lan-newnode ./test-all-satellite ./test-all-WLtutorial ./test-all-source-routing ./test-all-misc ./test-all-tagged-trace ./test-all-message ./test-all-rng ./test-all-xcp ./test-all-wpan ./test-all-energy ./test-all-snoop ./test-all-packmime ./test-all-delaybox
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.