- 积分
- 8
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近在学习WRF,安装NetCDFv3.6.3的时候,到./configure哪里出错了,错误提示如下:
configure: netCDF 3.6.3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
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 this is a netCDF-4.x build... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether documentation is to be installed... no
checking whether Fortran compiler(s) should be tested during configure... yes
checking whether configure should try to set compiler flags... yes
checking whether FFIO will be used... no
checking whether to skip C++, F77, or F90 APIs if compiler is broken... yes
checking whether only the C library is desired... no
checking whether examples should be built... yes
checking whether F77 API is desired... yes
checking whether F90 API is desired... yes
checking whether fortran type sizes should be checked... yes
checking whether C API is desired... yes
checking where to get netCDF C-only library for separate fortran libraries...
checking whether CXX API is desired... yes
checking whether v2 netCDF API should be built... yes
checking whether the ncgen/ncdump should be built... yes
checking whether large file (> 2GB) tests should be run... no
checking whether benchmaks should be run (experimental)... no
checking whether extreme numbers should be used in tests... yes
checking where to put large temp files if large file tests are run... .
checking whether a win32 DLL is desired... no
checking whether separate fortran libs are desired... no
configure: finding C compiler
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details
到config.log里找错误信息如下:
Using built-in specs.
Target: x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
configure:3611: $? = 0
configure:3618: /usr/bin/gcc -V >&5
gcc: '-V' option must have argument
configure:3622: $? = 1
configure:3645: checking for C compiler default output file name
configure:3667: /usr/bin/gcc conftest.c >&5
cc1: error: /usr/local/include: Permission denied
configure:3671: $? = 1
configure:3709: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "netCDF"
| #define PACKAGE_TARNAME "netcdf"
| #define PACKAGE_VERSION "3.6.3"
| #define PACKAGE_STRING "netCDF 3.6.3"
| #define PACKAGE_BUGREPORT "support@unidata.ucar.edu"
| #define PACKAGE "netcdf"
| #define VERSION "3.6.3"
| #define USE_EXTREME_NUMBERS 1
| #define TEMP_LARGE "."
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3716: error: C compiler cannot create executables
See `config.log' for more details.
请问这是什么问题,如何解决啊,感谢各位大神
|
|