ppmが充実していてcpanなしでも意外といける感じ
新PCにActivePerlを入れたわけですが、モジュールのインストールにはcpanも必要だろうというので環境を構築しました。以前はnmakeコマンドを別途インストールするなど手間だったのですが今時はコマンド一つで全部やってくれます。
C:\>cpan It looks like you don't have a C compiler and make utility installed. Trying to install dmake and the MinGW gcc compiler using the Perl Package Manager. This may take a a few minutes... Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done Downloading MinGW-5.1.4.1...done Downloading dmake-4.11.20080107...done Unpacking MinGW-5.1.4.1...done Unpacking dmake-4.11.20080107...done Generating HTML for MinGW-5.1.4.1...done Generating HTML for dmake-4.11.20080107...done Updating files in site area...done 1070 files installed Please use the `dmake` program to run commands from a Makefile! Set up gcc environment - 3.4.5 (mingw-vista special r3) cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help.
という感じでcpanコマンドを実行すると初回実行時に必要な環境を一式揃えてくれます。
と、ここまでやったのですけど、いくつかモジュールをインストールしてみたところみんなppmでできたのでcpanの出番がありませんでした。というわけで、本当にcpanコマンドでモジュールがインストールできるのかどうかはまだ不明。