Somebody has deleted these instructions. Please accept our apologies. The entry below is a temporary measure but should get you up and running:
某人己经删掉了这些使用说明。请接受我们的道歉。下面的输入是暂时性的方法但可以使你进行的很顺利:
(i) Download the linux binary from http://gcc.gnu.org/wiki/GFortranBinaries 32/64bit accroding to
requirements.
1、下载linux二进制文件,从这里根据要求下载32/64位。
(ii) cd to the directory where you wish to install gfortran; let us say $mypath, which might conveniently be /home or /home/myname or /etc (or even /).
2、cd(译者注:Linux命令更改目录)到你希望安装gfortran的目录去,我们假设是 $mypath,这个通常可能是 /home 或者 /home/myname 或者 /etc(甚至是根目录/).
(iii) tar -zxvf $path_to_download/gfortran-linux.tar.gz (if the file you downloaded ends with .tar.gz) or tar -jxvf $path_to_download/gfortran-linux.tar.bz2 (if the file ends with .tar.bz2)
3、tar –zxvf $path_to_download/gfortran-linux.tar.gz(假如你下载的文件以.tar.gz结尾)或者 tar –jxvf $path_to_download/gfortran-linux.tar.bz2(假如文件以.tar.bz2结尾)。(译者注:path_to_download 是你下载文件的目录)
(iv) The previous step has created a directory irun, under $mypath that contains gfortran-4.2 and gcc-4.2 plus associated libraries. This will not interfere with any other compiler. www.linuxidc.com
4、之前的步骤产生了一个irun目录,在$mypath下包含着gfortran-4.2和gcc-4.2关联库。这不会和任何其他编译器冲突。
(v) $mypath/irun/bin/gfortran –version will tests that all is well. You should see GNU Fortran 95 (GCC) 4.2.0 20060602 (experimental) Copyright (C) 2006 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING
5、$mypath/irun/bin/gfortran –version 将会检测所有是否正常。你应该看到GNU Fortran 95(GCC)4.2.0 20060602(experimental)Copyright(C)2006 Free Software Foundation,Inc.
GNU Fortran 没有质量保证,在一定程度上被法律许可。你可以在GUN一般公开许可的条款下,再分发GUN Fortran 的副本。关于这些事情的更多信息,查看名字为COPYING的文件。
(vi) I have to confess that on my solo user system, I use $mypath “”, so that the invocation is /irun/bin/gfortran You might find it cleaner to use /etc
6、我必须坦言在我的但用户系统中,我用$mypath””,所以调用是 /irun/bin/gfortran 。你会发现用/etc很清楚。
(vii) You will need to set LD_LIBRARY_FLAG or compile with -static.
7、你需要设置 LD_LIBRARY_FLAG 或者编译用 –static
(viii) Assuming that you are using bash, find your .bash_profile and add the line,
export LD_LIBRARY_PATH$mypath/irun/lib alternatively, invoke bash at the command line and enter this previous line.
You should have an operational gfortran by now.
8、加入你使用bash,找到.bash_profile 并加入一行,export LD_LIBRARY_PATH$mypath/irun/lib
或者在命令行下调用bash,输入之前的那一行。
到此为止,你有了一个可以运行的gfortran了。