LinuxQuestions.org
Review your favorite Linux distribution.
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 04-24-2010, 05:45 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639

#15 : Please hit the edit button and delete the most
of the text, and place the remains in code tags :
[/code] at text end and [code] at the text start.
http://www.linuxquestions.org/questi....php?do=bbcode

About the error : Looks like you are using a wrong compiler.
Did you edit the 'Makefile.in' to CC = gcc-3.3 , CPP = g++-3.3
? ? . Also : the g++-3.3_3.3.6 , gcc-3.3_3.3.6 etc. packages,
must be installed !
..

Last edited by knudfl; 04-24-2010 at 05:47 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-25-2010, 08:04 AM   #17
_man_ouer
LQ Newbie
 
Registered: Apr 2010
Posts: 19

Rep: Reputation: 0
thank you a lot

I completed the installation of ns-allinone2.27 and leach
thank you for your help

Last edited by _man_ouer; 04-25-2010 at 12:04 PM.
 
Old 07-01-2010, 03:45 AM   #18
onee_chan
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
hi all,
I am installing ns 2.27 on ubuntu 9.04 and I found some error when patching file
Code:
oriza@oriza-laptop:~/Documents/ns-allinone-2.27/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch 
patching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej
can you tell me what happened?
Thank you
 
Old 07-01-2010, 04:31 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Post # 18 , @ onee_chan : Welcome to LQ. .. ..

".. hunk FAILED" : Not really an error ( An error is when the text says 'error' )

" hunk FAILED " : Is usually because the line(s) already has been edited.
The patch is for all ' tk-8.4.x(x) '. ( E.g. 8.4.5 ..... 8.4.18 )
The later versions have some of the fixes included.
..
 
Old 10-03-2010, 06:04 PM   #20
jagadish chandra sekar
LQ Newbie
 
Registered: Sep 2010
Location: india
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by _man_ouer View Post
thank you a lot

I completed the installation of ns-allinone2.27 and leach
thank you for your help
can u tell me how did u rectify the error,since i am having the same error,i need it to use sip patch which works only in this version of ns2,i am doing a project on voip and i need to install it badly,kindly help,i am a newbie in to linux and ns2

Last edited by jagadish chandra sekar; 10-03-2010 at 06:07 PM.
 
Old 10-03-2010, 06:10 PM   #21
jagadish chandra sekar
LQ Newbie
 
Registered: Sep 2010
Location: india
Posts: 3

Rep: Reputation: 0
ns-2.27 installation

can anyone tell me how to install ns2.7 in ubuntu 8.10 and patch sip protocol,kindly help,i am in desprate situation
 
Old 10-06-2010, 04:59 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
@ jagadish chandra sekar, posts 20-21 : Welcome to LQ. .. .. ..

Generally installing 'ns-allinone-2.27' , Ubuntu :
http://www.linuxquestions.org/questi...10-a-782356/#3

About SIP : Which sip patch is it about ? One of these ?
http://www.dcc.fc.up.pt/~rprior/ns/index-en.html

Please specify,,, and provide a direct link to the patch, please.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://www.catb.org/~esr/faqs/smart-questions.html
..
 
Old 10-25-2010, 11:20 AM   #23
jagadish chandra sekar
LQ Newbie
 
Registered: Sep 2010
Location: india
Posts: 3

Rep: Reputation: 0
Can anyone please help me with the steps to install NS 2.26 on Ubuntu 9.04

i need to patch sip-udp,which works only in ns-2.26,pls help
 
Old 10-27-2010, 12:47 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 23 : ns-2.26 cannot be installed on a Debian based OS.
I.e. Ubuntu, Mint, Mepis, Debian, etc. : No.

'ns-allinone-2.26' : Please use an rpm based OS. (Fedora, CentOS).
The compiler to be used is gcc / g++ version 3.3.3.
Please read the other ns226 threads : LQ Search, Keyword = ns226
..
 
Old 11-11-2010, 08:46 AM   #25
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
./sctp/sctp.h:214: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:226: warning: ‘typedef’ was ignored in this declaration
In file included from trace/trace.cc:43:
./sctp/sctp.h:247: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:253: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:258: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:265: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:267: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:276: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:291: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:372: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:378: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:419: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:430: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:438: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:445: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:451: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:462: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:481: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:486: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:492: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:499: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:505: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:632: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
make: *** [trace/trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
i am in desperate need of solutin


thanx in advance
 
Old 11-17-2010, 03:31 PM   #26
Wonu
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Hello everyone,
I am trying to install ns-2.27 on my amd64 Ubuntu 10.04and i get the error below when i try to make ns-2.27. I am installing the allinone package, all other parts tcl, otcl, tk and tclcl have been succesfully configured and made. I have been trying for several days and i keep getting stuck here. Please i will appreciate any help as I am running behind in my Dissertation.
Thank you in advance.

wonuola@ubuntu:~/ns-allinone-2.27/ns-2.27$ make
g++-3.3 -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_8 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=no -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/wonuola/ns-allinone-2.27/tclcl-1.15 -I/home/wonuola/ns-allinone-2.27/otcl-1.8 -I/home/wonuola/ns-allinone-2.27/include -I/home/wonuola/ns-allinone-2.27/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -o tools/random.o tools/random.cc
In file included from config.h:54,
from tools/random.cc:40:
autoconf.h:85: error: namespace `no' undeclared
make: *** [tools/random.o] Error 1
 
Old 11-18-2010, 05:35 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 26 , @ Wonu. No, I do not see errors like that.
./install continues after the binary 'ns' has been created.
( Then there are errors in the probably insignificant subdirectory
ns-2.27/indep-utils/webtrace-conv/ (Has a special Makefile)
(No errors webtrace-conv/ on a 32 Bits Ubuntu 10.04, is only on the amd64 version).)

Code:
validate overall report: some tests failed:
     ./test-all-sctp ./test-all-srm ./test-all-hier-routing ./test-all-algo-routing ./test-all-mcast ./test-all-vc ./test-all-session ./test-all-mixmode ./test-all-red ./test-all-webcache ./test-all-mcache ./test-all-plm ./test-all-satellite

Suggest : cd ns-allinone-2.27/ && sh run_script.txt
.... which is a summary of the required commands
.... i.e. links to ns-allinone-2.34/ etc. etc.
.
Attached Files
File Type: txt run_script.txt (697 Bytes, 18 views)
 
Old 12-27-2010, 01:56 PM   #28
bnkdul
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 6
do you know how to install ns2.27 on Ubuntu 9.10 64-bits

Hi knudfl,

Thanks for the valuable guidance instructions for installing ns2.27. I tried to follow your steps to install ns2.27 on my Ubuntu 9.10 64-bits version. I downloaded the gcc-3.3...amd64.deb instead of the one you recommend. When installing the debian files, I get this at the terminal


sudo dpkg -i cpp-3.3_3.3.6-15ubuntu4_amd64.deb g++-3.3_3.3.6-15ubuntu4_amd64.deb gcc-3.3_3.3.6-15ubuntu4_amd64.deb gcc-3.3-base_3.3.6-15ubuntu4_amd64.deb libstdc++5-3.3-dev_3.3.6-15ubuntu4_amd64.deb
[sudo] password for cielo:
(Reading database ... 152340 files and directories currently installed.)
Preparing to replace cpp-3.3 1:3.3.6-15ubuntu4 (using cpp-3.3_3.3.6-15ubuntu4_amd64.deb) ...
Unpacking replacement cpp-3.3 ...
Preparing to replace g++-3.3 1:3.3.6-15ubuntu4 (using g++-3.3_3.3.6-15ubuntu4_amd64.deb) ...
Unpacking replacement g++-3.3 ...
Preparing to replace gcc-3.3 1:3.3.6-15ubuntu4 (using gcc-3.3_3.3.6-15ubuntu4_amd64.deb) ...
Unpacking replacement gcc-3.3 ...
Preparing to replace gcc-3.3-base 1:3.3.6-15ubuntu4 (using gcc-3.3-base_3.3.6-15ubuntu4_amd64.deb) ...
Unpacking replacement gcc-3.3-base ...
Preparing to replace libstdc++5-3.3-dev 1:3.3.6-15ubuntu4 (using libstdc++5-3.3-dev_3.3.6-15ubuntu4_amd64.deb) ...
Unpacking replacement libstdc++5-3.3-dev ...
Setting up gcc-3.3-base (1:3.3.6-15ubuntu4) ...
Setting up cpp-3.3 (1:3.3.6-15ubuntu4) ...
Processing triggers for man-db ...
Setting up gcc-3.3 (1:3.3.6-15ubuntu4) ...
Setting up libstdc++5-3.3-dev (1:3.3.6-15ubuntu4) ...
Setting up g++-3.3 (1:3.3.6-15ubuntu4) ...


I don't see any errors but the file is not installed (I think) because when I go to synaptic
they are not there. And trying to proceed with the ns2 installation results in error since I don't have the gcc3.3

Quote:
Originally Posted by knudfl View Post
Welcome to LQ. ..

General for all ns2 versions :
sudo apt-get install \
libx11-dev libxmu-dev libxmu-headers libxt-dev libtool
.....
.....
Assume ns-allinone-2.27
You will need ns-allinone-2.34 too.

Edit ns-allinone-2.27/ns-2.27/Makefile.in , line 36-37 to :
CC = gcc-3.3
CPP = g++-3.3

.. and ns-allinone-2.27/nam-1.10/Makefile.in , line 44-45 :
The same.

The g++-3.3 packages , required ..
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

Having ns-allinone-2.27/ and ns-allinone-2.34/ in the same directory
e.g. /home/"username"/ns2/ :
cd ns-allinone-2.27/
mv otcl-1.8/ back-otcl-1.8
mv tcl8.4.5/ back-tcl8.4.5
mv tclcl-1.15/ back-tclcl-1.15
mv tk8.4.5/ back-tk8.4.5

ln -s ../ns-allinone-2.34/tcl8.4.18/
ln -s ../ns-allinone-2.34/tcl8.4.18/ tcl8.4.5
ln -s ../ns-allinone-2.34/tk8.4.18/
ln -s ../ns-allinone-2.34/tk8.4.18/ tk8.4.5
ln -s ../ns-allinone-2.34/otcl-1.13/
ln -s ../ns-allinone-2.34/otcl-1.13/ otcl-1.8
ln -s ../ns-allinone-2.34/tclcl-1.19/
ln -s ../ns-allinone-2.34/tclcl-1.19/ tclcl-1.15

mkdir include ( If not present.)
cd include/
ln -s ../tcl8.4.18/generic/tclInt.h
ln -s ../tcl8.4.18/generic/tclIntDecls.h
( These two links may already be present.)

Apply the tk-8.4-lastevent.patch in tk8.4.14.
Apply the otcl-113-configure.in.patch in otcl-1.13.

Then : ./install , in the ns-allinone-2.27/ top directory.

For more info : 'LQ Search' > "Tag Name" = ns2 ,
'LQ Search' > "Tag Name" = leach .
 
Old 03-18-2011, 10:04 AM   #29
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
Hellow All

I m trying to install ns2.27 on ubuntu 9.10 but I getting errors when I using the following comnand: wget http://www.tekno.chalmers.se/~yushen...7-gcc410.patch
please help me to solve this error.
 
Old 03-18-2011, 12:22 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,108

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 29

Installing ns-2.27 on Ubuntu 9.10 : Please read post # 3.

The patch http://www.linuxquestions.org/questi...379/page3.html
'ns-2.27-gcc410.patch' is attached to post # 41.
( http://norae.tistory.com/67 )

'ns-2.27-gcc410.patch' : OK for Ubuntu 7.10, CentOS5, PCLinuxOS. ( Fedora ? )

..

Last edited by knudfl; 03-18-2011 at 12:32 PM.
 
  


Reply

Tags
leach, ns2, ns227, ns227+ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:57 AM
Trying to make an ubuntu installation disk, using ubuntu. belladivediva Ubuntu 5 03-03-2009 12:47 AM
Stalled installation of Ubuntu 7 on top of Ubuntu 6 Bill41 Linux - Newbie 5 06-21-2008 05:49 PM
LXer: Printing with Ubuntu: Insights for a quick and easy Ubuntu printer installation LXer Syndicated Linux News 0 06-03-2006 10:54 AM
ubuntu installation and ubuntu live cd morphixrocks Ubuntu 2 01-21-2006 03:12 PM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration