Walrus,Digit. | 一覧 | 検索 | 更新履歴(RSS) | 新規作成
はてなブックマークに追加 はてなブックマークを表示 編集 | 編集(管理者用) | 差分

Perlメモ/モジュールのインストール(CPAN)

編集

ActivePerl+CPANによるモジュールインストール方法。

Perlではモジュールを入手するのに、標準的にCPANモジュールが使われています。 しかし、残念ながらWindowsでは、標準ではmakeやCコンパイラがインストールされていないなど、CPANを使うのに一ひねり必要です。 このページは、こうしたWindowsでCPANモジュールを使うための情報を扱うページです。←現在は,ActivePerl導入後,初めてcpanを起動すると,gcc等が自動的に導入され,使えるようになります。cpanの敷居はかなり下がりました(ただしこれでppmが不要になるわけでないです。LinuxのPerlと同じスタートラインに立っただけ。Linuxのcpanでエラーが起きることがあるように,ActivePerlのcpanでもエラーは起きる。)。

CPANに何か問題があれば、PPMも試してみてください。 PPMはActivePerl独自のツールで、特別な設定が不要でコンパイラ等の外部アプリケーションが不要など、CPANよりも簡単に扱えます。 PPMについては、Perlメモ/モジュールのインストール(PPM)にまとめてあります。


CPANモジュールの概要

編集

CPANでは多くのモジュールを入手することができます。 このCPANを簡単に活用するためのモジュールがCPANモジュールです。

CPANモジュールの準備

CPANモジュールを使用するには、以下の準備が必要です。

CPANモジュールはmakeやtar、gzipコマンドを使えることを前提にしていますし、いくつかのモジュールをインストールするには、Cコンパイラも必要です。 ところが、Windowsにはこれらが標準ではインストールされていません。

幸い、tar、gzipには無料で利用できるものがあります。また、make互換のアプリケーションやCコンパイラについても、Visual C++ Express Editionが無料で利用できるようになりました。これらを使って、CPANモジュールを利用できる環境を構築できます。

関連アプリケーションのインストール

tarとgzip

下のアーカイブに入っているものを使うと良いでしょう。

http://www.ring.gr.jp/pub/text/TeX/ptex-win32/current/texinst756.zip

texinstは頻繁に更新されています。 上のものがリンク切れの時には、以下からtexinstXXX.zipを探してみてください。

http://www.ring.gr.jp/pub/text/TeX/ptex-win32/current/

(匿名希望さん、リンクの修正Thnx!)

makeとCコンパイラ

Windowsで使えるmakeやCコンパイラといった開発キットに、マイクロソフト社のVisual C++があります。 Visual C++を含むVisual Studio Express Editionsが無償配布されるようになりましたので、これを使うと良いでしょう。以下からインストールします。

IDEやSQL Server込みで1GB、これら抜きで300MB超になります。ここではこれらを含むフルセットをインストールしましたが、最低限のセットでもCPANでの利用には差し支えないと思います(確認した方がいらっしゃいましたら、ぜひお知らせください)。 インストール時点では30日の期限付きとなりますが、インストーラの指示に従って利用者登録をすれば無期限に使用できるようになりますので、ここで利用者登録まで済ませておくと良いでしょう。

インストールが終わったら、"cl.exe"、"nmake.exe"などのあるディレクトリにパスを通します。 ここではデフォルト指定のままインストールしており、次のディレクトリになりました。

C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 8\VC\BIN\

ただし、パスを通す時は、空白を含まないようにした方が無難です(実際に、いくつかのモジュールが、パスに空白が含まれていることでインストールに失敗しました)。以下のようにして、空白を含むディレクトリを、MS-DOS形式での短い表記にしたパスを調べておきます。

C:\>dir /x
 :
2006/04/24  21:38    <DIR>          PROGRA~1     Program Files
 :
C:\>cd PROGRA~1
C:\PROGRA~1>dir /x
 :
2006/04/24  21:31    <DIR>          MID05A~1     Microsoft Visual Studio 8
 :
C:\PROGRA~1>cd MID05A~1
C:\PROGRA~1\MID05A~1>cd VC\bin
C:\PROGRA~1\MID05A~1\VC\bin>dir
 :
2005/09/23  06:04           117,432 cl.exe
2005/09/23  06:04            82,616 nmake.exe
 :

これで、nmakeなどのあるディレクトリは"C:\PROGRA~1\MID05A~1\VC\bin"と記述しても良いことが分かりましたので、これを環境変数PATHに追加します。手順は以下の通りです。

  • スタートメニューから、「コントロールパネル」を開きます。
  • コントロールパネルから、「システム」を起動します。
  • 「詳細設定」タブを開き、「環境変数」を起動します。
  • 「システム環境変数」の「Path」を選択し、「編集」を起動します。
  • 変数値の最初に、nmakeなどのあるディレクトリと";"を追加します(上の例では"C:\PROGRA~1\MID05A~1\VC\bin;"を追加します)。

以上で、makeやCコンパイラのインストールは完了です。


なお、Cコンパイラを必要とするモジュールをインストールしないのであれば、nmakeだけを用意することもできます。 nmakeは、perlwin32faq9に書かれているように、単体でも以下のURLから取得できます。

Nmake15.exeは自己解凍形式の圧縮ファイルで、実行するとNMAKE.EXE、NMAKE.ERR、README.TXTの3ファイルが展開されます。このうち、NMAKE.EXE、NMAKE.ERRを、実行パスの通ったディレクトリにおいてください。適切なディレクトリを用意してパスを通してやると後のとり回しが良いのですが、Perlの実行ファイルのあるディレクトリ(C:\Perl\binなど)においても動作します。

CPANモジュールの設定と実行

いくつか、分かっていることとわかっていないことがあります。 以下に分かっている範囲でのポイントを挙げます。

これ以外の設定は、実施者の任意で構いません。 私が意識して行った設定は以下のものです。

設定を行うと、CPANによるモジュールのインストールが可能になります。 モジュールは、"Perlをインストールしたディレクトリ/site/lib/"以下にインストールされます。

CPANモジュールの設定例

以下は私が行ったCPANモジュールの設定の流れです。

CPANシェルの初回起動時には、マニュアルでのコンフィギュレーション(設定)が行われます。 設定項目が多く(しかもCPANモジュールのバージョンごとにちょっとずつ違い)、大変そうに見えますが、ほとんどの質問にはそのままEnter(デフォルト値を採用)で進めれば済みます。やってみればたいしたことがないので、ご心配なく、さっさと済ませてしまいましょう。

まず起動から。

C:\>perl -MCPAN -e shell

C:\Perl\lib\CPAN\Config.pm initialized.

CPAN is the world-wide archive of perl resources. It consists of about 100 sites
that all replicate the same contents all around the globe. Many countries have at
least one CPAN site already. The resources found on CPAN are easily accessible
with the CPAN.pm module. If you want to use CPAN.pm, you have to configure it
properly.

If you do not want to enter a dialog now, you can answer 'no' to this question
and I'll try to autoconfigure. (Note: you can revisit this dialog anytime later
by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes]

ここでマニュアル・コンフィギュレーションをはじめて良いか聞かれています。問い合わせの最後に"[yes]"とあるのは、特に何も入力せずにEnterすれば"yes"になりますよ、ということです。そのままEnterで良いでしょう。

The following questions are intended to help you with the configuration. The CPAN
module needs a directory of its own to cache important index files and maybe keep
a temporary mirror of CPAN files. This may be a site-wide directory or a personal
directory.
I see you already have a  directory

    \.cpan

Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [\.cpan]

If you want, I can keep the source files after a build in the cpan home directory.
If you choose so then future builds will take the files from there. If you don't
want to keep them, answer 0 to the next question.

How big should the disk cache be for keeping the build directories with all the
intermediate files?

Cache size for build directory (in MB)? [10]

By default, each time the CPAN module is started, cache scanning is performed to
keep the cache size in sync. To prevent from this, disable the cache scanning
with 'never'.

Perform cache scanning (atstart or never)? [atstart]

To considerably speed up the initial CPAN shell startup, it is possible to use
Storable to create a cache of metadata. If Storable is not available, the normal
index mechanism will be used.

Cache metadata (yes/no)? [yes]

The next option deals with the charset your terminal supports. In general CPAN is
English speaking territory, thus the charset does not matter much, but some of the
aliens out there who upload their software to CPAN bear names that are outside the
ASCII range. If your terminal supports UTF-8, you say no to the next question, if
it supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it supports
neither nor, your answer does not matter, you will not be able to read the names
of some authors anyway. If you answer no, names will be output in UTF-8.

Your terminal expects ISO-8859-1 (yes/no)? [yes]

If you have one of the readline packages (Term::ReadLine::Perl, Term::ReadLine::Gnu,
possibly others) installed, the interactive CPAN shell will have history support.
The next two questions deal with the filename of the history file and with its size.
If you do not want to set this variable, please hit SPACE RETURN to the following
question.

File to save your history? [\.cpan\histfile]
Number of lines to save? [100]

The CPAN module can detect when a module that which you are trying to build depends
on prerequisites. If this happens, it can build the prerequisites for you automatically
('follow'), ask you for confirmation ('ask'), or just ignore them ('ignore'). Please
set your policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask]

この辺りまで、デフォルトで進めてよいと思います。 ちなみに、最後の質問で聞かれているのは、あるモジュールをインストールする時に前提モジュールがあったらどうするか、ということです。ここではデフォルトの"ask"(都度問い合わせ)としましたが、自動的にインストールしてよい、という時は、"follow"と入力します。

The CPAN module will need a few external programs to work properly. Please correct
me, if I guess the wrong path for a program. Don't panic if you do not have some of
them, just press ENTER for those. To disable the use of a download program, you can
type a space followed by ENTER.

Where is your gzip program? [C:\usr\bin\gzip.EXE]
Where is your tar program? [C:\usr\bin\tar.EXE]
Where is your unzip program? []
Where is your make program? [C:\PROGRA~1\MID05A~1\VC\bin\nmake.EXE]
Warning: lynx not found in PATH
Where is your lynx program? []
Where is your wget program? [C:\usr\bin\wget.EXE]
Where is your ncftpget program? [C:\PROGRA~1\NcFTP\ncftpget.EXE]
Where is your ftp program? [C:\WINDOWS\system32\ftp.EXE]
Warning: gpg not found in PATH
Where is your gpg program? []
What is your favorite pager program? [C:\WINDOWS\system32\more.COM]
What is your favorite shell?

関連外部アプリケーションのパスの設定です。基本的には、CPANモジュールが環境変数PATHを見て見つかったものをデフォルトで表示してくれますので、そのままEnterすれば良いでしょう。ただし、できるだけパスには空白を含めない方が無難です。空白を含むものがあれば、例えば"C:\PROGRA~1\MID05A~1\VC\bin\nmake.EXE"のようにそれに該当する短い(MS-DOS形式の)記法で、直接指定したほうが良いでしょう。

Every Makefile.PL is run by perl in a separate process. Likewise we run 'make'
and 'make install' in processes. If you have any parameters (e.g. PREFIX, LIB,
UNINST or the like) you want to pass to the calls, please specify them here.
If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more hints)

Your choice:  []

Parameters for the 'make' command?
Typical frequently used setting:

    -j3              dual processor system

Your choice:  []

Parameters for the 'make install' command?
Typical frequently used setting:

    UNINST=1         to always uninstall potentially conflicting files

Your choice:  []

make時のオプションの指定です。この辺りはデフォルトで進めてよいでしょう。

Sometimes you may wish to leave the processes run by CPAN alone without caring
about them. As sometimes the Makefile.PL contains question you're expected to
answer, you can set a timer that will kill a 'perl Makefile.PL' process after the
specified time in seconds.
If you set this value to 0, these processes will wait forever. This is the default
and recommended setting.

Timeout for inactivity during Makefile.PL? [0]

タイムアウトの指定です。デフォルトの0のままにすることを推奨します。それ以外の時は、タイムアウト時にalart関数が呼ばれますが、ActivePerlではこれが実装されてなくてエラーになることがあります。

If you're accessing the net via proxies, you can specify them in the CPAN
configuration or via environment variables. The variable in the $CPAN::Config
takes precedence.

Your ftp_proxy?
Your http_proxy?
Your no_proxy?

FTP、HTTPのプロキシと、プロキシの使用対象外の指定です。プロキシを使用するときは、指定してください。

Your \.cpan\sources\MIRRORED.BY is older than 60 days,
  I'm trying to fetch one

CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY

Now we need to know where your favorite CPAN sites are located. Push a few sites
onto the array (just in case the first on the array won't work). If you are
mirroring CPAN to your local workstation, specify a file: URL.

First, pick a nearby continent and country (you can pick several of each,
separated by spaces, or none if you just want to keep your existing selections).
Then, you will be presented with a list of URLs of CPAN mirrors in the countries
you selected, along with previously selected URLs. Select some of those URLs, or
just keep the old list. Finally, you will be prompted for any extra URLs --
file:, ftp:, or http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) [] 2
Sorry! since you don't have any existing picks, you must make a geographic selection.

(1) China
(2) Hong Kong
(3) India
(4) Indonesia
(5) Iran
(6) Israel
(7) Japan
(8) Malaysia
(9) Philippines
(10) Republic of Korea
(11) Russian Federation
(12) Saudi Arabia
(13) Singapore
(14) Taiwan
(15) Thailand
(16) Turkey
Select your country (or several nearby countries) [] 7
Sorry! since you don't have any existing picks, you must make a geographic selection.

(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
(3) ftp://ftp.kddilabs.jp/CPAN/
(4) ftp://ftp.nara.wide.ad.jp/pub/CPAN/
(5) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(6) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(7) ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/
(8) http://ftp.cpan.jp/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5' [] 8 7 6 5 4 3 2 1

Enter another URL or RETURN to quit: []

New set of picks:
  http://ftp.cpan.jp/
  ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/
  ftp://ftp.u-aizu.ac.jp/pub/CPAN
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
  ftp://ftp.nara.wide.ad.jp/pub/CPAN/
  ftp://ftp.kddilabs.jp/CPAN/
  ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
  ftp://ftp.dti.ad.jp/pub/lang/CPAN/

使用するミラーリング・サーバーの指定です。最初に地域、次に国を選択し、最後にその国内にあるサーバ群から、使用するものを指定します。地域はAsia、国はJapanに相当する番号を指定し、サーバーは一通り入れてしまって良いでしょう。

commit: wrote C:\Perl\lib\CPAN\Config.pm
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

cpan>

以上で終了で、CPANコマンドを受け付けるためのプロンプトが表示されています。意識して指定したところはごく一部で、ほとんどはデフォルト値のままです。これで、CPANモジュールを使った、Perlモジュールインストールの準備は完了です。

インストールの実行

PPMと同じように、CPANでも対話式にモジュールをインストールすることができます。 まず、CPANのshellを呼び出します。

   C:\Usr\Perl\lib>perl -MCPAN -e shell

次に、モジュールをインストールします。 例えば、IO::Scalarをインストールするときは以下を実行します。

   cpan> install IO::Scalar

次のようなメッセージが出ます。 LWPによるモジュールの取得、Checksumの照合、展開を行っていることが分かります。

   Fetching with LWP:
     ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/id/E/ER/ERYQ/IO-stringy-
   2.108.tar.gz
   
   Fetching with LWP:
     ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/id/E/ER/ERYQ/CHECKSUMS
   Checksum for C:\USR\Perl\Cpan\build\sources\authors\id\E\ER\ERYQ\IO-s
   tringy-2.108.tar.gz ok
   IO-stringy-2.108/
   IO-stringy-2.108/docs/
   (以下続く)

展開が終わると再度内容のチェックが行われ、問題がなければmakefileの作成とmakeによるインストールが開始されます。

   Checking if your kit is complete...
   Looks good
   Writing Makefile for IO-stringy
   
   Microsoft (R) Program Maintenance Utility   Version 1.50
   Copyright (c) Microsoft Corp 1988-94. All rights reserved.
   
   cp lib/IO/Wrap.pm blib\lib\IO\Wrap.pm
   (以下続く)

これが終了すると、以下のメッセージ以降でmake testが行われます。

   Running make test
   (中略)
   All tests successful.
   Files=6, Tests=116,  6 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)
     c:\WinNT\added\nmake.exe test -- OK

続いて、make installが行われます。

   Running make install
   
   Microsoft (R) Program Maintenance Utility   Version 1.50
   Copyright (c) Microsoft Corp 1988-94. All rights reserved.
   (中略)
   Installing C:\Usr\Perl\site\lib\IO\Wrap.pm
   Installing C:\Usr\Perl\site\lib\IO\InnerFile.pm
   Writing C:\Usr\Perl\site\lib\auto\IO-stringy\.packlist
   Appending installation info to C:\Usr\Perl\lib/perllocal.pod
     c:\WinNT\added\nmake.exe install  -- OK

以上で終了です。

実は当初Spreadsheet::ParseExcel?をインストールしようとしたのですが、なぜかIO::Scalarが入っていないと言われて失敗しました。 そこで、ここでIO::Scalarの例を挙げています。 IO::Scalarをインストールしたら、Spreadsheet::ParseExcel?もインストールしてみてください。 Followの設定がしてあれば、途中で前提モジュールのOLE::Storage_Liteもいっしょにインストールされていることが分かるはずです。

ActivePerlではインストール直後から、ファイル取得用のLWPモジュールも、解凍、展開用のCompress::Zlibモジュールも問題なく使えます。 このため、実際に表示を見ると、これらを使っているようですね。

メモ

Microsoft Platform SDKの導入

Devel::Coverインストール時に「mspdb80.dllが見つかりません」「インクルードファイル<windows.h>が見つかりません」などのメッセージが出たため、それらしき対処を模索。

ここまでで、mspdb80.dllに関するエラーは出なくなり、次にwindows.hに関するエラーで引っかかるようになった。 そこで、コマンドライン起動後、nmakeやCPANシェルの起動前に、以下を行うようにした。

C:\> "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
C:\> "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"

前者はVC8の、後者はMS Platform SDKのライブラリやインクルードファイルに関する環境変数を設定するものの模様。これにより、Devel::Coverがmake(nmake)できるようになった。

実行(テスト)時に「MCVCR80.dllが見つからない」エラー

Visual C++ 2005 再頒布可能パッケージをインストールする。

Microsoft Visual C++ 2005 再頒布可能パッケージ (x86) は、Visual C++ で開発されたアプリケーションを Visual C++ 2005 がインストールされていないコンピュータ上で実行するために必要な、Visual C++ ライブラリのランタイム コンポーネントをインストールします。
ダウンロードの詳細 : Visual C++ 2005 再頒布可能パッケージ (x86)

その後、MCVC*80.dllをC:\Windows\System32などにコピーする。

実行(テスト)時にランタイムエラーR6034が発生する。

いまだに、VC6でコンパイルしない限り、解決しない?

It then complained that lack of MSVCR80.dll; so put one in it path and now it complains in this way. Runtime Error! "Program C:\Perl\bin\perl.exe R6034 An application has made an attempt to load the C runtime library incorreclty. Please contact the applications support team for more information."
If you're using ActivePerl, you need to use the compiler that came with VC++/VS version 6. I think MSVCR80.dll is used by newer versions of that compiler (The one from VS2005?) and I think the compiler and the library is not compatible with perl binaries created using VS6.
inline c - PerlMonks on Apr 22, 2007

プロキシ認証に対応したい

コンフィグレーションに'proxy_user'、'proxy_pass'を追加すれば対応できました。 CPANシェルを起動し、以下のようにします。

cpan> o conf proxy_user プロキシのユーザ名
cpan> o conf proxy_pass プロキシのパスワード

CPAN.pmのソースコードを読むと、LWPを使用するためのサブクラス部に次のような記述があります。これを参考にしました。

sub get_basic_credentials {
    my($self, $realm, $uri, $proxy) = @_;
    return unless $proxy;
    if ($USER && $PASSWD) {
    } elsif (defined $CPAN::Config->{proxy_user} &&
             defined $CPAN::Config->{proxy_pass}) {
        $USER = $CPAN::Config->{proxy_user};
        $PASSWD = $CPAN::Config->{proxy_pass};

このページへのご意見、ご質問

(こちらにお書きください)

2004/04/02 匿名希望 tar&gzip と dmake のリンクが切れていたので勝手に追記しちゃいました。m(_._)m

2004-07-29 匿名希望その2 tar&gzip のリンクが切れていたので追記しました。

2005/09/02 nmakeがダウンロードNGだったので修正しました。(徳島学)

一行コメント

  • 2004-06-09 (Wed) 01:14:15 まき? : Where is your gzip program? [C:\WinNT\added\gzip.EXE]このあたりを変更したいのですが、どうしたら変更できますか?
  • 2004-06-09 (Wed) 01:18:33 まき? : 再度、C:\Usr\Perl\lib>perl -MCPAN -e shellと打っても設定画面が出てこないのです。再び設定しなおすにはどうしたらいいでしょうか・
  • 2004-06-10 (Thu) 09:16:41 塚本牧生 : 設定画面を再度呼び出す方法は私もわからないのですが、上で何度も登場している"~\Perl\lib\CPAN\Config.pm"というのが設定内容を保持しているファイルです。これの内容をエディタなどでいじってやればちゃんとCPANモジュールの動作に反映されますし、消してやれば次のCPANシェル起動時にまた設定が始まります。
  • 2004-07-23 (Fri) 15:20:30 倭智? : nmakeをDLしましたが、どこにいれたらよいのでしょうか?
  • 2004-07-23 (Fri) 17:04:55 塚本牧生 : パスの通ったディレクトリであればどこでもかまいません。tar.exeやgzip.exeも同じです。
  • 2004-09-24 (Fri) 19:01:23 あがた? : はじめまして。設定画面を改めて出す方法はCPANのシェル画面で"o conf init"とすればよいようです。
  • 2004-09-28 (Tue) 19:20:23 きり? : CPANモジュールのバージョンを指定してインストールすることってできないでしょうか?古いバージョンのものが欲しいのですが...。ちなみにPerlは5.005_2です。
  • 2004-10-16 (Sat) 18:07:53 line? : モジュールのインストールですが、Running make install Use of uninitialized value in <HANDLE> at C:/Perl/lib/CPAN.pm line 4856.と出てストップするんですが・・
  • 2004-10-16 (Sat) 19:54:48 line? : WindowsにGD::graphのインストールは現在では無理ってことありますか?
  • 2004-11-05 (Fri) 14:24:50 everyone? : ppmを使うとインストールできました
  • 2005-02-16 (Wed) 01:37:59 tym? : perl\lib\CPANのConfig.pm 削除し、Config.pm~ を Config.pm としてから、中身の1を0に変更すると、再設定可能
  • 2005-02-16 (Wed) 01:40:12 tym? : perl5.8.? の DBD-Oracle はどこにある?
  • 2005-02-19 (Sat) 23:30:24 tym? : 中身の1を0に変更は不要
  • 2005-03-08 (Tue) 23:00:50 うっき? : CPANでmakeまでうまくできてるみたいなんですけど、C:\.cpan\buildに展開されてるだけで、インストールされてないみたいなんですけど、どこか設定ミスってしまったのでしょうか。?
  • 2005-06-22 (Wed) 11:42:57 ko? : Config.pmはできているのですが、再度起動させると、もう一度設定画面に入ってしまいます。インストールはできているようですが。
  • 2005-08-12 (Fri) 20:12:39 mobcom? : 基本的に動くようになったのですが、モジュールによってはmake testでエラーになってインストールが出来ないものがあります。"make test returned bad status, won't install without force"なんて表示されて落ちます^^;ちなみにmakeはこちらのリンクからDLしたNMAKE.EXEを使っています。
  • 2005-09-28 (Wed) 15:31:14 X? : おなじく make testでだめですね。 TESTを省けないものかな... 
  • 2005-10-02 (Sun) 11:56:54 塚本牧生 : メッセージは「force抜きではインストールされません」と言ってるのですね。手元の環境では怖くて試したくないのですが、「install ~」のかわりに「force install ~」でどうですか?
  • 2006-03-14 (Tue) 23:07:13 kot? : 起動させると「ReadLine? support available」ではなく「 ReadLine? support enabled」と表示されるのですが、これはどういうことですか?
  • 2006-03-15 (Wed) 10:06:47 塚本牧生 : 英文の意味からすれば、私の環境では入手可能(未導入)だけど、kotさんの環境では有効になっているということですよね。気にされてるということは、何か問題がありましたか?
  • 2006-04-25 (Tue) 00:03:07 塚本牧生 : Visual C++ Express Editionが無期限で無償配布になったということですので、これを使った環境になるように更新しました。私の環境では、これまでコンパイル(特にclコマンド)関連でエラーになってたいくつかのモジュールがインストールできたのを確認しています。
  • 2006-08-10 (Thu) 17:35:23 時宮礼? : 短い表記のパスですが、Win32モジュールを使うと簡単に表示されますよ。 perl -MWin32 -e "print Win32::GetShortPathName?(shift(@ARGV))" "調べたいパス" でいけるはずです。
  • 2006-12-23 (Sat) 13:16:57 KWN? : モジュールをダウンロード後、perl Makefile.PLはうまくいきましたが、次のnmakeで「起動できません」のメッセージがでます。なぜ?
  • 2007-01-03 (Wed) 21:51:50 Dream? : だいたいうまくいったのですが、Cコンパイラが必要なモジュールでエラーになります。
  • 2007-07-13 (Fri) 00:35:08 KOC? : Win環境でCPANを使うのに、非常に参考になりました。ありがとうございました。<a href="http://blog.ko-c.jp/?eid=661566">Windowsで、CPANからモジュールを入れる方法</a>で、この記事を紹介させて頂きました。
  • 2007-09-04 (Tue) 14:30:50 GOGO? : CPANの設定画面でサーバ指定するときに国と地域のリストが出ないのは何故ですか?
  • 2008-01-22 (Tue) 12:31:09 yuki? : v5.10.0 に Class::MethodMaker?をCpanからインストールを試みていますが、 nmakeで失敗します。 エラー内容 NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1.0\VC\bin\cl.EXE' :
[[#comment]]