LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2011, 05:42 AM   #31
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0

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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-22-2011, 06:25 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 31 @ keepwalking :

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



..

Last edited by knudfl; 03-22-2011 at 05:39 PM.
 
Old 03-24-2011, 07:34 PM   #33
shidayat
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
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?
 
Old 03-25-2011, 04:38 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#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.

..
 
Old 03-25-2011, 10:43 PM   #35
shidayat
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
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?

Last edited by shidayat; 03-25-2011 at 11:14 PM.
 
Old 03-26-2011, 04:02 AM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

..

Last edited by knudfl; 03-26-2011 at 04:05 AM.
 
Old 03-28-2011, 03:13 AM   #37
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
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
 
Old 03-28-2011, 03:31 AM   #38
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
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
 
Old 03-28-2011, 07:05 AM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#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>
 
Old 03-28-2011, 01:16 PM   #40
abutre
LQ Newbie
 
Registered: Mar 2011
Location: Brazil
Posts: 4

Rep: Reputation: 7
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!
 
Old 03-28-2011, 03:00 PM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@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
 
1 members found this post helpful.
Old 03-29-2011, 07:37 PM   #42
shidayat
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
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?

Last edited by shidayat; 03-30-2011 at 08:10 PM.
 
Old 03-30-2011, 09:31 AM   #43
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
problem with installing ns2.27!!!

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:ump()’:
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!
Attached Files
File Type: txt Installation Guide.txt (3.2 KB, 36 views)
 
Old 03-30-2011, 01:34 PM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

..
 
Old 03-31-2011, 05:22 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

..

Last edited by knudfl; 03-31-2011 at 05:24 PM.
 
  


Reply

Tags
leach, ns2, ns227, ns227+ubuntu



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
Jolicloud installation seems to have wiped out existing Ubuntu installation gargleblaster Linux - Software 1 12-11-2009 07:57 AM
Trying to make an ubuntu installation disk, using ubuntu. belladivediva Ubuntu 5 03-02-2009 11:47 PM
Stalled installation of Ubuntu 7 on top of Ubuntu 6 Bill41 Linux - Newbie 5 06-21-2008 04:49 PM
LXer: Printing with Ubuntu: Insights for a quick and easy Ubuntu printer installation LXer Syndicated Linux News 0 06-03-2006 09:54 AM
ubuntu installation and ubuntu live cd morphixrocks Ubuntu 2 01-21-2006 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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