GDが入らない;;→PPMでリポジトリ追加したら入った

C:\Documents and Settings\rinta>ppm install GD
Downloading ActiveState Package Repository packlist...not modified
ppm install failed: Can't find any package that provide GD

ない;;

C:\Documents and Settings\rinta>perl -MCPAN -e "install GD"
CPAN: Storable loaded ok (v2.16)
Going to read C:\Perl\cpan\Metadata
  Database was generated on Sat, 22 Sep 2007 10:36:43 GMT
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.35.tar.gz

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

CPAN: Time::HiRes loaded ok (v1.9707)
CPAN: Compress::Zlib loaded ok (v1.4201)
CPAN: Archive::Tar loaded ok (v1.3201)
GD-2.35/
GD-2.35/t/
GD-2.35/t/test.out.3.jpeg
GD-2.35/t/GD.t
GD-2.35/t/tile.jpeg
GD-2.35/t/test.out.4.jpeg
GD-2.35/t/test.out.5.jpeg
GD-2.35/t/test.out.6.jpeg
GD-2.35/t/test.out.7.jpeg
GD-2.35/t/test.out.8.jpeg
GD-2.35/t/test.out.9.jpeg
GD-2.35/t/test.out.3.png-1
GD-2.35/t/Polyline.t
GD-2.35/t/test.out.4.png-1
GD-2.35/t/test.out.4.png-2
GD-2.35/t/test.out.10.png-1
GD-2.35/t/test.out.10.png-2
GD-2.35/t/test.out.10.png-3
GD-2.35/t/test.out.1.png
GD-2.35/t/test.out.2.gif
GD-2.35/t/test.out.2.png
GD-2.35/t/test.out.3.gif
GD-2.35/t/test.out.3.png
GD-2.35/t/test.out.4.gif
GD-2.35/t/test.out.4.png
GD-2.35/t/test.out.5.gif
GD-2.35/t/test.out.5.png
GD-2.35/t/test.out.6.gif
GD-2.35/t/test.out.6.png
GD-2.35/t/test.out.7.gif
GD-2.35/t/test.out.7.png
GD-2.35/t/test.out.8.gif
GD-2.35/t/test.out.8.png
GD-2.35/t/test.out.9.gif
GD-2.35/t/test.out.9.png
GD-2.35/t/test.out.5.png-1
GD-2.35/t/Generic.ttf
GD-2.35/t/test.out.6.png-1
GD-2.35/t/test.out.7.png-1
GD-2.35/t/frog.jpg
GD-2.35/t/frog.xpm
GD-2.35/t/test.out.10.jpeg
GD-2.35/t/test.out.8.png-1
GD-2.35/t/test.out.8.png-2
GD-2.35/t/test.out.8.png-3
GD-2.35/t/test.out.8.png-4
GD-2.35/t/test.out.8.png-5
GD-2.35/t/test.out.8.png-6
GD-2.35/t/tile.gif
GD-2.35/t/tile.png
GD-2.35/t/test.out.2.png-1
GD-2.35/t/test.out.9.png-1
GD-2.35/t/test.out.9.png-2
GD-2.35/t/palettemap.png
GD-2.35/t/test.out.10.gif
GD-2.35/t/test.out.10.png
GD-2.35/t/test.out.2.jpeg
GD-2.35/GD/
GD-2.35/GD/Polygon.pm
GD-2.35/GD/Simple.pm
GD-2.35/GD/Image.pm.PLS
GD-2.35/GD/Polyline.pm
GD-2.35/GD.pm
GD-2.35/GD.xs
GD-2.35/demos/
GD-2.35/demos/brushes.pl
GD-2.35/demos/font_list.png
GD-2.35/demos/fonttest
GD-2.35/demos/polys.pl
GD-2.35/demos/fills.pl
GD-2.35/demos/truetype_test
GD-2.35/demos/shapes.pl
GD-2.35/demos/copies.pl
GD-2.35/demos/ttf.pl
GD-2.35/demos/gd_example.cgi
GD-2.35/demos/tile.png
GD-2.35/demos/polyline.pl
GD-2.35/demos/transform.pl
GD-2.35/qd.pl
GD-2.35/README
GD-2.35/Makefile.PL
GD-2.35/README.QUICKDRAW
GD-2.35/META.yml
GD-2.35/typemap
GD-2.35/bdf_scripts/
GD-2.35/bdf_scripts/README
GD-2.35/bdf_scripts/bdf2gdfont.PLS
GD-2.35/bdf_scripts/bdftogd
GD-2.35/bdf_scripts/bdf2gdfont.pl
GD-2.35/README.unix
GD-2.35/ChangeLog
GD-2.35/MANIFEST
CPAN: File::Temp loaded ok (v0.18)

  CPAN.pm: Going to build L/LD/LDS/GD-2.35.tar.gz

NOTICE: This module requires libgd 2.0.28 or higher.

        If you are using Math::Trig 1.01 or lower, it has a bug that
        causes a "prerequisite not found" warning to be issued.  You may
        safely ignore this warning.

        Type perl Makefile.PL -h for command-line option summary

'gdlib-config' is not recognized as an internal or external command,
operable program or batch file.

Where is libgd installed? [/usr/lib]

libgdとやらもgdlib-configとやらも見当たらない。Math::Trigはv1.37みたいだし。CPANによるとlibgdはGDそのもののオルタナティブ版というか、別物みたいに書いてある。

libgd, the C-language version of gd, can be obtained at URL http://www.boutell.com/gd/. Directions for installing and using it can be found at that site. Please do not contact me for help with libgd.

なんでコレを要求してくるのかがわからない。bin持ってきたってunix(linux)版じゃしょーがないし。なんでlibgdが必要になるのかがわからない。
この辺のライブラリの管理について集中的に説明しているところってないのかな? 技術情報が見つけられないとなんもできん;;

・・・ppmリポジトリを指定することができたはず。Plaggerの時に追加したリポジトリを追加してやってみる。

C:\Documents and Settings\rinta>ppm install GD
Downloading ActiveState Package Repository packlist...not modified
ppm install failed: Can't find any package that provide GD

C:\Documents and Settings\rinta>ppm repo add http://ppm.tcool.org/archives/ tcoo
l
Downloading ActiveState Package Repository packlist...not modified
Downloading tcool packlist...done
Updating tcool database...done
Repo 2 added.

C:\Documents and Settings\rinta>ppm install GD
Downloading ActiveState Package Repository packlist...not modified
Downloading GD-2.35...done
Unpacking GD-2.35...done
Generating HTML for GD-2.35...done
Updating files in site area...done
  20 files installed

C:\Documents and Settings\rinta>ppm install GD::Graph
Downloading ActiveState Package Repository packlist...not modified
Downloading GDGraph-1.44...done
Downloading GDTextUtil-0.86...done
Unpacking GDGraph-1.44...done
Unpacking GDTextUtil-0.86...done
Generating HTML for GDGraph-1.44...done
Generating HTML for GDTextUtil-0.86...done
Updating files in site area...done
  27 files installed

通った。site/lib/GDも出来ているし、モジュールも入っている。eclipseでGD使ったプロジェクトを開いたらエラー消えた。ひとまず解決したけど、Perlのパッケージ管理についてもっとわからないと、今後もトラブル続出だ。なんか本でも探すか、つーか、本なんてあるのか・・・