linux - 无法在 RHEL 7.6 中将 Perl 5.8 升级到 5.16
问题描述
6 并且无法从 5.8.9 升级我的机器。当我使用 yum install perl 安装时,它说安装成功,但是当我检查版本时它仍然是旧版本。我需要版本为 5.10 或更高版本。以下是详细信息:
bash$ cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
bash$
bash$ yum info perl
Name : perl
Arch : x86_64
Epoch : 4
Version : 5.16.3
Release : 294.el7_6
Size : 22 M
Repo : installed
From repo : rhel-7-server-rpms
Summary : Practical Extraction and Report Language
URL : http://www.perl.org/
bash$ perl -v
This is perl, v5.8.9 built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2008, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
bash$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/a
bash$ whereis perl
perl: /usr/bin/perl /usr/local/bin/perl5.6 /usr/local/bin/perl5.8 /usr/local/bin/perl /auto/usrcisco-linux-rhel7.0-x86-64/packages/perl/perl-5.8.9/bin/perl /usr/share/man/man1/perl.1.gz
解决方案:
bash$ whereis perl5.16.3
perl5.16: /usr/bin/perl5.16.3
bash$ ll | grep -i perl
lrwxrwxrwx. 1 root root 19 Jul 2 2019 perl -> /usr/ravi/bin/perl
bash$ sudo ln -s -f /usr/bin/perl5.16.3 perl
bash$
bash$ ll | grep -i perl
lrwxrwxrwx 1 root root 19 Feb 22 17:49 perl -> /usr/bin/perl5.16.3
bash$ perl --version
perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 39 registered patches, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
提前感谢您的任何意见
解决方案
bash$ whereis perl5.16.3
perl5.16: /usr/bin/perl5.16.3
bash$ ll | grep -i perl
lrwxrwxrwx. 1 root root 19 Jul 2 2019 perl -> /usr/ravi/bin/perl
bash$ sudo ln -s -f /usr/bin/perl5.16.3 /usr/bin/perl
bash$
bash$ ll | grep -i perl
lrwxrwxrwx 1 root root 19 Feb 22 17:49 perl -> /usr/bin/perl5.16.3
bash$ perl --version
perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 39 registered patches, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
推荐阅读
- python - 等待两个元素之一出现使用 By.XPATH,'//*[contains(text(),
- python - 使用函数的返回值更新 pandas 数据框中的空单元格
- mysql-error-1064 - 仅转储满足特定条件的行,例如限制 1000
- python - 如何使用python将表格从一个excel复制到另一个
- java - 如何避免 Java 代码中的 Nan 输出?
- reactjs - BrowserRouter在历史中“返回”时显示空白页面
- firebase - 在 React Native 中安装 Firebase
- dpdk - DPDK 链接给出未定义的符号:rte_cpu_get_flag_enabled
- content-management-system - 在 webtop 6.8.2 中,我导入了 documentum,其中文件夹 r_object_type 与实际必须是不匹配的
- python - Pylint:__init__ [abstract-method] vs [useless-super-delegation] 警告