差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:perl [2019/01/17 11:59] – [ソースの入手] ともやん | linux:perl [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== perl のビルドとインストール ====== | ====== perl のビルドとインストール ====== | ||
| - | ===== ソースの入手 ===== | + | ===== バイナリの入手 ===== |
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| < | < | ||
| - | $ curl -O -k https:// | + | $ curl -O https:// |
| </ | </ | ||
| - | ※-k オプションで SSL サイトへの接続を許可しないと以下のエラーになる。 | + | </ |
| + | |||
| + | ===== バイナリパッケージのインストール ===== | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ tar zxvf ActivePerl-5.26.3.2603-x86_64-linux-glibc-2.15-a701e55e0.tar.gz | ||
| + | $ cd ActivePerl-5.26.3.2603-x86_64-linux-glibc-2.15-a701e55e0 | ||
| + | $ sudo sh install.sh | ||
| + | </ | ||
| + | < | ||
| + | Checking package...done | ||
| + | |||
| + | Welcome to ActivePerl | ||
| + | |||
| + | ActivePerl is ActiveState' | ||
| + | Perl. In order to install ActivePerl you need to agree to | ||
| + | the ACTIVESTATE® COMMUNITY EDITION LICENSE AGREEMENT. | ||
| + | |||
| + | Did you read the LICENSE.txt file? [no] yes <- yes を入力して Enter | ||
| + | Do you agree to the ACTIVESTATE® COMMUNITY EDITION LICENSE AGREEMENT? [no] yes <- yes を入力して Enter | ||
| + | |||
| + | This installer can install ActivePerl in any location of your | ||
| + | choice. You do not need root privileges. | ||
| + | that you have write access to this location. | ||
| + | |||
| + | Enter top level directory for install? [/ | ||
| + | |||
| + | The ActivePerl documentation is available in HTML format. | ||
| + | it will be available from file:/// | ||
| + | If not installed you will still be able to read all the basic perl and | ||
| + | module documentation using the man or perldoc utilities. | ||
| + | |||
| + | Install HTML documentation [yes] <- Enter を入力 | ||
| + | Ok. | ||
| + | |||
| + | The typical ActivePerl software installation requires 200 megabytes. | ||
| + | Please make sure enough free space is available before continuing. | ||
| + | |||
| + | Proceed? [yes] <- Enter を入力 | ||
| + | Ok. | ||
| + | |||
| + | Installing ActivePerl... | ||
| + | Copying files to / | ||
| + | Relocating...done (287 files relocated) | ||
| + | Generating HTML documentation...done | ||
| + | Syncing perl PPM database with .packlists...done | ||
| + | |||
| + | ActivePerl has been successfully installed at / | ||
| + | |||
| + | Please modify your startup environment by adding: | ||
| + | |||
| + | / | ||
| + | / | ||
| + | |||
| + | For general questions or comments about ActivePerl, please | ||
| + | contact us at < | ||
| + | |||
| + | Thank you for using ActivePerl! | ||
| + | |||
| + | Do you want to download a free trial of Komodo IDE? [Y/n] n <- n を入力 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 無理矢理システムの perl を置き換える。 | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ cd /usr/bin | ||
| + | $ sudo mv perl perl.org | ||
| + | $ sudo ln -s / | ||
| + | $ 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:// | ||
| + | </ | ||
| + | |||
| + | ===== ソースの入手 ===== | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| - | curl: (60) Peer certificate cannot be authenticated with given CA certificates | + | $ curl -O http:// |
| </ | </ | ||
| </ | </ | ||
| 行 208: | 行 316: | ||
| $ sudo yum-builddep ~/ | $ sudo yum-builddep ~/ | ||
| </ | </ | ||
| - | |||