MACにCPANをインストール

AmazonS3へperlでバックアップを取りたいと思い、
MACにNET::Amazon:S3をインストールするために、
まずは、MACへCPANのインストール。

MACのターミナルを起動して、

sudo -H cpan

参考:Mac OSXでPerlの環境を整える。- CPANモジュールのインストールまで

passowordはログインしているMACユーザーのパスワードでOK。
ftpサーバーを指定する以外は、enter enterです。
ノートンインターネットセキュリティを使ってるのでftpサーバーからの通信を許可するか、聞かれます。OKで。


$ sudo -H cpan

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

〜中略〜

(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 ※地域を選択(Asia)
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) China
(2) Hong Kong
(3) Indonesia
(4) Israel
(5) Japan
(6) Republic of Korea
(7) Russia
(8) Singapore
(9) Taiwan
(10) Thailand
(11) Turkey
(12) Viet Nam
Select your country (or several nearby countries) [] 5 ※国を選択(Japan)
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/CPAN/
(3) ftp://ftp.kddilabs.jp/CPAN/
(4) ftp://ftp.nara.wide.ad.jp/pub/CPAN/
(5) ftp://ftp.riken.jp/lang/CPAN/
(6) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(7) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(8) ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5' [] 1 3 5 7 8 ※ftpサーバーを選択(半角スペース区切りで、適当に)

〜中略〜

commit: wrote /System/Library/Perl/5.8.8/CPAN/Config.pm
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan>



cpan>となったら終了です。

quit

でCPANからログアウトして終了。

MACにCPANをインストール
MACにNET::Amazon::S3をインストール
NET::Amazon::S3を使ってAmazonS3へファイルをアップロードしてみた

0 件のコメント:

コメントを投稿