LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Re: Help regarding installation of NS-2.27 on Ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-newbie-8/re-help-regarding-installation-of-ns-2-27-on-ubuntu-9-10-a-782356/)

keepwalking 03-22-2011 05:42 AM

Hello every one.
I'm trying to install ns2.27 but I'm finding this error :

keepwalking@ubuntu:~$ wget http://www.tekno.chalmers.se/~yushen...7-gcc410.patch
--2011-03-22 13:39:20-- http://www.tekno.chalmers.se/~yushen...7-gcc410.patch
Resolving squid.uzulu.ac.za... 10.61.3.9
Connecting to squid.uzulu.ac.za|10.61.3.9|:3128... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2011-03-22 13:39:22 ERROR 503: Service Unavailable.

Can anyone help me to solve this problem.

knudfl 03-22-2011 06:25 AM

# 31 @ keepwalking :

You'd forgot to read the answer to you in post # 30 ? ?



..

shidayat 03-24-2011 07:34 PM

hi LQ,
I want to install ns2.27 under ubuntu 9.10 on Virtual Box.
I've followed the instruction on post #3, but get error when installing packages:

Code:

shidayat@shidayat-vbox:~$ sudo dpkg -i \
> cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \
> gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \
> libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb
dpkg: error processing cpp-3.3_3.3.6-15ubuntu4_i386.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing g++-3.3_3.3.6-15ubuntu4_i386.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing gcc-3.3_3.3.6-15ubuntu4_i386.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing gcc-3.3-base_3.3.6-15ubuntu4_i386.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 cpp-3.3_3.3.6-15ubuntu4_i386.deb
 g++-3.3_3.3.6-15ubuntu4_i386.deb
 gcc-3.3_3.3.6-15ubuntu4_i386.deb
 gcc-3.3-base_3.3.6-15ubuntu4_i386.deb
 libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb

can someone tell me what wrong?

knudfl 03-25-2011 04:38 AM

#33 @shidayat, welcome to LQ.

Please open a terminal window and do : sudo gedit /etc/apt/sources.list
and add the 'hardy' lines : see the edited post # 3 :
http://www.linuxquestions.org/questi...10-a-782356/#3
Next : install g++-3.3 : sudo apt-get install g++-3.3



When you can't use 'apt-get' ( If you have no internet connection ) :

Using "dpkg -i" : The first command is always 'pwd', to decide your location.
Then you can do : cd Downloads/ ( or wherever the files are. ( Desktop ? )).
And then your "next command" will work.

..

shidayat 03-25-2011 10:43 PM

hi knudfl,

i've added the hardy lines on sources.list but when i sudo apt-get install g++-3.3 it still wont work
so i downloaded those packages and dpkg -i ...

Code:

shidayat@shidayat-vbox:~/ns2$ ls
cpp-3.3_3.3.6-15ubuntu4_i386.deb            ns-allinone-2.27
dk4.patch                                    ns-allinone-2.27-sip-v1_11.tar.gz
g++-3.3_3.3.6-15ubuntu4_i386.deb            ns-allinone-2.27.tar.gz
gcc-3.3_3.3.6-15ubuntu4_i386.deb            ns-allinone-2.34
gcc-3.3-base_3.3.6-15ubuntu4_i386.deb        ns-allinone-2.34.tar.gz
libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb  otcl-113-configure.in.patch
newdiffserv-17-06-2003.tar.gz                tk-8.4-lastevent.patch
shidayat@shidayat-vbox:~/ns2$ sudo dpkg -i \
> cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \
> gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \
> libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb
Selecting previously deselected package cpp-3.3.
(Reading database ... 119606 files and directories currently installed.)
Unpacking cpp-3.3 (from cpp-3.3_3.3.6-15ubuntu4_i386.deb) ...
Selecting previously deselected package g++-3.3.
Unpacking g++-3.3 (from g++-3.3_3.3.6-15ubuntu4_i386.deb) ...
Selecting previously deselected package gcc-3.3.
Unpacking gcc-3.3 (from gcc-3.3_3.3.6-15ubuntu4_i386.deb) ...
Selecting previously deselected package gcc-3.3-base.
Unpacking gcc-3.3-base (from gcc-3.3-base_3.3.6-15ubuntu4_i386.deb) ...
Selecting previously deselected package libstdc++5-3.3-dev.
Unpacking libstdc++5-3.3-dev (from libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb) ...
Setting up gcc-3.3-base (1:3.3.6-15ubuntu4) ...
dpkg: dependency problems prevent configuration of libstdc++5-3.3-dev:
 libstdc++5-3.3-dev depends on libstdc++5 (>= 1:3.3.6-15ubuntu4); however:
  Package libstdc++5 is not installed.
dpkg: error processing libstdc++5-3.3-dev (--install):
 dependency problems - leaving unconfigured
Setting up cpp-3.3 (1:3.3.6-15ubuntu4) ...
dpkg: dependency problems prevent configuration of g++-3.3:
 g++-3.3 depends on libstdc++5-3.3-dev (= 1:3.3.6-15ubuntu4); however:
  Package libstdc++5-3.3-dev is not configured yet.
dpkg: error processing g++-3.3 (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Setting up gcc-3.3 (1:3.3.6-15ubuntu4) ...
Errors were encountered while processing:
 libstdc++5-3.3-dev
 g++-3.3

it means g++-3.3 wasn't installed right?
could u tell me where went wrong?
======================================================
i download libstdc++5_3.3.6-15ubuntu4_i386.deb and add it on dpkg -i ...
Code:

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

is it fine?

knudfl 03-26-2011 04:02 AM

# 35

The install command is : sudo apt-get install g++-3.3

Meaning : The command will install all the packages ! All !
No need to install any downloaded packages, when apt can do the job.



Quote:

Package libstdc++5 is not installed
If you can't use apt-get or Synaptic : Install libstdc++5 otherwise.

..

keepwalking 03-28-2011 03:13 AM

dear all

I have been trying to download g++33 using the following command: sudo apt-get install g++-33
[sudo] password for keepwalking:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package g++-33
but get the above errors can any one help me to solve this problems

fahimeh_ak 03-28-2011 03:31 AM

help me install ns2.27 on ubunto 10.04
 
Hi everybody
i want to install ns2.27 on ubuntu (i want to use SIP), i read your post, but when you say:

the required g++-3.3 : sudo apt-get install g++-3.3
For that, hardy must be added to /etc/apt/sources.list
Code:

deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe

The g++-3.3 packages can also be found here
http://packages.ubuntu.com/hardy/g++-3.3
to do : sudo dpkg -i \
cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \
gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \
libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb

i become confused. I'm new to linux and i can't edit source.list. in addition, i download g++.3.3 but i don't know where i must copy downloaded file to linux can install it?!
please help me. it's very urgent for me!
Thanks

knudfl 03-28-2011 07:05 AM

#38 @ fahimeh_ak.

sudo gedit /etc/apt/sources.list
... Then you can add the four lines.

Quote:

I download g++.3.3
Can be done if you have no internet connection : Five packages are required.
1) cd Download/ ( or wherever you have the packages ( Desktop ? ))
2) sudo dpkg -i <all-packages>

abutre 03-28-2011 01:16 PM

ns-2.29 + ns-2.29-nist-mob-022707.tgz
 
Hi knudfl,

I'm following this post a long time.

I've installed ns-2.29 successfully in ubuntu 10.04. My problem is when i try install mobility package from nist. I copy the ns-2.29 to ns-allinone-2.29 and try to compile.

I got this error, Any idea?

`.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' referenced in section `.rodata' of bluetooth/scat-form.o: defined in discarded section `.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' of bluetooth/scat-form.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

Thank You!

knudfl 03-28-2011 03:00 PM

@abutre post #40 : Welcome to LQ.

Read the LQ Rules http://www.linuxquestions.org/linux/rules.html
Double posting is not allowed.
And avoid off topic questions : This thread is not about ns-2.29.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

shidayat 03-29-2011 07:37 PM

hi knudfl,

finally, g++-3.3 installed. as you told me, after changing the sources.list, I must sudo apt-get update.

at your patching step, i found copying tk-8.4-lastevent.patch to tk8.4.14 is it should be tk8.4.18 ? because there is no tk8.4.14 at my ns directory
i assume this should be tk8.4.18, and i patching there then ./install
my error is the same as post #4
Code:

otcl-1.8 make failed! Exiting ...
is there something i miss?

i searching on other thread n found that before build ns2 sudo apt-get remove tcl* must be done is it right?

fahimeh_ak 03-30-2011 09:31 AM

problem with installing ns2.27!!!
 
1 Attachment(s)
Hi
first of all, sorry for my bad english
I am trying to install ns2.27 on my ubuntu 10.04
I used your post #3 and i done all of it's step according to attached file.
but when I run ./install i got this error:

In file included from /usr/include/math.h:40,
from setdest.cc:43:
/usr/include/bits/inf.h:27:1: warning: this is the location of the previous definition
In file included from ../../../config.h:54,
from setdest.h:5,
from setdest.cc:57:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
In file included from setdest.cc:57:
setdest.h:26: error: extra qualification ‘vector::’ on member ‘operator=’
setdest.h:31: error: extra qualification ‘vector::’ on member ‘operator+=’
setdest.h:36: error: extra qualification ‘vector::’ on member ‘operator==’
setdest.h:39: error: extra qualification ‘vector::’ on member ‘operator!=’
setdest.cc: In member function ‘void Node::Dump()’:
setdest.cc:876: error: cast from ‘Neighbor*’ to ‘int’ loses precision
make[1]: *** [setdest.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc
In file included from proxytrace.cc:3:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
make[1]: *** [proxytrace.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
g++ -c -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
tr-stat.cc: In function ‘double lf_analyze(Entry&)’:
tr-stat.cc:154: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
In file included from ../../../config.h:54,
from logparse.h:7,
from tr-stat.cc:24:
../../../autoconf.h:85: error: ‘CPP_NAMESPACE’ is not a namespace-name
../../../autoconf.h:85: error: expected namespace-name before ‘;’ token
tr-stat.cc: In function ‘double lf_analyze(lf_entry&)’:
tr-stat.cc:141: error: cast from ‘void*’ to ‘int’ loses precision
tr-stat.cc:152: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
g++ -c -I. -I/home/fahimeh/ns/ns-allinone-2.27/tclcl-1.15 -I/home/fahimeh/ns/ns-allinone-2.27/otcl-1.8 -I/home/fahimeh/ns/ns-allinone-2.27/include -I/home/fahimeh/ns/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc
tr-stat.cc: In function ‘double lf_analyze(lf_entry&)’:
tr-stat.cc:174: error: cast from ‘void*’ to ‘int’ loses precision
tr-stat.cc:187: error: cast from ‘void*’ to ‘int’ loses precision
make[1]: *** [tr-stat.o] Error 1
make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
make: *** [all-recursive] Error 2
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


actually i don't know what I must do know! please help me!

knudfl 03-30-2011 01:34 PM

# 42 @shidayat : We'll look at that later, when you have edited post # 42,
i.e. shortened "long words", that spoil formatting.
Please delete this "word" : =========================================================


@fahimeh_ak , post # 43 :
Quote:

make[1]: Leaving directory `/home/fahimeh/ns/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb
All "indep-utils/" come with a Makefile. Edit the Makefile "CC = gcc" to e.g. gcc-3.3.

Not very important : The binary 'ns' has been created at this stage.
"indep-utils/" are just the last "extra files".
They usually fail that way in a 64bits Ubuntu 10.xx.

..

knudfl 03-31-2011 05:22 AM

# 42 , @ shidayat
cd tk8.4x/ ( That be tk8.4, any version. 8.4.14 is just a typo somewhere.)
patch -p0 < <path-to-where-you-have-the-patch> tk-8.4-lastevent.patch
I.e. copying the patch to tk8.4.18/ is not really required.


cd ns-allinone-2.27/ && export CC=gcc-3.3 CXX=g++-3.3 && ./install

... This will insure that all applications use g++-3.3
Be aware that the "export ..." command is temporary, will reset to g++(4.4)
when you exit the terminal.

P.S. : If you still have issues with otcl : Edit the otcl Makefile line 7 to :
CC = gcc-3.3
I.e. not all Makefiles are recreated, when you run ./install.

..


All times are GMT -5. The time now is 10:16 AM.