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 05-24-2011, 06:34 AM   #1
ccmulenga
LQ Newbie
 
Registered: May 2011
Location: Malaysia
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
NS2 Installation on Fedora 14 installed on VMware


Hello people,
am new to linux and am trying to install NS2 on Fedora 14 running on VMware, the am following the instructions at: http://wpage.unina.it/marcello.caleffi/ns2/fedora.html , however, on step 5: tclcl installation am receiving the follow error and have tried to look at other posts but no luck, your help will be appreciated.

[root@localhost tclcl-1.18]# make
g++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_12 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/usr/share/otcl-1.12 -I/usr/local/include -I/usr/share/tcl8.4.14/generic -I/usr/share/tcl8.4.14/generic -o Tcl.o Tcl.cc
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182:8: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421:50: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:509:57: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511:61: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566:35: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:571:72: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603:60: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605:60: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
[root@localhost tclcl-1.18]# make install
/usr/bin/install -c -m 644 *.h /usr/local/include
/usr/bin/install -c tcl2c++ /usr/local/bin
/usr/bin/install -c libtclcl.a /usr/local/lib
/usr/bin/install: cannot stat `libtclcl.a': No such file or directory
make: *** [install] Error 1
[root@localhost tclcl-1.18]#
 
Old 05-24-2011, 12:40 PM   #2
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
Welcome to LQ.

Fedora : The usual, for ns2 : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

And : cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

I.e. using ns-allinone-2.34 is the proof method.
The "wpage.unina.it/marcello.caleffi/ns2/fedora" method will only allow
you to have one ns2 version installed.

..

Last edited by knudfl; 05-24-2011 at 12:47 PM.
 
1 members found this post helpful.
Old 05-25-2011, 04:43 PM   #3
ccmulenga
LQ Newbie
 
Registered: May 2011
Location: Malaysia
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
@knudfl thanks i managed to install and finished the validation with the final message all tests passed. But after rebooting i tried to run ns and received the error ns does not exist, by the way i installed ns-allinone-2.34 like u advised....
 
Old 05-26-2011, 04:08 AM   #4
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
A practical way to have ns, nam in a system PATH :

cd ns-allinone-2.34/ns-2.34/ ; su ; # make install
cd ../nam-1.14/ ; # make install

... And you get 'ns', 'nam' copied to /usr/local/bin/.

.
 
0 members found this post helpful.
Old 06-01-2011, 12:53 PM   #5
ccmulenga
LQ Newbie
 
Registered: May 2011
Location: Malaysia
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Sorry to bother again, but i still don't get it, how do i run or start ns2. i finished all the installation but i cant still get to start it from command line. Am still familiarizing myself to Linux and ns2, please bear with me
 
Old 06-01-2011, 04:49 PM   #6
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
When you have done # make install, like shown in post # 4 :

ns and nam can be executed in a terminal window from any location.
Both are now in a system PATH = /usr/local/bin/.

But if the files didn't get installed, you can of course not use 'ns'.

Did you get any error messages, when you did 'make install' ? ?

..
 
1 members found this post helpful.
Old 06-02-2011, 01:03 AM   #7
ccmulenga
LQ Newbie
 
Registered: May 2011
Location: Malaysia
Posts: 4
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hello, thank you very much, i did the instructions in part #4 and it worked.
Thanks again. Hope to asking other things when am not clear or sure!
 
Old 09-02-2011, 02:18 AM   #8
channukya
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Rep: Reputation: 0
Hello
I have installed Fedora 14 and installed vmware work station 7 on it. but it is asking for kernel headers 2.6.35.6-45.fc14. my kernel version is also of same .
I have executed the command "yum installed kernel-headers-2.6.35.6-45.fc14*"
it is showing
"Setting up Install Process
Package kernel-headers-2.6.35.6-45.fc14.x86_64 already installed and latest version
Nothing to do"
can any one help me out in this regards ...
 
Old 09-02-2011, 02:48 AM   #9
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
Post # 8, @channukya : Please do not hijack another members thread
with an off topic question. This thread is about "net simulator ns2".
Start a new thread instead.

""Kernel headers"" : # yum install kernel kernel-devel

.. And then reboot to use the new matching kernel / kernel-devel.

.

Last edited by knudfl; 09-02-2011 at 02:49 AM.
 
Old 01-03-2012, 04:01 AM   #10
prathibhahebbar
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
i have fedore 13 (64-bit), can i install ns2 simulator on it. if yes does it give compatibility, n which version of ns2 will support. if no, what else can be done?
please help me
 
Old 01-03-2012, 05:56 AM   #11
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
#10 , @prathibhahebbar.


Prerequisites, Fedora : See post #2.

ns-allinone versions 2.35 2.34 2.33 :
Usually the default gcc / g++ compiler version 4.4.4 will do. (Fedora 13, 32bits.)

This will always work for ns-allinone -2.28 .... -2.34 :
cd ns-allinone-2.xx/ && export CC=gcc34 CXX=g++34 && ./install

About the PATH* settings : Please see post #4.

A 64bits OS will create a slightly reduced result. Usable for the most simulations.

..
 
Old 01-05-2012, 01:43 AM   #12
prathibhahebbar
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
thank u.

my system is 64 bit. can i use fedora (32 bit) on it?
 
Old 01-05-2012, 04:15 AM   #13
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,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
#12.


Quote:
My system is 64 bit. Can I use Fedora (32 bit) on it ?
Yes. A 64bits CPU will run all 32bits Linux OS.
 
Old 01-05-2012, 05:54 AM   #14
John VV
Guru
 
Registered: Aug 2005
Posts: 13,455

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Quote:
i have fedore 13
keep in mind that fedora 13 is a dead version and so is 14
fedora 13 has not had any updates now for over 6 months , and it never will get any

fedora 16 is the current
Please stay current
 
  


Reply

Tags
ns2


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
Fedora NS2 Installation assistance request. sindhu subramanian Linux - Newbie 19 03-11-2011 02:51 AM
need the correct installation of ns2.34 fedora version. sandhya_it17m Linux - Laptop and Netbook 1 01-05-2010 02:20 AM
NS2 installation problem in fedora 7 rahat ullah Linux - Newbie 5 10-27-2009 03:56 AM
ns2.33 installation procedure in fedora karmel Linux - Newbie 4 05-08-2009 11:46 PM
ns2.33 installation in fedora & path setting murali1509 Linux - Newbie 0 01-06-2009 08:53 AM


All times are GMT -5. The time now is 11:19 PM.

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