当前位置: > CentOS > CentOS教程 >

centos安装g77编译器

时间:2016-06-04 17:04来源:linux.it.net.cn 作者:IT网

因为要编译AdNDP,但是centos默认没有安装g77编译器,使用ifort编译有问题,所以就把g77安装了。

如下:

[root@node01 log]# yum install *g77*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.btte.net
 * updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-gcc-34-g77.x86_64 0:3.4.6-19.el6 will be installed
--> Processing Dependency: compat-libf2c-34 = 3.4.6-19.el6 for package: compat-gcc-34-g77-3.4.6-19.el6.x86_64
--> Processing Dependency: compat-gcc-34 = 3.4.6-19.el6 for package: compat-gcc-34-g77-3.4.6-19.el6.x86_64
--> Processing Dependency: libg2c.so.0()(64bit) for package: compat-gcc-34-g77-3.4.6-19.el6.x86_64
--> Running transaction check
---> Package compat-gcc-34.x86_64 0:3.4.6-19.el6 will be installed
---> Package compat-libf2c-34.x86_64 0:3.4.6-19.el6 will be installed
--> Finished Dependency Resolution

http://linux.it.net.cn

Dependencies Resolved

==========================================================================================================================
 Package                             Arch                     Version                        Repository              Size
==========================================================================================================================
Installing:
 compat-gcc-34-g77                   x86_64                   3.4.6-19.el6                   base                   2.1 M
Installing for dependencies:
 compat-gcc-34                       x86_64                   3.4.6-19.el6                   base                   3.7 M
 compat-libf2c-34                    x86_64                   3.4.6-19.el6                   base                    51 k

Transaction Summary
==========================================================================================================================
Install       3 Package(s)

Total download size: 5.8 M
Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): compat-gcc-34-3.4.6-19.el6.x86_64.rpm                                                       | 3.7 MB     00:01     
(2/3): compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm                                                   | 2.1 MB     00:00     
(3/3): compat-libf2c-34-3.4.6-19.el6.x86_64.rpm                                                    |  51 kB     00:00     
--------------------------------------------------------------------------------------------------------------------------
Total                                                                                     872 kB/s | 5.8 MB     00:06     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows:
intel-icsxe-4.0.3p-028.noarch is a duplicate with intel-icsxe-4.0.2p-032.noarch
intel-icsxe-intel64-4.0.3p-028.x86_64 is a duplicate with intel-icsxe-intel64-4.0.2p-032.x86_64
intel-imb-3.2.4p-001.noarch is a duplicate with intel-imb-3.2.3p-001.noarch
intel-mpi-4.1.0p-024.noarch is a duplicate with intel-mpi-4.0.3p-008.noarch
intel-mpi-ia32-4.1.0p-024.i486 is a duplicate with intel-mpi-ia32-4.0.3p-008.i486
intel-mpi-intel64-4.1.0p-024.x86_64 is a duplicate with intel-mpi-intel64-4.0.3p-008.x86_64
intel-mpi-rt-4.1.0p-024.noarch is a duplicate with intel-mpi-rt-4.0.3p-008.noarch
intel-mpi-rt-ia32-4.1.0p-024.i486 is a duplicate with intel-mpi-rt-ia32-4.0.3p-008.i486
intel-mpi-rt-intel64-4.1.0p-024.x86_64 is a duplicate with intel-mpi-rt-intel64-4.0.3p-008.x86_64
intel-ta_em64t-8.1.0p-024.x86_64 is a duplicate with intel-ta_em64t-8.0.3p-007.x86_64
intel-tac_em64t-8.1.0p-024.x86_64 is a duplicate with intel-tac_em64t-8.0.3p-007.x86_64
intel-tatc_em64t-8.1.0p-024.x86_64 is a duplicate with intel-tatc_em64t-8.0.3p-007.x86_64
intel-tc_impi_em64t-8.1.0p-024.x86_64 is a duplicate with intel-tc_impi_em64t-8.0.3p-007.x86_64
  Installing : compat-gcc-34-3.4.6-19.el6.x86_64                                                                      1/3 
  Installing : compat-libf2c-34-3.4.6-19.el6.x86_64                                                                   2/3 
/sbin/ldconfig: /usr/lib/libstdc++-libc6.2-2.so.3 is not a symbolic link

  Installing : compat-gcc-34-g77-3.4.6-19.el6.x86_64                                                                  3/3 

Installed:
  compat-gcc-34-g77.x86_64 0:3.4.6-19.el6                                                                                 

Dependency Installed:
  compat-gcc-34.x86_64 0:3.4.6-19.el6                        compat-libf2c-34.x86_64 0:3.4.6-19.el6                       

Complete!
[root@node01 log]# g77 -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-19.el6)



(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容