linux 中fortran编译器 5
Linux入门,在安装LibRadtran时,官方要求已经安装下面的东西:Thefollowingsoftwareisrequiredtosuccessfullycomp...
Linux入门,在安装LibRadtran时,官方要求已经安装下面的东西:
The following software is required to successfully compile, link and run all of the libRadtran tools:
1. GNU make. The compilation might work with other make programs, but usually it doesn't.
2. The GNU C compiler (gcc). Other compilers might also work.
3. A Fortran compiler that is compatible with the C compiler. If a C compatible Fortran compiler is not available, f2c will do the job.
4. Flex - The Fast Lexical Analyzer. Is usually available for all flavours of Linux, under Mac, and for cygwin, but not necessarily installed by default. You may have to select installation of flex manually.
5. The Perl programming language, version 5.004 or later, is required to run the automatic test.
6. For OPAC aerosol as well as for the additional cloud properties which can be obtained above, the packages netcdf and libnetcdf-devel are required.
在fedora系统里安装的,第三条什么意思,没搞懂.... 展开
The following software is required to successfully compile, link and run all of the libRadtran tools:
1. GNU make. The compilation might work with other make programs, but usually it doesn't.
2. The GNU C compiler (gcc). Other compilers might also work.
3. A Fortran compiler that is compatible with the C compiler. If a C compatible Fortran compiler is not available, f2c will do the job.
4. Flex - The Fast Lexical Analyzer. Is usually available for all flavours of Linux, under Mac, and for cygwin, but not necessarily installed by default. You may have to select installation of flex manually.
5. The Perl programming language, version 5.004 or later, is required to run the automatic test.
6. For OPAC aerosol as well as for the additional cloud properties which can be obtained above, the packages netcdf and libnetcdf-devel are required.
在fedora系统里安装的,第三条什么意思,没搞懂.... 展开
1个回答
展开全部
方法一:
假如现在有两个Fortran程序1.f90和2.f90,其中1.f90是主程序,2.f90是在主程序中调用的子程序,将这两个程序传到Linux的一个目录下,使用fortran编译命令,如PGI的pgf90,Intel的ifort,命令如下:
pgf90 -o exe_name 1.f90 2.f90
ifort -o exe_name 1.f90 2.f90
方法二:
在主程序1.f90中加入include '2.f90'语句,然后在Linux下用fortran命令编译,命令如下:
pgf90 -o exe_name 1.f90
ifort -o exe_name 1.f90
假如现在有两个Fortran程序1.f90和2.f90,其中1.f90是主程序,2.f90是在主程序中调用的子程序,将这两个程序传到Linux的一个目录下,使用fortran编译命令,如PGI的pgf90,Intel的ifort,命令如下:
pgf90 -o exe_name 1.f90 2.f90
ifort -o exe_name 1.f90 2.f90
方法二:
在主程序1.f90中加入include '2.f90'语句,然后在Linux下用fortran命令编译,命令如下:
pgf90 -o exe_name 1.f90
ifort -o exe_name 1.f90
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询