Welcome 微信登录

首页 / 操作系统 / Linux / SUSE 11 sp2 安装 gcc-gfortran for

1. 下载gfortran  (Download the GFortran binary)   gcc-4.3.tar.xz2. 解压缩到 /(Go into directory under which you want to put GFortran)  #/opt/gcc-4.3
  # xz -d gcc-4.3.tar.xz
  # tar xvf gcc-4.3.tar  (Unpack the package using tar xvfz gcc-trunk-x86_64.tar.gz, which unpacks it into the directory gcc-trunk. )3. 设置环境变量  # vim .profile
  (在文件的最后添加两行!)
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gcc-4.3/lib64
  export PATH=$PATH:/opt/gcc-4.3/bin  # source .profile    *  fortran 编译器位于         /opt/gcc-4.3/bin/gfortran
      执行过程需要的库文件位于     /opt/gcc-4.3/lib644. 检验
  # vim exma.f90program ABC
A=9.0
B=45
write(*,*) A*B
stop
end  # gfortran exma.f90 -o l123
  # ./l123如何开启SUSE Linux的SSH在Linux系统下驱动NVIDIA显卡及修改分辨率相关资讯      suse 
  • 你还记得那只可爱的小蜥蜴吗?没错  (10/26/2015 20:24:36)
  • SUSE Linux再次易主,母公司被上市  (09/16/2014 20:09:38)
  • SUSE:SLES统领全球TOP500操作系统  (08/12/2013 07:45:23)
  • 专访SUSE总裁Nils:让开源基因深入  (12/03/2014 18:44:03)
  • Linux选型:开源是趋势 红帽SUSE最  (03/19/2014 08:30:25)
  • SUSE在超级计算机领域占有领先地位  (08/06/2013 07:58:31)
本文评论 查看全部评论 (0)
表情: 姓名: 字数