[Perl] HTTP,Expat,XML::Parserをインストール for MacOSX
MacOSXのDeveloper Toolsでデフォルトでインストールされていなかったので,インストール.
libwww-perl
libwww-perlというライブラリにだいたい,Web関係のヤツはそろっているようだ.
libwww-perl
ここからダウンロードして,インストール.
とりあえず,オプションは,言われたとおりにデフォルトでやってみた.
>perl Makefile.PL This package comes with some sample programs that I can try to install in /usr/bin. Note that you can avoid these questions by passing the '-n' option to 'Makefile.PL'. Do you want to install lwp-request? [y] y Do you want to install lwp-mirror? [y] y Do you want to install lwp-rget? [y] y Do you want to install lwp-download? [y] y The lwp-request program will use the name it is invoked with to determine what HTTP method to use. I can set up alias for the most common HTTP methods. These alias are also installed in /usr/bin. Do you want to install the GET alias? [n] n Do you want to install the HEAD alias? [n] n Do you want to install the POST alias? [n] n Checking for URI........... ok Checking for HTML::Parser.. ok Checking for MIME::Base64.. ok Checking for Net::FTP...... ok Checking for Digest::MD5 .. ok Checking if your kit is complete... Looks good Writing Makefile for LWP >make >sudo make install
動いたw
Expat
Expat
ダウンロードして,インストール.
>./configure 〜〜中略〜〜 config.status: creating Makefile config.status: creating expat_config.h >make >sudo make install
動いたwwwww
XML-Parser
XML-Parser
・・.ダウンロードしてインストール.
怒られるので,Expatのパスを指定して,インストール.
>perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include >make >sudo make install