差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
linux:perl [2019/01/17 10:01] – [ソースパッケージのインストール] ともやん | linux:perl [2019/01/17 13:03] – [perl 戻し方] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== perl のビルドとインストール ====== | ====== perl のビルドとインストール ====== | ||
- | ===== ソースの入手 ===== | + | ===== バイナリの入手 ===== |
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
< | < | ||
- | $ curl -O http://rpmfind.net/linux/fedora/linux/development/ | + | $ curl -O https://downloads.activestate.com/ActivePerl/releases/5.26.3.2603/ActivePerl-5.26.3.2603-x86_64-linux-glibc-2.15-a701e55e0.tar.gz |
</ | </ | ||
</ | </ | ||
- | ===== ソースパッケージのインストール ===== | + | ===== バイナリパッケージのインストール ===== |
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
< | < | ||
- | $ rpm -ivh perl-5.28.1-430.fc30.x86_64.rpm | + | $ tar zxvf ActivePerl-5.26.3.2603-x86_64-linux-glibc-2.15-a701e55e0.tar.gz |
- | 警告: perl-5.28.1-430.fc30.x86_64.rpm: ヘッダー V3 RSA/SHA256 Signature、鍵 ID cfc659b9: NOKEY | + | $ cd ActivePerl-5.26.3.2603-x86_64-linux-glibc-2.15-a701e55e0 |
- | エラー: 依存性の欠如: | + | $ sudo sh install.sh |
- | perl(: | + | </ |
- | perl-Archive-Tar は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | < |
- | perl-Attribute-Handlers は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Checking package...done |
- | perl-B-Debug は perl-4: | + | |
- | perl-CPAN は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Welcome to ActivePerl |
- | perl-CPAN-Meta は perl-4: | + | |
- | perl-CPAN-Meta-Requirements は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-CPAN-Meta-YAML は perl-4: | + | Perl. In order to install ActivePerl you need to agree to |
- | perl-Carp は perl-4: | + | the ACTIVESTATE® COMMUNITY EDITION LICENSE AGREEMENT. |
- | perl-Config-Perl-V は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-DB_File は perl-4: | + | Did you read the LICENSE.txt file? [no] yes <- yes を入力して Enter |
- | perl-Data-Dumper は perl-4: | + | Do you agree to the ACTIVESTATE® COMMUNITY EDITION LICENSE AGREEMENT? [no] yes <- yes を入力して Enter |
- | perl-Devel-PPPort は perl-4: | + | |
- | perl-Devel-Peek は perl-4: | + | This installer can install ActivePerl in any location of your |
- | perl-Devel-SelfStubber は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Digest は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | that you have write access to this location. |
- | perl-Digest-MD5 は perl-4: | + | |
- | perl-Digest-SHA は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Enter top level directory for install? [/ |
- | perl-Encode は perl-4: | + | |
- | perl-Encode-devel は perl-4: | + | The ActivePerl documentation is available in HTML format. If installed |
- | perl-Env は perl-4: | + | it will be available from file:/// |
- | perl-Errno は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | If not installed you will still be able to read all the basic perl and |
- | perl-Exporter は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-ExtUtils-CBuilder は perl-4: | + | |
- | perl-ExtUtils-Command は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Install HTML documentation [yes] <- Enter を入力 |
- | perl-ExtUtils-Embed は perl-4: | + | Ok. |
- | perl-ExtUtils-Install は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-ExtUtils-MakeMaker は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | The typical ActivePerl software installation requires 200 megabytes. |
- | perl-ExtUtils-Manifest は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-ExtUtils-Miniperl は perl-4: | + | |
- | perl-ExtUtils-ParseXS は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Proceed? [yes] <- Enter を入力 |
- | perl-File-Fetch は perl-4: | + | Ok. |
- | perl-File-Path は perl-4: | + | |
- | perl-Filter は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Installing ActivePerl... |
- | perl-Filter-Simple は perl-4: | + | Copying files to / |
- | perl-Getopt-Long は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Relocating...done (287 files relocated) |
- | perl-HTTP-Tiny は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Generating HTML documentation...done |
- | perl-IO は perl-4: | + | Syncing |
- | perl-IO-Socket-IP は perl-4: | + | |
- | perl-IO-Zlib は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | ActivePerl has been successfully installed at / |
- | perl-IPC-Cmd は perl-4: | + | |
- | perl-IPC-SysV は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Please modify your startup environment by adding: |
- | perl-JSON-PP は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Locale-Maketext は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | / |
- | perl-Locale-Maketext-Simple は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | / |
- | perl-MIME-Base64 は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Math-BigInt は perl-4: | + | For general questions or comments about ActivePerl, please |
- | perl-Math-BigInt-FastCalc は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | contact us at < |
- | perl-Math-BigRat は perl-4: | + | |
- | perl-Math-Complex は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Thank you for using ActivePerl! |
- | perl-Memoize は perl-4: | + | |
- | perl-Module-CoreList は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | Do you want to download a free trial of Komodo IDE? [Y/n] n <- n を入力 |
- | perl-Module-CoreList-tools は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Module-Load は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Module-Load-Conditional は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Module-Loaded は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Module-Metadata は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-Net-Ping は perl-4: | + | |
- | perl-Params-Check は perl-4: | + | |
- | perl-Perl-OSType は perl-4:5.28.1-430.fc30.x86_64 に必要とされています | + | |
- | perl-PerlIO-via-QuotedPrint は perl-4: | + | |
- | perl-Pod-Checker は perl-4: | + | |
- | perl-Pod-Html は perl-4: | + | |
- | perl-Pod-Parser は perl-4: | + | |
- | perl-Pod-Perldoc は perl-4: | + | |
- | perl-Pod-Usage は perl-4: | + | |
- | perl-SelfLoader は perl-4: | + | |
- | perl-Storable は perl-4: | + | |
- | perl-Sys-Syslog は perl-4: | + | |
- | perl-Term-ANSIColor は perl-4: | + | |
- | perl-Term-Cap は perl-4: | + | |
- | perl-Test は perl-4: | + | |
- | perl-Test-Harness は perl-4: | + | |
- | perl-Test-Simple は perl-4: | + | |
- | perl-Text-Balanced は perl-4: | + | |
- | perl-Text-ParseWords は perl-4: | + | |
- | perl-Text-Tabs+Wrap は perl-4: | + | |
- | perl-Thread-Queue は perl-4: | + | |
- | perl-Time-HiRes は perl-4: | + | |
- | perl-Time-Local は perl-4: | + | |
- | perl-Time-Piece は perl-4: | + | |
- | perl-Unicode-Collate は perl-4: | + | |
- | perl-Unicode-Normalize は perl-4: | + | |
- | perl-autodie は perl-4: | + | |
- | perl-bignum は perl-4: | + | |
- | perl-constant は perl-4: | + | |
- | perl-devel(x86-64) = 4: | + | |
- | perl-encoding は perl-4: | + | |
- | perl-experimental は perl-4: | + | |
- | perl-interpreter(x86-64) = 4: | + | |
- | perl-libnet は perl-4: | + | |
- | perl-libnetcfg は perl-4: | + | |
- | perl-libs(x86-64) = 4: | + | |
- | perl-open は perl-4: | + | |
- | perl-parent は perl-4: | + | |
- | perl-perlfaq は perl-4: | + | |
- | perl-podlators は perl-4: | + | |
- | perl-utils は perl-4: | + | |
</ | </ | ||
</ | </ | ||
- | ===== ビルドに必要なパッケージのインストール ===== | + | 無理矢理システムの perl を置き換える。 |
+ | <WRAP prewrap 100%> | ||
< | < | ||
- | $ sudo yum-builddep ~/rpmbuild/SPECS/perl.spec | + | $ cd /usr/bin |
+ | $ sudo mv perl perl.org | ||
+ | $ sudo ln -s /opt/ActivePerl-5.26/ | ||
+ | $ perl -v | ||
+ | |||
+ | This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi | ||
+ | (with 2 registered patches, see perl -V for more detail) | ||
+ | |||
+ | Copyright 1987-2018, Larry Wall | ||
+ | |||
+ | Binary build 2603 [a701e55e0] provided by ActiveState http:// | ||
+ | Built Dec 17 2018 10:07:49 | ||
+ | |||
+ | 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 " | ||
+ | Internet, point your browser at http:// | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 元の perl への戻し方 ===== | ||
+ | < | ||
+ | $ cd /usr/bin | ||
+ | $ sudo rm perl | ||
+ | $ sudo mv perl.org perl | ||
+ | $ perl -v | ||
+ | |||
+ | This is perl 5, version 14, subversion 3 (v5.14.3) built for x86_64-linux-thread-multi | ||
+ | |||
+ | 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 " | ||
+ | Internet, point your browser at http:// | ||
</ | </ | ||