Vertica环境安装R-Lang包提示缺少libgfortran.so.1

时间:2023-03-09 01:36:05
Vertica环境安装R-Lang包提示缺少libgfortran.so.1

环境:RHEL 6.4 + Vertica 7.0.0-1
1.最终确认安装compat-libgfortran-41-4.1.2-39.el6.x86_64.rpm即可解决.

# rpm -ivh vertica-R-lang-7.0.-.x86_64.RHEL5.rpm
error: Failed dependencies:
/usr/lib64/libgfortran.so. is needed by vertica-R-lang-7.0.-.x86_64
# rpm -ivh compat-libgfortran--4.1.-.el6.x86_64.rpm
warning: compat-libgfortran--4.1.-.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [%]
:compat-libgfortran- ########################################### [%]
# rpm -ivh vertica-R-lang-7.0.-.x86_64.RHEL5.rpm
Preparing... ########################################### [%]
:vertica-R-lang ########################################### [%] The Vertica R language package has been successfully installed on host vertica1

2.实际解决过程:

# rpm -ivh vertica-R-lang-7.0.-.x86_64.RHEL5.rpm
error: Failed dependencies:
/usr/lib64/libgfortran.so. is needed by vertica-R-lang-7.0.-.x86_64
# ls -lh /usr/lib64 |grep libgfortran
lrwxrwxrwx. root root 3月 libgfortran.so. -> libgfortran.so.3.0.
-rwxr-xr-x. root root 965K 10月 libgfortran.so.3.0. # rpm -qa libgfortran
libgfortran-4.4.-.el6.x86_64 # yum install compat-libgfortran-
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libgfortran-.x86_64 :4.1.-.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
compat-libgfortran- x86_64 4.1.-.el6 ISO k Transaction Summary
============================================================================================================================================================
Install Package(s) Total download size: k
Installed size: k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : compat-libgfortran--4.1.-.el6.x86_64 /
Verifying : compat-libgfortran--4.1.-.el6.x86_64 / Installed:
compat-libgfortran-.x86_64 :4.1.-.el6 Complete!
# rpm -qa|grep libgfor
libgfortran-4.4.-.el6.x86_64
compat-libgfortran--4.1.-.el6.x86_64 # rpm -ivh vertica-R-lang-7.0.-.x86_64.RHEL5.rpm
Preparing... ########################################### [%]
:vertica-R-lang ########################################### [%] The Vertica R language package has been successfully installed on host vertica2 # ls -lh /usr/lib64/ |grep libgfortran
lrwxrwxrwx root root 10月 : libgfortran.so. -> libgfortran.so.1.0.
-rwxr-xr-x root root 820K 6月 libgfortran.so.1.0.
lrwxrwxrwx. root root 3月 libgfortran.so. -> libgfortran.so.3.0.
-rwxr-xr-x. root root 965K 10月 libgfortran.so.3.0.