Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285
Rep:
To @ yasirimteyaz and @ joelits :
I never did it that way, but installed
otcl, tclcl, ns, nam to /usr/local/ , just
by doing # 'make install' after 'cd' into
each of those. ( Please see post # 6.)
Installs 18 ( small ) files in /usr/local/.
cd /usr/local/bin/
# strip *
( or sudo strip * , if Ubuntu.)
.. makes ns , nam smaller.
Some times it is possible to use the system tcl / tk .
And as not all Linux's needs " system tcl / tk ",
the tcl-8.4.18 / tk-8.4.18 from ns-allinone can be
installed too.
Check out my latest blog on installing ns2 on Ubuntu 9.10 http://bit.ly/1DiXzB
It works perfectly with this method. No need to set path or environment.
3) Start or restart 'synaptic', and ns (-2.33), nam (-1.13) are there.
.. "mitotcl", tclcl, tcl8.4, tk8.4 will be installed automatically as dependency.
.. And you have ns, nam in a system path per the recommandations in
this thread ... and thus : no setting no extra path's.
Notice this : ns provides /usr/bin/ns only, no other ns files,
so there is no reason to delete your already unpacked files.
( If the versions will fit.)
.....
.....
A comment to your blog, concerning gcc-4.4 :
'otcl-1.13' compiles with no errors, gcc-4.4.0 ( Fedora 11 ) ,
gcc-4.4.1 ( pclos 2009.2 ), and gcc-4.4.1 in Mandriva 2010 ,
... but not with the gcc-4.4.1 supplied with Ubuntu 9.10 .
.....
hello mate, is working thanks for your help, i didn't had to modify nothing, i did what you have told me and now is working perfectly as i was want it, thanks a lot i need it so much for my school project, cool.
i have a question to ask, i have to build a cluster with 100 pc what i am interested is in hardware, can you give me some advices regarding to this. thanks again and good luck...
Well mate I try to install it on my other computer and now I get this error, I did the building essential and install the gcc but the error is still here.
Code:
Build tcl8.4.18
============================================================
configure: WARNING: unrecognized options: --enable-gcc
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.3
checking for C compiler default output file name...
configure: error: in `/home/mountain/ns/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.
Check out my latest blog on installing ns2 on Ubuntu 9.10 http://bit.ly/1DiXzB
It works perfectly with this method. No need to set path or environment.
that's a good tutorial, thanks for your help, it was very easy to install it...............
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285
Rep:
@ mzarei , # 23 : Welcome to LQ.
Quote:
make: gcc-4.3: Command not found
Which Linux are you using ? ? Like Ubuntu 9.10 .. Fedora 11 .. etc.
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager
to get the command. Only Ubuntu 9.10 needs this modification. AFAIK.
'gcc-4.1' or 'gcc-3.x' are OK too, if available.
Which Linux are you using ? ? Like Ubuntu 9.10 .. Fedora 11 .. etc.
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager
.
Hi
I using ubuntu 9.10
Tanks knudfl
Quote:
Ubuntu 9.10 : install the package gcc-4.3 with the Package Manager
it's working
I also validate it and "validate overall report: all tests passed"
But in validation process I saw this "warning: Route to base_stn not known: dropping pkt"
mariam@ubuntu:~$ sudo apt-get install \g++ g++-4.3 build-essential libc6-dev linux-libc-dev
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285
Rep:
@ marioma, post # 27 : Welcome to LQ. .. ..
sudo apt-get install g++ g++-4.3 libc6-dev linux-libc-dev
( build-essential is mostly for building debian / ubuntu packages.)
And if you could run ./install in ns-allinone-2.xx,
you already have g++, etc. See post # 2 for other requirements.
And please see post # 6 for installing the binaries + libraries.
""E: Could not get lock /var/lib/dpkg/lock - open
(11: Resource temporarily unavailable)"" :
Either an automatic update is running, and / or you are using
the package manager ( 'synaptic' ).
Suggest : shut down Synaptic, if it's open, and for some
updates : wait, until the process stops.
.....
Dear Knudfl & Yasir
Thanks a lot for your kind help
First I'd like to inform you with my environment, I am trying to install ns-allinone-2.34 on Ubuntu 9.10.
Knudfl, you are right my automatic update is running and still needs about 3 hours to finish after that I will try to follow your steps and hope that is work with me.
Yasir, I went to your blog "http://ns2onubuntu.blogspot.com/2009/11/easiest-way-to-install-ns2-on-ubuntu.html" but you said that "u can't make changes to C++ source files to recompile it...Make it clear that you installed it through ppa not by ns-allinone package, so ns-allinone files is of no use except for using examples and protocols already implemented"
so now I am asking, this means that if I need to create a new protocol which is not included in NS2 packages or to update in an existing one, I couldn't use your blog steps to install NS2, therefor I should go to ns2-allinone package...
being as a new memeber at Linux world, really need your help
Thanks in advance
Mariam
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.