LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-27-2011, 01:46 AM   #1
reene.g
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
NS2.34 Installation error in Fedora 15


Hi, I am new to Fedora 15 and Linux. I have installed the Fedora 15 into my external HDD using Fedora-15-i686-Live-Desktop. I wanna install ns2.34 but these errors showed out.

Quoted:
[ChiaYin@ChiaYin-F15 ns-allinone-2.34]$ ./install
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Testing for FreeBSD environment
============================================================
FreeBSD not detected
============================================================
* Build XGraph-12.1
============================================================
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
make: gcc: Command not found
make: *** [ctangle.o] Error 127
cweb failed to make, but it's optional
chmod: cannot access `cweave': No such file or directory
chmod: cannot access `ctangle': No such file or directory
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi
/bin/sh: ctangle: command not found
make: *** [gb_io.c] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.2.3 with cc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: cc: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.18
============================================================
./install: line 431: autoconf: command not found
creating cache ./config.cache
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... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
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.

____________________________________________________________________

There are so many missing files here and I don't know where to start with. Can someone please help?
Thank you.
 
Old 09-27-2011, 02:01 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Everybody's asking about NS2 tonight. Don't they give you any setup instructions as part of your first homework assignments?

Anyway, the error is saying that you need to install a C compiler before you can build NS2.
 
Old 09-27-2011, 03:07 AM   #3
ambitlick
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Use Red Hat For Ns2

hi friends ,

Use Redhat 9.0 for NS2 projects,

Because it have 1394 package, when comparing with

Ubento , fedrora , RH is best for NS2 .
 
0 members found this post helpful.
Old 09-27-2011, 12:14 PM   #4
reene.g
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by paulsm4 View Post
Everybody's asking about NS2 tonight. Don't they give you any setup instructions as part of your first homework assignments?

Anyway, the error is saying that you need to install a C compiler before you can build NS2.
Dear paulsm4,
The setup instructions I learned are very perfect without any further troubleshooting
I searched for gcc as below and shall I install all of them or which is the most precise package I should install?

Code:
[root@ChiaYin-F15 ~]# yum search gcc
Loaded plugins: langpacks, presto, refresh-packagekit
updates/pkgtags | 50 kB 00:01
=============================== N/S Matched: gcc ===============================
arm-gp2x-linux-gcc.i686 : Cross Compiling GNU GCC targeted at arm-gp2x-linux
avr-gcc.i686 : Cross Compiling GNU GCC targeted at avr
avr-gcc-c++.i686 : Cross Compiling GNU GCC targeted at avr
compat-libgcc-296.i686 : Compatibility 2.96-RH libgcc library
gcc-c++.i686 : C++ support for GCC
gcc-gnat.i686 : Ada 95 support for GCC
gcc-java.i686 : Java support for GCC
gcc-objc.i686 : Objective-C support for GCC
gcc-objc++.i686 : Objective-C++ support for GCC
gcc-plugin-devel.i686 : Support for compiling GCC plugins
gccxml.i686 : XML output extension to GCC
libgcc.i686 : GCC version 4.6 shared support library
mingw32-gcc.i686 : MinGW Windows cross-compiler (GCC) for C
msp430-gcc.i686 : Cross Compiling GNU GCC targeted at msp430
arm-gp2x-linux-gcc-c++.i686 : Cross Compiling GNU G++ targeted at arm-gp2x-linux
avr-libc.noarch : C library for use with GCC on Atmel AVR microcontrollers
colorgcc.noarch : Script to colorize the compiler output
compat-gcc-34.i686 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.i686 : C++ support for compatibility compiler
compat-gcc-34-g77.i686 : Fortran 77 support for compatibility compiler
gcc.i686 : Various compilers (C, C++, Objective-C, Java, ...)
gcc-gfortran.i686 : Fortran support
gcc-go.i686 : Go support
ghdl.i686 : A VHDL simulator, using the GCC technology
libgcj.i686 : Java runtime library for gcc
libgcj-devel.i686 : Libraries for Java development using GCC
libgcj-src.i686 : Java library sources from GCC4 preview
libgomp.i686 : GCC OpenMP v3.0 shared support library
libmudflap.i686 : GCC mudflap shared support library
libmudflap-devel.i686 : GCC mudflap support
libquadmath.i686 : GCC __float128 shared support library
libquadmath-devel.i686 : GCC __float128 support
mingw32-gcc-c++.i686 : MinGW Windows cross-compiler for C++
mingw32-gcc-gfortran.i686 : MinGW Windows cross-compiler for FORTRAN
mingw32-gcc-objc.i686 : MinGW Windows cross-compiler support for Objective C
mingw32-gcc-objc++.i686 : MinGW Windows cross-compiler support for Objective C++
msp430-libc.noarch : C library for use with GCC on Texas Instruments MSP430
: microcontrollers

Name and summary matches only, use "search all" for everything.

________________________________________________________________________________________

Thank you for helping
 
Old 09-27-2011, 12:17 PM   #5
reene.g
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ambitlick View Post
hi friends ,

Use Redhat 9.0 for NS2 projects,

Because it have 1394 package, when comparing with

Ubento , fedrora , RH is best for NS2 .
Dear ambitlick,
I was taught to use NS2 in Fedora so I need to figure it out
Thank you for sharing
 
Old 10-04-2011, 09:05 AM   #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,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Ns2 prerequisites for all Fedora :

# yum install \
compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel \
libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool


Installing ns2 :
cd ns-allinone-2.34 && export CC=gcc34 CXX=g++34 && ./install

..

Last edited by knudfl; 10-04-2011 at 03:47 PM.
 
  


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
problem with ns2.34 installation in fedora 14 kathu Linux - Newbie 12 01-25-2013 01:34 AM
NS2.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 04:27 AM
NS2 Installation Error ajkannan83 Linux - General 2 01-01-2010 04:35 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


All times are GMT -5. The time now is 07:52 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