φ(.. ) 備忘録
amazonアソシエイト

2013年12月13日金曜日

perlのcpan設定

cygwinのperl環境を整えている。最近、台湾のcpanサイトがつながらないせいで、cpanコマンドが失敗する。この際、cpanのサイトを変えることにした。google先生に教えてもらって、以下をすれば変更できることがわかった。
  1. Cygwinターミナル起動
  2. cpan
  3. cpan[1]> o conf urllist →これで今設定されているurlのリストが見える
        urllist
            0 [http://cpan.cs.pu.edu.tw/]
    Type 'o conf' to view all configuration items
    1. cpan[2]> o conf urllist pop →これで削除
    Please use 'o conf commit' to make the config permanent!
    1. cpan[3]> o conf urllist →消えたか確認
        urllist
    Type 'o conf' to view all configuration items
    1. cpan[4]> o conf urllist push http://ftp.jaist.ac.jp/pub/CPAN/ →サイト追加
    Please use 'o conf commit' to make the config permanent!
    1. cpan[5]> o conf urllist →追加できたか確認
        urllist
            0 [http://ftp.jaist.ac.jp/pub/CPAN/]
    Type 'o conf' to view all configuration items
    1. cpan[6]> o conf commit →設定保存
    2. cpan[7]> q →終了
    日本には、ほかにもcpanサイトがあるので、追加してもよいかも。
    Perl CPANモジュールガイド
    冨田尚樹
    ワークスコーポレーション
    売り上げランキング: 125,210

    0 件のコメント :

    コメントを投稿