LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-30-2014, 11:34 AM   #1
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Rep: Reputation: Disabled
Angry Problems running ns 2.31 on Fedora 20


Can anyone tell me how can i install ns 2.31 on fedora 20. Because when i run ns2.31 on fedora 20 it gives me errors
 
Old 01-30-2014, 12:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,321

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by uzmag View Post
Can anyone tell me how can i install ns 2.31 on fedora 20. Because when i run ns2.31 on fedora 20 it gives me errors
Maybe if you bothered to tell us WHAT the errors were, we could help you. We can't and won't guess.
 
Old 01-30-2014, 06:21 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
* Probable read some of the numerous posts about ns2 / Fedora.

For all versions ns-allinone-2.26 .. 2.34, the install command is the same, like:
1) $ cd ns-allinone-2.31/
2) $ export CC=gcc34 CXX=g++34 && ./install

... You will of course have to install the compilers :
# yum install compat-gcc-34-c++

-
 
1 members found this post helpful.
Old 01-31-2014, 04:11 AM   #4
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
question:
I have two laptops .
one is 32 bit and on that laptop fedora 8 x86 works and on that laptop I successfully installed ns-2.33,ns2.34 and ns 2.35.

whereas, on the second laptop which have 64 bit architecture.I couldn't find fedora x86_64 bit version. the only version available for x64 is fedora 20.so I have installed that.but wnen I try to install ns2 on x64 laptop it gives me following errors.



so please if anyone have fedora 8 x64 bit version please provide me or tell me the way to install ns2 successfully on fedora 20.

thanks for the timely reply.
 
Old 01-31-2014, 04:21 AM   #5
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
question:
I have two laptops .
one is 32 bit and on that laptop fedora 8 x86 works and on that laptop I successfully installed ns-2.33,ns2.34 and ns 2.35.

whereas, on the second laptop which have 64 bit architecture.I couldn't find fedora x86_64 bit version. the only version available for x64 is fedora 20.so I have installed that.but wnen I try to install ns2 on x64 laptop it gives me following errors.
configure error :no acceptable cc found in $PATH
tcl 8.3.2 configuration failed!Exiting ...



so please if anyone have fedora 8 x64 bit version please provide me or tell me the way to install ns2 successfully on fedora 20.

thanks for the timely reply
 
Old 01-31-2014, 10:14 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,321

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by uzmag View Post
question:
I have two laptops. one is 32 bit and on that laptop fedora 8 x86 works and on that laptop I successfully installed ns-2.33,ns2.34 and ns 2.35.

whereas, on the second laptop which have 64 bit architecture.I couldn't find fedora x86_64 bit version. the only version available for x64 is fedora 20.so I have installed that.but wnen I try to install ns2 on x64 laptop it gives me following errors.
configure error :no acceptable cc found in $PATH
tcl 8.3.2 configuration failed!Exiting ...

so please if anyone have fedora 8 x64 bit version please provide me or tell me the way to install ns2 successfully on fedora 20.
thanks for the timely reply
First, Fedora 8 is ANCIENT...it is TWELVE MAJOR VERSIONS behind, and should NOT be used for anything. You will NEVER find Fedora 8 for x64...because there WERE NO X64 CPU's when Fedora 8 was written. You're getting the error because you haven't installed the C compilers yet. Did you read/understand knudfl's reply about installing the compiler (the "yum" command you were given in post #3)????
 
Old 01-31-2014, 11:50 AM   #7
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
i have installed fedora 20 x64 successfully and when i try to install ns 2.31 but the following error i encountered.







Quote:

sudo apt-get install libc6-dev linux-libc-dev gcc-4.2 g++
i did this, it terminates successfully,

Quote:

g++ is already the newest version.
libc6-dev is already the newest version.
linux-libc-dev is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp-4.2 gcc-4.2-base
Suggested packages:
gcc-4.2-locales gcc-4.2-doc gcc-4.2-multilib libgcc1-dbg libgomp1-dbg
libmudflap0-4.2-dev libmudflap0-dbg
The following NEW packages will be installed:
cpp-4.2 gcc-4.2 gcc-4.2-base
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
after that, i run this command to install


Code:
khan@khan:~/network_simulator/ns2/ns-allinone-2.34$ export CC=gcc-4.2 CXX=g++-4.2 && ./install
but at the end i got some errors, listed below, these are some of last lines of the execution.



Quote:

otcl-1.13 has been installed successfully.
============================================================
* Build Tclcl-1.19
============================================================
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... gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.2 accepts -g... yes
checking for gcc-4.2 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... no
checking whether g++-4.2 accepts -g... no
checking how to run the C preprocessor... gcc-4.2 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking standard STL is available... no
checking for ranlib... ranlib
checking for snprintf... yes
checking for ANSI C header files... (cached) yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for otcl.h... -I../otcl-1.13
checking for libotcl1.13... -L../otcl-1.13 -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for zlib.h... -I/usr/include
checking for libz1.1.3... -L/usr/lib -lz
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
config.status: creating config.h
creating ./gen
creating ./bin
gcc-4.2 -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBZ1_1_3 -DHAVE_ZLIB_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/usr/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/otcl-1.13 -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -I/home/khan/network_simulator/ns2/ns-allinone-2.34/include -o tcl2c++.o tcl2c++.c
rm -f tcl2c++
g++-4.2 -o tcl2c++ tcl2c++.o
make: g++-4.2: Command not found
make: *** [tcl2c++] Error 127
tclcl-1.19 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


help me please !
 
Old 01-31-2014, 01:45 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,232

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
pardon BUT

you installed FEDORA 20
and then THIS WORKED ????????????????????????????????????????????????????
Quote:
sudo apt-get install libc6-dev linux-libc-dev gcc-4.2 g++
i did this, it terminates successfully,
there is NO WAY "in <censored the 4 letter word>!!!" that that Ubuntu/Debian command even came close to working

1)
fedora dose NOT use "sudo" nor is it set up
2)
fedora dose not use "apt-get" it uses "yum
you can NOT even install debians "apt-get "on fedora
3)
fedora DOSE NOT !!!!!!! use the ubuntu ".deb" naming scheme !!!!!!!!!!!!!!!!!!!!!!!!!!
as in Fedora DOSE NOT !!! use -dev !!!!!!

Fedora uses "-devel " for the development rpm's


4)
it is ALSO IMPOSSIBLE for fedora 20 to have outputed this !!!!!!!!!
Quote:
libc6-dev is already the newest version.
linux-libc-dev is already the newest version.
you ARE NOT !!!! running fedora 20

Last edited by John VV; 01-31-2014 at 01:47 PM.
 
Old 02-01-2014, 04:19 AM   #9
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
I m running fedora. And I know fedora uses yum install commands to update all packages and for installation.i have installed all packages using below commands.
1. Download ns-allinone
2. Now you have to resolve some dependencies.
( i.) su
( ii.) yum install autoconf
( iii.) yum install automake
( iv.) yum install gcc-c++
( v.) yum install libX11-devel
( vi.) yum install xorg-x11-proto-devel
( vi.) yum install libXt-devel
( vi.) yum install libXmu-devel
3. Place downloaded file in home directory and type tar -xzvf ns-allinone-2.35.tar.gz
4.cd ns-allinone-2.35
5. Now ./install
./validate
I need help in patching cognitive radio in ns2
 
Old 02-01-2014, 01:58 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,232

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
then why did you post those Ubuntu commands and Ubuntu output AS BEING from fedora ?

you can not use Debian commands on a redhat system
and a redhat system will not output debian output

you NEED to read the install instructions !!!

you have to install the OLD gcc 3.4 compatibility compiler
As stated in post 3 and in EVERY " how do i install ns2" thread on this forum

and part of that is this
Code:
yum install compat-gcc-34-c++
the default compiler in fedora 20 ( gcc 4.8) is WAY too new to build ns2 code from 10 years ago . so you need to install a old compiler to build ns2

Last edited by John VV; 02-01-2014 at 02:01 PM.
 
Old 02-03-2014, 02:00 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Post #9.
Quote:
I need help in patching cognitive radio in ns2
Please read http://www.linuxquestions.org/questions/tags/crcn/
.. about CRCN.

And then install ns-allinone-2.31 for CRCN ...
Fedora : Post #5 here http://www.linuxquestions.org/questi...rror-940388/#5
$ cd ns-allinone-2.31/ && tar xvf crcn-ns2.31.tar.gz
$ export CC=gcc34 CXX=g++34 && ./install

-
 
  


Reply


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
Problems getting Fedora Core 19 running right. Fanoflinux Linux - Newbie 1 09-05-2013 01:08 AM
problems running vmware-config.pl in fedora 12: 64 bit mia_tech Linux - General 7 01-21-2010 01:26 AM
Problems running WUSB54GC V3 under Fedora 11 SeraphimNL Linux - Networking 1 12-27-2009 11:21 AM
PS3 running Fedora 5- CD audio problems Spacehost Linux - General 0 06-02-2007 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration