请教用fvcom3.1.6的同志们,需要你们的帮助,谢谢!

来源:互联网 发布:粉多多类似软件 编辑:程序博客网 时间:2024/05/01 00:43

在3.1.6版本中 我的步骤是这样的(我用的gfortran编译器,ubuntu14.04的)
1.在configure文件夹中 ./configure.sh series
2.在FVCOM_source 中 修改make.inc 细节是

gfortran defs
#--------------------------------------------------------------------------
CPP = /usr/bin/cpp
COMPILER = -DGFORTRAN
FC = gfortran

DEBFLGS =
OPT = -O3
CLIB =
别的基本上没有修改
3.然后去lib文件夹make
终端出现error(省去前面一大段了)
cd fproj && make install
make[1]: 正在进入目录 /home/rzf/下载/FVCOM3.2/FVCOM_source/libs/fproj'
if cc -DPACKAGE_NAME=\"libfproj4\" -DPACKAGE_TARNAME=\"libfproj4\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"libfproj4\ 1.0\" -DPACKAGE_BUGREPORT=\"Magnus.Hagdorn@ed.ac.uk\" -DPACKAGE=\"libfproj4\" -DVERSION=\"1.0\" -DHAVE_LIBM=1 -DHAVE_LIBPROJ=1 -I. -I. -DGFORTRAN -I/home/rzf/下载/FVCOM3.2/FVCOM_source/libs/install/include -O3 -MT fort-proj.o -MD -MP -MF ".deps/fort-proj.Tpo" -c -o fort-proj.o fort-proj.c; \
then mv -f ".deps/fort-proj.Tpo" ".deps/fort-proj.Po"; else rm -f ".deps/fort-proj.Tpo"; exit 1; fi
In file included from fort-proj.c:22:0:
cfortran.h:148:3: error: #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 - Intel Fortran: Use #define IFORT"
#error "cfortran.h: Can't find your environment among:\
^
make[1]: *** [fort-proj.o] 错误 1
make[1]:正在离开目录
/home/rzf/下载/FVCOM3.2/FVCOM_source/libs/fproj'
make: *** [all] 错误 2

请问问题出在哪里

0 0