- 积分
- 1629
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-3-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 123349818 于 2015-2-3 18:23 编辑
NETcdf3.6.3在redhat安装没出错,但在fedora 21下编译出错!!求版主和各位朋友帮忙!
出错记录如:
[root@localhost netcdf-3.6.3]# make check
Making check in f90
make[1]: Entering directory '/home/qq/netcdf-3.6.3/f90'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/qq/netcdf-3.6.3/f90'
Making check in fortran
make[1]: Entering directory '/home/qq/netcdf-3.6.3/fortran'
make check-am
make[2]: Entering directory '/home/qq/netcdf-3.6.3/fortran'
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from ncfortran.h:12:0,
from fort-attio.c:7:
cfortran.h:138:3: 错误:#error "cfortran.h: Can't find your environment among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2 - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7. - CRAY - NEC SX-4 SUPER-UX - CONVEX - Sun - PowerStation Fortran with Visual C++ - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730 - LynxOS: cc or gcc with f2c. - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. - f77 with vcc works; but missing link magic for f77 I/O. - NO fort. None of gcc, cc or vcc generate required names. - f2c : Use #define f2cFortran, or cc -Df2cFortran - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran - Absoft Pro Fortran: Use #define AbsoftProFortran - Portland Group Fortran: Use #define pgiFortran - PathScale Fortran: Use #define PATHSCALE_COMPILER"
#error "cfortran.h: Can't find your environment among:\
^
Makefile:426: recipe for target 'fort-attio.lo' failed
make[2]: *** [fort-attio.lo] Error 1
make[2]: Leaving directory '/home/qq/netcdf-3.6.3/fortran'
Makefile:577: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/home/qq/netcdf-3.6.3/fortran'
Makefile:362: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
[root@localhost netcdf-3.6.3]# make install
Making install in f90
make[1]: Entering directory '/home/qq/netcdf-3.6.3/f90'
make[2]: Entering directory '/home/qq/netcdf-3.6.3/f90'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/qq/program/netcdf/share/man/man3" || /usr/bin/mkdir -p "/home/qq/program/netcdf/share/man/man3"
/usr/bin/install -c -m 644 './netcdf_f90.3' '/home/qq/program/netcdf/share/man/man3/netcdf_f90.3'
test -z "/home/qq/program/netcdf/include" || /usr/bin/mkdir -p "/home/qq/program/netcdf/include"
/usr/bin/install -c -m 644 'typesizes.mod' '/home/qq/program/netcdf/include/typesizes.mod'
/usr/bin/install -c -m 644 'netcdf.mod' '/home/qq/program/netcdf/include/netcdf.mod'
make[2]: Leaving directory '/home/qq/netcdf-3.6.3/f90'
make[1]: Leaving directory '/home/qq/netcdf-3.6.3/f90'
Making install in fortran
make[1]: Entering directory '/home/qq/netcdf-3.6.3/fortran'
make install-am
make[2]: Entering directory '/home/qq/netcdf-3.6.3/fortran'
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from ncfortran.h:12:0,
from fort-attio.c:7:
cfortran.h:138:3: 错误:#error "cfortran.h: Can't find your environment among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2 - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7. - CRAY - NEC SX-4 SUPER-UX - CONVEX - Sun - PowerStation Fortran with Visual C++ - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730 - LynxOS: cc or gcc with f2c. - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. - f77 with vcc works; but missing link magic for f77 I/O. - NO fort. None of gcc, cc or vcc generate required names. - f2c : Use #define f2cFortran, or cc -Df2cFortran - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran - Absoft Pro Fortran: Use #define AbsoftProFortran - Portland Group Fortran: Use #define pgiFortran - PathScale Fortran: Use #define PATHSCALE_COMPILER"
#error "cfortran.h: Can't find your environment among:\
^
Makefile:426: recipe for target 'fort-attio.lo' failed
make[2]: *** [fort-attio.lo] Error 1
make[2]: Leaving directory '/home/qq/netcdf-3.6.3/fortran'
Makefile:584: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/qq/netcdf-3.6.3/fortran'
Makefile:362: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
哎,之前在redhat下已经能转wrf了,但由于系统内核老是崩溃就转在fedora下转,之前编译netcdf到跑wrf一路正常,但现在卡到netcdf这过不去了,由于是新手,我查了官网的解决办法,人家说那是4.2之后才会出现的问题。到底怎么解决啊?求大家帮忙。谢谢
|
|