LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   C compiler cannot create execultables ,when I installing netcdf program. (https://www.linuxquestions.org/questions/linux-desktop-74/c-compiler-cannot-create-execultables-when-i-installing-netcdf-program-500018/)

cerzza 11-09-2006 05:49 AM

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.

allend 11-13-2006 07:31 AM

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.

cerzza 11-17-2006 02:02 AM

Thanks a lot allend.


All times are GMT -5. The time now is 01:25 AM.