LoginSignup
21
21

More than 5 years have passed since last update.

cpan, cpanmのproxy設定方法

Posted at

cpanの場合

~/.cpan/CPAN/MyConfig.pmのhttp_proxyに値を設定する。

設定例
'http_proxy' => q[http://http.proxy.jp:8080/],

cpanの対話モードでも設定可能

cpan起動後の設定例
[cpan] > o conf http_proxy       # 現在の設定表示
[cpan] > o conf htt_proxy unshift "http://http.proxy.jp:8080"
[cpan] > o conf commit           # 設定をファイルに書き込み

cpanmの場合

環境変数http_proxyに設定

設定例
$ export http_proxy="http://http.proxy.jp:8080/"

あとは、通常通りcpanmを使用する。

21
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
21