ns2.34 installation help in Ubuntu 10.10
Hi :),
I need your help regarding installation of NS2.34 in Ubuntu 10.10 on my Dell machine LATITUDE E5400. I have Ubunut10.10 32 bit version. I have already read some threads, but they could not help me, some were for Fedora, some were for Red Hat. I have already tried to install on my machine by downloading ns and then by Code:
./install Quote:
Imran |
Welcome to LQ. .. .. :) ..
sudo apt-get install g++-4.3 nam 'cd ns-allinone-2.34/ && export CC=gcc-4.3 CXX=g++-4.3 && ./install' EDIT : gcc-4.2 , g++-4.2 , see post # 3. .. |
Just found out today that ns-allinone-2.34 is particular tricky to build
on the 32bits Ubuntu 10.10 : Nothing else than gcc/g++-4.2 worked. Suggest : sudo gedit /etc/apt/sources.list : And then add these lines Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main |
Now, I am confused and could not know exactly which commands should I run and in which order,
What i have done, I have already added the suggested lines in sources.list. Then I have run these commands and encoutered some output as failed listed below Code:
sudo apt-get update && sudo apt-get install g++-4.2 Quote:
Code:
sudo apt-get install nam Code:
khan@khan:~/network_simulator/ns2/ns-allinone-2.34$ export CC=gcc-4.2 CXX=g++-4.2 && ./install Quote:
|
# 4 : May be you are missing some of the basic prerequisites :
sudo apt-get install g++ autoconf automake libtool \ libx11-dev libxmu-dev libxmu-headers libxt-dev |
Dear,
I have run the command you mentioned above, it executed successfully, but after that , i run the command Code:
khan@khan:~/network_simulator/ns2/ns-allinone-2.34$ export CC=gcc-4.2 CXX=g++-4.2 && ./install Quote:
|
Quote:
sudo apt-get install libc6-dev linux-libc-dev gcc-4.2 g++ (And I did compile a new ns-allinone-2.34 again on Ubuntu 10.10 32bits: No errors.) .. |
Quote:
Quote:
Code:
khan@khan:~/network_simulator/ns2/ns-allinone-2.34$ export CC=gcc-4.2 CXX=g++-4.2 && ./install Quote:
as you have run this on your system, i am grateful to you for your cooepration. but here i am still getting some errors in installation, hope this post helps you to guide me again :), |
# 8
Quote:
Post # 3 is about installing 'g++-4.2' only ! → sudo apt-get install g++-4.2 ( Without g++-4.2 you can't do 'export CC=gcc-4.2 CXX=g++-4.2' ). |
Quote:
and then I run the command to install NS2.34 as usual , and it finished also successfuly, at then I got message to put something into PATH etc , Quote:
Code:
export CC=gcc-4.2 CXX=g++-4.2 |
The path settings in the /.bashrc file are like this one,
Quote:
when i run my terminal, it shows an error, Quote:
|
Quote:
Quote:
Making 'ns' and 'nam' available in the PATH : 'cd ns-allinone-2.34/ns-2.34/ && sudo make install && cd ../nam-1.14/ && sudo make install' : This will copy ns and nam to /usr/local/bin/ : A system PATH. ns and nam will depend on libraries in /usr/lib/ only. ( Usually.) '/usr/lib/' is a system LD_LIBRARY_PATH : No further paths to be added. .. |
I thank you so so much more .. You help me so so much regarding installation. Its been 3 weeks that I was trying to install but could not do that.
Anyhow for the paths, what i have did, I have deleted all the paths in Code:
/.bashrc I did, Quote:
Quote:
Quote:
Quote:
|
I have tried to install ns 2 on ubunutu 11.04
============================================================ * Testing for Darwin (OS X) environment ============================================================ ============================================================ * Testing for Cygwin environment ============================================================ Cygwin not detected, proceeding with regular install. ============================================================ * Testing for FreeBSD environment ============================================================ FreeBSD not detected ============================================================ * Build XGraph-12.1 ============================================================ loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) 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... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for X... (cached) no checking for float.h... (cached) yes checking for limits.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for unistd.h... (cached) yes checking for strcasecmp... (cached) yes creating ./config.status creating Makefile creating autoconf.h autoconf.h is unchanged gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c Can not create xgraph; But xgraph is an optional package, continuing... ============================================================ * Build CWeb ============================================================ Making cweb gcc -g -c -o ctangle.o ctangle.c gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c gcc -g -o ctangle ctangle.o common.o gcc -g -c -o cweave.o cweave.c gcc -g -o cweave cweave.o common.o ============================================================ * Build Stanford GraphBase ============================================================ Making sgb gcc-4.2 -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io 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 gcc-4.2. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf() Checking for vsnprintf() in stdio.h... No. WARNING: vsnprintf() not found, falling back to vsprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities. Checking for return value of vsprintf()... Yes. Checking for errno.h... No. Checking for mmap support... Yes. gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o example.o example.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o adler32.o adler32.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o compress.o compress.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o crc32.o crc32.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o gzio.o gzio.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o uncompr.o uncompr.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o deflate.o deflate.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o trees.o trees.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o zutil.o zutil.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inflate.o inflate.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o infback.o infback.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inftrees.o inftrees.c gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -c -o inffast.o inffast.c ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o gcc-4.2 -O3 -DNO_vsnprintf -DNO_ERRNO_H -DUSE_MMAP -o example example.o -L. libz.a Zlib make failed, but it's optional Continue ... ============================================================ * Build tcl8.4.18 ============================================================ 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... gcc-4.2 checking whether the C compiler works... make: *** [example] Error 1 configure: WARNING: unrecognized options: --enable-gcc configure: error: in `/home/mwk/ns-allinone-2.34/tcl8.4.18/unix': configure: error: C compiler cannot create executables See `config.log' for more details tcl8.4.18 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. i need to install tcl can any one help me out |
Post # 14, @ maneshmotts. First : Use code tags. See how it looks in #13.
http://www.linuxquestions.org/questi....php?do=bbcode Please use 'Edit' > 'Go Advanced' : The # button can be used to edit post #14. Ubuntu 11.04 , 64bits / amd64 : Not usable for ns-allinone-2.xx. Ubuntu 11.04 32bits OS can be used with a native "11.04 gcc-3.4.6" compiler. gcc34-compat-3.4.6_i386.deb : https://docs.google.com/uc?id=0B7S25...nload&hl=en_US g++34-compat-3.4.6_i386.deb : https://docs.google.com/uc?id=0B7S25...nload&hl=en_US Prerequisites for ns-allinone-2.xx : sudo apt-get install g++ autoconf automake libtool \ libx11-dev libxmu-dev libxmu-headers libxt-dev cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install .. |
All times are GMT -5. The time now is 02:30 AM. |