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. |
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. |
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 . |
Quote:
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:) |
Quote:
I was taught to use NS2 in Fedora so I need to figure it out:( Thank you for sharing:) |
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 .. |
All times are GMT -5. The time now is 09:01 PM. |