preload
Oct 26

方便的自動安裝

perl -MCPAN -e 'install full::module::name'

但我試了幾次很容易會在 fetch ftp 來源的 source code 時卡住,要重試幾次。

手動編譯

tar xzvf example-<version>.tgz
cd example-<version>
perl Makefile.PL
make
make test
make install

搜尋WP::UserAgent模組

cpan> d /LWP::UserAgent/

重新配置cpan

cpan> o conf init
cpan> reload index

 
驗證安裝了沒

perl -e 'require LWP::UserAgent'

update: 有時候,還是需要加個 sudo 確保有權限將檔案放入系統

溫故知新

載入中…

歷史上的今天..

相關文章:

Tagged with:

Leave a Reply