LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-09-2006, 05:49 AM   #1
cerzza
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
C compiler cannot create execultables ,when I installing netcdf program.


fuocubellu@cerzza:~/andrea/prgWRF/netcdf-3.6.2-beta3$ ./configure
configure: netCDF 3.6.2-beta3
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether documentation is to be built... no
checking whether netCDF is to be built in 64-bit mode... no
checking whether F90/95 compiler should be tested during configure
checking whether configure should try to set compiler flags... yes
checking whether configure should try to set CPPFLAGS... yes
checking whether configure should try to set CFLAGS... yes
checking whether configure should try to set CXXFLAGS... yes
checking whether configure should try to set FFLAGS... yes
checking whether configure should try to set FCFLAGS... yes
checking whether configure should try to set F90FLAGS... yes
checking whether we should just skip C++, F77, or F90 API if compi
checking whether F77 API is desired... yes
checking whether F90 API is desired... yes
checking whether CXX API is desired... yes
checking whether v2 netCDF API is to enabled... yes
checking where to put large temp files if large file tests are run
configure: finding C compiler
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... configure: err
See `config.log' for more details.
fuocubellu@cerzza:~/andrea/prgWRF/netcdf-3.6.2-beta3$ make test
cd . && /bin/sh /home/andrea/Documents/WRF/netcdf-3.6.2-beta3/miss
/bin/sh: /home/andrea/Documents/WRF/netcdf-3.6.2-beta3/missing: No
make: *** [aclocal.m4] Error 127
fuocubellu@cerzza:~/andrea/prgWRF/netcdf-3.6.2-beta3$ ./configure
configure: netCDF 3.6.2-beta3
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether documentation is to be built... no
checking whether netCDF is to be built in 64-bit mode... no
checking whether F90/95 compiler should be tested during configure... yes
checking whether configure should try to set compiler flags... yes
checking whether configure should try to set CPPFLAGS... yes
checking whether configure should try to set CFLAGS... yes
checking whether configure should try to set CXXFLAGS... yes
checking whether configure should try to set FFLAGS... yes
checking whether configure should try to set FCFLAGS... yes
checking whether configure should try to set F90FLAGS... yes
checking whether we should just skip C++, F77, or F90 API if compiler is missing... yes
checking whether F77 API is desired... yes
checking whether F90 API is desired... yes
checking whether CXX API is desired... yes
checking whether v2 netCDF API is to enabled... yes
checking where to put large temp files if large file tests are run... .
configure: finding C compiler
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
 
Old 11-13-2006, 07:31 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
You have not given any information about your system, but if you look at the INSTALL.html file that comes with the netcdf files you will find that you need to set some environment variables.
I quote the following from the INSTALL.html from netcdf 3.5.1

Quote:
The following is reported to work with more recent versions of Linux

CC=/usr/bin/c99
CPPFLAGS=-Df2cFortran
FC=/usr/bin/g77
FFLAGS=-Wno-globals
CXX=/usr/bin/g++
This worked for me when I built netcdf 3.5.1.
 
Old 11-17-2006, 02:02 AM   #3
cerzza
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot allend.
 
  


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
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 09:14 AM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C compiler cannot create executables martincho Linux - Software 3 10-01-2004 07:04 PM
C compiler cannot create executables JanDeMan Debian 7 04-20-2004 02:10 AM
NetCDF and KDevelop joer Linux - Software 0 04-15-2004 08:09 AM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
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