PerlのCPANモジュールを自動でRPMに変換

|

cpan2rpmの取得
[root@fedora root]# wget ftp://arix.com/cpan2rpm-2.026-1.noarch.rpm
--10:33:44-- ftp://arix.com/cpan2rpm-2.026-1.noarch.rpm
=> `cpan2rpm-2.026-1.noarch.rpm'
arix.com をDNSに問いあわせています... 63.194.16.45
arix.com[63.194.16.45]:21 に接続しています... 接続しました。
anonymous としてログインしています... ログインしました!
==> SYST ... 完了しました。 ==> PWD ... 完了しました。
==> TYPE I ... 完了しました。 ==> CWD は必要ありません。
==> PASV ... 完了しました。 ==> RETR cpan2rpm-2.026-1.noarch.rpm ... 完了しました。
長さ: 61,856 (確証はありません)

100%[====================================>] 61,856 22.33K/s

10:33:53 (22.27 KB/s) - `cpan2rpm-2.026-1.noarch.rpm' を保存しました [61856]

cpan2rpmのインストール
[root@fedora root]# rpm -ivh cpan2rpm-2.026-1.noarch.rpm
Preparing... ########################################### [100%]
1:cpan2rpm ########################################### [100%]
[root@fedora root]#

取得したcpan2rpmの削除
[root@fedora root]# rm -f cpan2rpm-2.026-1.noarch.rpm

Jcodeのインストール
[root@fedora root]# cpan2rpm --install Jcode

-- cpan2rpm - Ver: 2.026 --
Signatures not set up
Upgrade check

WARNING: libwww-perl module not found. To install, one of the following options may help:

1) Try http://www.rpmfind.net/linux/rpm2html/search.php?query=perl-libwww-perl
2) Specify the full URL of the tarball manually.
cpan2rpm -i http://www.cpan.org/modules/by-module/LWP/libwww-perl-5.68.tar.gz
3) Download tarball and specify file on commandline.
4) Configure CPAN: perl -MCPAN -eshell
5) cpan2rpm -i libwww-perl


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)
cpan2rpmを初期起動した時のみ表示される(マニュアル設定は行なわない)
Are you ready for manual configuration? [yes] no


RPM: /usr/src/redhat/RPMS/i386/perl-Jcode-0.87-1.i386.rpm
SRPM: /usr/src/redhat/SRPMS/perl-Jcode-0.87-1.src.rpm
Installing package
Preparing... ########################################### [100%]
1:perl-Jcode ########################################### [100%]
-- Done --
[root@fedora root]#

Jcodeがインストールされたか確認してみる
[root@fedora root]# rpm -q perl-Jcode
perl-Jcode-0.87-1
[root@fedora root]#

http://kajuhome.com/cpan2rpm.shtml


http://fedorasrv.com/cpan2rpm.shtml

カテゴリ

このブログ記事について

このページは、adminが2006年1月 6日 23:25に書いたブログ記事です。

ひとつ前のブログ記事は「Yahoo!デベロッパーネットワーク」です。

次のブログ記事は「相互リンクScript」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。