CentOS7 に Perl環境を構築する

CentOS7 に Perl環境を構築する

2019-11-1612 min read

目次

  1. 概要
  2. 環境
  3. perlインストール

概要

Docker上のCentOS7 に Perl および 重要なrpm類を尾インストールしPerl環境を構築する。

環境

CentOS7\n\nPerl 5.16.3 (CentOS標準)

Perlインストール

パッケージを最新に更新する。

$ yum update

perl perl-core perl-local-libのrpmのインストールを行います。

$ yum install perl perl-core perl-local-lib

完了すると以下のモジュールがインストールされます

========================================================================================================================================================================================================
 Package                                                      Arch                                   Version                                              Repository                               Size
========================================================================================================================================================================================================
Installing:
 perl                                                         x86_64                                 4:5.16.3-294.el7_6                                   base                                    8.0 M
 perl-core                                                    x86_64                                 5.16.3-294.el7_6                                     base                                     43 k
 perl-local-lib                                               noarch                                 1.008010-4.el7                                       base                                     64 k
Installing for dependencies:
 gdbm-devel                                                   x86_64                                 1.10-8.el7                                           base                                     47 k
 glibc-devel                                                  x86_64                                 2.17-292.el7                                         base                                    1.1 M
 glibc-headers                                                x86_64                                 2.17-292.el7                                         base                                    687 k
 groff-base                                                   x86_64                                 1.22.2-8.el7                                         base                                    942 k
 kernel-headers                                               x86_64                                 3.10.0-1062.4.3.el7                                  updates                                 8.7 M
 libdb-devel                                                  x86_64                                 5.3.21-25.el7                                        base                                     39 k
 perl-Archive-Extract                                         noarch                                 1:0.68-3.el7                                         base                                     28 k
 perl-Archive-Tar                                             noarch                                 1.92-3.el7                                           base                                     73 k
 perl-B-Lint                                                  noarch                                 1.17-3.el7                                           base                                     20 k
 perl-CGI                                                     noarch                                 3.63-4.el7                                           base                                    250 k
 perl-CPAN                                                    noarch                                 1.9800-294.el7_6                                     base                                    293 k
 perl-CPAN-Meta                                               noarch                                 2.120921-5.el7                                       base                                    113 k
 perl-CPAN-Meta-Requirements                                  noarch                                 2.122-7.el7                                          base                                     24 k
 perl-CPAN-Meta-YAML                                          noarch                                 0.008-14.el7                                         base                                     24 k
 perl-CPANPLUS                                                noarch                                 0.91.38-4.el7                                        base                                    307 k
 perl-CPANPLUS-Dist-Build                                     noarch                                 0.70-3.el7                                           base                                     28 k
 perl-Carp                                                    noarch                                 1.26-244.el7                                         base                                     19 k
 perl-Compress-Raw-Bzip2                                      x86_64                                 2.061-3.el7                                          base                                     32 k
 perl-Compress-Raw-Zlib                                       x86_64                                 1:2.061-4.el7                                        base                                     57 k
 perl-DBD-SQLite                                              x86_64                                 1.39-3.el7                                           base                                    1.3 M
 perl-DBI                                                     x86_64                                 1.627-4.el7                                          base                                    802 k
 perl-DBIx-Simple                                             noarch                                 1.35-7.el7                                           base                                     43 k
 perl-DB_File                                                 x86_64                                 1.830-6.el7                                          base                                     74 k
 perl-Data-Dumper                                             x86_64                                 2.145-3.el7                                          base                                     47 k
 perl-Digest                                                  noarch                                 1.17-245.el7                                         base                                     23 k
 perl-Digest-MD5                                              x86_64                                 2.52-3.el7                                           base                                     30 k
 perl-Digest-SHA                                              x86_64                                 1:5.85-4.el7                                         base                                     58 k
 perl-Encode                                                  x86_64                                 2.51-7.el7                                           base                                    1.5 M
 perl-Env                                                     noarch                                 1.04-2.el7                                           base                                     16 k
 perl-Exporter                                                noarch                                 5.68-3.el7                                           base                                     28 k
 perl-ExtUtils-CBuilder                                       noarch                                 1:0.28.2.6-294.el7_6                                 base                                     68 k
 perl-ExtUtils-Embed                                          noarch                                 1.30-294.el7_6                                       base                                     50 k
 perl-ExtUtils-Install                                        noarch                                 1.58-294.el7_6                                       base                                     75 k
 perl-ExtUtils-MakeMaker                                      noarch                                 6.68-3.el7                                           base                                    275 k
 perl-ExtUtils-Manifest                                       noarch                                 1.61-244.el7                                         base                                     31 k
 perl-ExtUtils-ParseXS                                        noarch                                 1:3.18-3.el7                                         base                                     77 k
 perl-FCGI                                                    x86_64                                 1:0.74-8.el7                                         base                                     42 k
 perl-File-CheckTree                                          noarch                                 4.42-3.el7                                           base                                     18 k
 perl-File-Fetch                                              noarch                                 0.42-2.el7                                           base                                     27 k
 perl-File-Path                                               noarch                                 2.09-2.el7                                           base                                     26 k
 perl-File-Temp                                               noarch                                 0.23.01-3.el7                                        base                                     56 k
 perl-Filter                                                  x86_64                                 1.49-3.el7                                           base                                     76 k
 perl-Getopt-Long                                             noarch                                 2.40-3.el7                                           base                                     56 k
 perl-HTTP-Tiny                                               noarch                                 0.033-3.el7                                          base                                     38 k
 perl-IO-Compress                                             noarch                                 2.061-2.el7                                          base                                    260 k
 perl-IO-Zlib                                                 noarch                                 1:1.10-294.el7_6                                     base                                     52 k
 perl-IPC-Cmd                                                 noarch                                 1:0.80-4.el7                                         base                                     34 k
 perl-JSON-PP                                                 noarch                                 2.27202-2.el7                                        base                                     55 k
 perl-Locale-Codes                                            noarch                                 3.26-2.el7                                           base                                    314 k
 perl-Locale-Maketext                                         noarch                                 1.23-3.el7                                           base                                     93 k
 perl-Locale-Maketext-Simple                                  noarch                                 1:0.21-294.el7_6                                     base                                     50 k
 perl-Log-Message                                             noarch                                 1:0.08-3.el7                                         base                                     29 k
 perl-Log-Message-Simple                                      noarch                                 0.10-2.el7                                           base                                     11 k
 perl-Module-Build                                            noarch                                 2:0.40.05-2.el7                                      base                                    281 k
 perl-Module-CoreList                                         noarch                                 1:2.76.02-294.el7_6                                  base                                     86 k
 perl-Module-Load                                             noarch                                 1:0.24-3.el7                                         base                                     11 k
 perl-Module-Load-Conditional                                 noarch                                 0.54-3.el7                                           base                                     18 k
 perl-Module-Loaded                                           noarch                                 1:0.08-294.el7_6                                     base                                     46 k
 perl-Module-Metadata                                         noarch                                 1.000018-2.el7                                       base                                     26 k
 perl-Module-Pluggable                                        noarch                                 1:4.8-3.el7                                          base                                     29 k
 perl-Net-Daemon                                              noarch                                 0.48-5.el7                                           base                                     51 k
 perl-Object-Accessor                                         noarch                                 1:0.42-294.el7_6                                     base                                     56 k
 perl-Package-Constants                                       noarch                                 1:0.02-294.el7_6                                     base                                     46 k
 perl-Params-Check                                            noarch                                 1:0.38-2.el7                                         base                                     18 k
 perl-Parse-CPAN-Meta                                         noarch                                 1:1.4404-5.el7                                       base                                     14 k
 perl-PathTools                                               x86_64                                 3.40-5.el7                                           base                                     82 k
 perl-Perl-OSType                                             noarch                                 1.003-3.el7                                          base                                     20 k
 perl-PlRPC                                                   noarch                                 0.2020-14.el7                                        base                                     36 k
 perl-Pod-Checker                                             noarch                                 1.60-2.el7                                           base                                     28 k
 perl-Pod-Escapes                                             noarch                                 1:1.04-294.el7_6                                     base                                     51 k
 perl-Pod-LaTeX                                               noarch                                 0.61-2.el7                                           base                                     35 k
 perl-Pod-Parser                                              noarch                                 1.61-2.el7                                           base                                    107 k
 perl-Pod-Perldoc                                             noarch                                 3.20-4.el7                                           base                                     87 k
 perl-Pod-Simple                                              noarch                                 1:3.28-4.el7                                         base                                    216 k
 perl-Pod-Usage                                               noarch                                 1.63-3.el7                                           base                                     27 k
 perl-Scalar-List-Utils                                       x86_64                                 1.27-248.el7                                         base                                     36 k
 perl-Socket                                                  x86_64                                 2.010-4.el7                                          base                                     49 k
 perl-Storable                                                x86_64                                 2.45-3.el7                                           base                                     77 k
 perl-Sys-Syslog                                              x86_64                                 0.33-3.el7                                           base                                     42 k
 perl-Term-UI                                                 noarch                                 0.36-2.el7                                           base                                     22 k
 perl-Test-Harness                                            noarch                                 3.28-3.el7                                           base                                    302 k
 perl-Test-Simple                                             noarch                                 0.98-243.el7                                         base                                    170 k
 perl-Text-ParseWords                                         noarch                                 3.29-4.el7                                           base                                     14 k
 perl-Text-Soundex                                            x86_64                                 3.04-4.el7                                           base                                     19 k
 perl-Text-Unidecode                                          noarch                                 0.04-20.el7                                          base                                    114 k
 perl-Thread-Queue                                            noarch                                 3.02-2.el7                                           base                                     17 k
 perl-Time-HiRes                                              x86_64                                 4:1.9725-3.el7                                       base                                     45 k
 perl-Time-Local                                              noarch                                 1.2300-2.el7                                         base                                     24 k
 perl-Time-Piece                                              x86_64                                 1.20.1-294.el7_6                                     base                                     69 k
 perl-Version-Requirements                                    noarch                                 0.101022-244.el7                                     base                                     21 k
 perl-autodie                                                 noarch                                 2.16-2.el7                                           base                                     77 k
 perl-constant                                                noarch                                 1.27-2.el7                                           base                                     19 k
 perl-devel                                                   x86_64                                 4:5.16.3-294.el7_6                                   base                                    453 k
 perl-libs                                                    x86_64                                 4:5.16.3-294.el7_6                                   base                                    688 k
 perl-macros                                                  x86_64                                 4:5.16.3-294.el7_6                                   base                                     44 k
 perl-parent                                                  noarch                                 1:0.225-244.el7                                      base                                     12 k
 perl-podlators                                               noarch                                 2.5.1-3.el7                                          base                                    112 k
 perl-threads                                                 x86_64                                 1.87-4.el7                                           base                                     49 k
 perl-threads-shared                                          x86_64                                 1.43-6.el7                                           base                                     39 k
 perl-version                                                 x86_64                                 3:0.99.07-3.el7                                      base                                     84 k
 pyparsing                                                    noarch                                 1.5.6-9.el7                                          base                                     94 k
 systemtap-sdt-devel                                          x86_64                                 4.0-10.el7_7                                         updates                                  76 k

Transaction Summary
========================================================================================================================================================================================================
Install  3 Packages (+102 Dependent packages)

インストールが完了するとPerlが利用できるようになります。

$ perl --version

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

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.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Tags
javascript(110)
node.js(54)
linux(54)
amazon%20aws(47)
typescript(45)
%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0(36)
%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86(30)
html5(29)
php(24)
centos(24)
python(22)
%E7%AB%B6%E6%8A%80%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0(21)
mac(21)
mysql(20)
canvas(19)
opencv(17)
%E9%9B%91%E8%AB%87(16)
docker(16)
wordpress(15)
atcoder(14)
apache(12)
%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92(12)
%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9(12)
amazon%20s3(12)
red%20hat(12)
prisma(12)
ubuntu(11)
github(10)
git(10)
vue.js(10)
%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86100%E6%9C%AC%E3%83%8E%E3%83%83%E3%82%AF(10)
mariadb(10)
react(9)
aws%20cdk(9)
css3(8)
%E5%8F%AF%E8%A6%96%E5%8C%96(8)
%E5%B0%8F%E3%83%8D%E3%82%BF(8)
nestjs(8)
amazon%20lightsail(7)
next.js(7)
%E3%83%96%E3%83%AD%E3%82%B0(6)
cms(6)
oracle(6)
perl(6)
gitlab(6)
iam(5)
amazon%20ec2(5)
%E8%B3%87%E6%A0%BC%E8%A9%A6%E9%A8%93(5)
aws%20amplify(5)
curl(4)
Author
githubzennqiita
ただの備忘録です。

※外部送信に関する公表事項