Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
-[/QUOTE]
thanks sir i execute these commands:
cd ns-allinone-2.26/
patch -p1 < ns-2.26-gcc410.patch.txt
patch -p0 < sip-full-udp_ns226.patch2
export CC=gcc34 CXX=g++34
./install
i had this problem:bash: ./install: Permission denied
NB: i'm using ubuntu 12.04 i686
and i installed compat-gcc34_3.4.6-ubuntu15_i386.deb
compat-g++34_3.4.6-ubuntu10_i386.deb
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #17. About `Permission denied'.
The default build location is /home/<user-name>/ns2/
... or other folder/ in /home/<user-name>/.
Except Desktop/ : The Desktop/ cannot be used.
Then unpack ns-allinone-2.26.tar.gz with $ tar xvf ns-allinone-2.26.tar.gz
No sudo for any ns2 command : You will get "Permission denied".
No Windows tool can be used to unpack : Some files cannot be accessed: Permission denied.
`sudo' exceptions : You can use sudo for the 'make install' in ns-2.26/.
And : sudo cp ns-sip-udp /usr/local/bin/.
About g++34 : g++32 can be used for ns-2.26 + UDPSIP. See post #16.
There are so far no gcc-3.2.3 packages for Ubuntu 12.04 .
when i execute this command: ./install
i have this error:
Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc32
checking for C compiler default output... configure: error: C compiler cannot create executables
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
then when i execute commands:
cd ns-2.26/
sudo make install
i have this error:
make: *** No rule to make target `install'. Stop.
NB: i installed "compat-gcc-32-c++-3.2.3-47.3.i386.rpm"
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #12.
"compat-gcc-32-c++-3.2.3-47.3.i386.rpm" : That's an old RHEL 4 compiler.
May be usable with Ubuntu versions 5.10 ... 10.10, but no later versions.
Please read post #18 :
"There are so far no gcc-3.2.3 packages for Ubuntu 12.04 ."
... meaning that a special gcc32 must be patched up for Ubuntu versions 11.10 - 14*.
With Ubuntu 11.04 the path`s started to change.
And all Ubuntu`s 11.10 - 15.10 have an identical setup :
/usr/include/i386-linux-gnu/, /usr/lib/i386-linux-gnu/.
A conventional gcc32 will look for files in /usr/include/, /usr/lib/.
Meaning that your conventional gcc32 will work only in a conventional OS.
I.e. all new (and older) versions of Fedora, CentOS, PCLinuxOS etc. etc.
* May be I can make up a new gcc32 package for the new Ubuntu versions ... later.
* May be I can make up a new gcc32 package for the new Ubuntu versions ... later.
-[/QUOTE]
that's mean that i can't resolve my problem now and if your response is yes can i find other solutions or modify this script : "sip-example-udp-2.tcl" to simulate voip using sip protocol in ns-2.35 for example?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #21. Quote tags are [quote]text to be quoted[/quote]
( Or use the Quote button.)
Quote:
that means that I can't resolve my problem now
`g++32' doesn't really solve anything. (Is not about gcc32. ns2 is compiled with g++**).
Just shows you that the old UDPSIP code (year ~2000-2003) isn't very usable with a contemporary OS.
See post #16 : Old Ubuntu 10.10 >>> "Segmentation fault"
... and is worse with a contemporary i686 OS : "double free or corruption".
Editing scripts : I can't help with that.
NS-2 is dead. Almost. Very few users, very few questions per week about ns2.
All the ns2 developers are now developing ns3, and only answering ns3 questions : https://groups.google.com/forum/?fro...rum/ns-3-users
... So far already 7 threads today. And 18 yesterday.
[QUOTE]
Sorry but i have another problem when i executed another script i had this error message:
can't read "link_(4:0)": no such element in array
while executing
"$link_([$n1 id]:[$n2 id]) trace $self $file"
(procedure "_o3" line 7)
(Simulator trace-queue line 7)
invoked from within
"$ns trace-queue $PR1 $LO1 $nt"
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #27.
Which script ? A file name, please.
And : You can upload the file to 'Google Docs'.
Or attach it to a post here, as name.tcl.txt .
Attachments : The paper clip tool in the 'Advanced Editor'.
"$link_([$n1 id]:[$n2 id]) trace $self $file" : Unknown file.
None of the ~2,000 ns2 examples seem to have a line like that.
( cd All-examples/ && grep "$link_([$n1 id]:[$n2 id]) trace $self $file" * ).
Your error : Looks like "link_(4:0)" isn't defined.
the script "sip-example-sctp.tcl" posted in this link:https://drive.google.com/file/d/0B7S...ew?usp=sharing
and concerning the first question about patch i type this command sudo apt-get update && sudo apt-get install patchbut i have this error:
"download of some files failed"
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #29.
Quote:
"download of some files failed"
? Which OS ? Still Ubuntu 12.04 - i686 ?
Your "half link" :
"https://drive.google.com/file/d/0B7S...ew?usp=sharing" >>>
HOWTO copy a link address :
Mouse right click, select 'Copy Link Location'.
And from 'Google Docs' you can Copy/Paste the link address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.