Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
11-06-2009, 11:26 AM
|
#16
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
Then : No setting PATH at all, when all the binaries
are in a system path.
.....
.....
Examples : LQ 'Main Menu' > Search > 'Tagname' = ns2
http://www.linuxquestions.org/questi...ora-11-750634/
post # 13
http://www.linuxquestions.org/questi...sion.c-663612/
post # 13
.....
Last edited by knudfl; 11-06-2009 at 11:39 AM.
|
|
|
11-06-2009, 01:36 PM
|
#17
|
LQ Newbie
Registered: Nov 2009
Posts: 4
Rep:
|
solved.. i introduce wrong versions xD
|
|
|
11-06-2009, 04:15 PM
|
#18
|
LQ Newbie
Registered: Nov 2009
Posts: 4
Rep:
|
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.
|
|
|
11-07-2009, 04:47 AM
|
#19
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
@yasirimteyaz # 18, thank you for the repo reference.
Installing ns, nam, otcl, tclcl, goes this way :
1) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
2) sudo gedit /etc/apt/sources.list
.. and add this line to the file :
deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
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 .
.....
Last edited by knudfl; 11-08-2009 at 04:56 AM.
|
|
|
11-09-2009, 04:04 AM
|
#20
|
Member
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92
Original Poster
Rep:
|
Quote:
Originally Posted by foottuns
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.
|
|
|
11-09-2009, 04:11 AM
|
#21
|
Member
Registered: Nov 2009
Location: London
Distribution: Fedora 16
Posts: 92
Original Poster
Rep:
|
Quote:
Originally Posted by yasirimteyaz
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...............
|
|
|
11-10-2009, 06:08 AM
|
#22
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 20
Quote:
configure: error: C compiler cannot create executables
|
Generally about compilers : install g++ to get the packages,
that also makes gcc have full functionality.
sudo apt-get install \
g++ g++-4.3 build-essential libc6-dev linux-libc-dev
to be sure it all works.
.....
Last edited by knudfl; 11-10-2009 at 06:15 AM.
|
|
|
11-12-2009, 02:21 AM
|
#23
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Rep:
|
Quote:
Originally Posted by knudfl
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '
And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.
But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC= @CC@
to :
CC= gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....
|
hi
after i do that i see this error :
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.31-14-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc-4.3 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/home/mehdi/home/programmer/ns-allinone-2.34/include -I/include otcl.c
make: gcc-4.3: Command not found
make: *** [libotcl.so] Error 127
otcl-1.13 make failed! Exiting ...
please help me
Last edited by mzarei; 11-12-2009 at 02:22 AM.
|
|
|
11-12-2009, 01:11 PM
|
#24
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
@ 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.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
Last edited by knudfl; 11-12-2009 at 04:30 PM.
|
|
|
11-12-2009, 11:59 PM
|
#25
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Rep:
|
Quote:
Originally Posted by knudfl
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"
Is it important?
|
|
|
11-13-2009, 02:24 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 25
A warning is mostly an information.
If it had any importance, the result would have been
different from " All tests passed ".
.....
" Not all tests passed " is when you will have to
repeat some tests manually.
.....
|
|
|
04-14-2010, 07:56 PM
|
#27
|
LQ Newbie
Registered: Apr 2010
Posts: 10
Rep:
|
Quote:
Originally Posted by knudfl
@yasirimteyaz # 18, thank you for the repo reference.
Installing ns, nam, otcl, tclcl, goes this way :
1) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
....
.....
|
Dears, when I use this command, I get this error!
Quote:
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?
|
|
|
|
04-15-2010, 02:54 AM
|
#28
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
@ 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.
.....
Last edited by knudfl; 04-16-2010 at 12:52 PM.
|
|
1 members found this post helpful.
|
04-15-2010, 12:53 PM
|
#29
|
LQ Newbie
Registered: Nov 2009
Posts: 4
Rep:
|
Quote:
Originally Posted by marioma
Dears, when I use this command, I get this error!
|
looks like synaptic manager is open when u r trying to run this command.
firstly close all synaptic windows and then run the command.
|
|
1 members found this post helpful.
|
04-16-2010, 10:19 AM
|
#30
|
LQ Newbie
Registered: Apr 2010
Posts: 10
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|