Created
May 26, 2019 02:14
-
-
Save sironekotoro/25d4734d9e3ff3d8f6b6e8eac1577993 to your computer and use it in GitHub Desktop.
Perl入学式 2019 第5回
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curlコマンドでcpanminusプログラムをダウンロードし、cpanmという名前で保存する | |
$ curl -L cpanmin.us -o cpanm | |
# cpanmに実行権限をつける | |
$ chmod +x cpanm | |
# cpanmの -l(エル)オプションで、指定したディレクトリ(extlib)に指定したモジュール(local::lib)を | |
インストールする | |
$ .cpanm -l ~/extlib local::lib | |
# perlのモジュール検索パスを追加し(~/extlib/lib/perl5)、extlibにパスを通すための設定を表示 | |
# それをteeコマンドを利用して起動時のシェル設定ファイルにも書き込む | |
$ perl -I ~/extlib/lib/perl5 -Mlocal::lib=~/extlib | tee -a ~/.bash_profile | |
# シェルを再起動する | |
$ exec $SHELL -l | |
# MSYSのみ実行。Windowsでシンボリックリンクを利用することをMSYSに伝える | |
$ export MSYS=winsymlinks | |
# -n テストなしでMojoliciousをインストールする | |
$ ./cpanm -n Mojolicious |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment