使用cpan2rpm获得cpan上的rpm包
来源:互联网 发布:怎么让淘宝店铺有订单 编辑:程序博客网 时间:2024/05/21 10:50
在cpan上查找到的perl module 一般都是tar.gz的src包
但这样安装起来就存在麻烦,还要执行perl Makefile.pl之类的
怎么样可以找到相应的rpm包呢
cpan2rpm 解决了这个问题,它可以帮你获的你想要的rpm包(并不是全部)
具体可以查看cpan的主页 http://perl.arix.com/cpan2rpm/
This script generates an RPM package from a Perl module. It uses the standard RPM file structure and creates a spec file, a source RPM, and a binary, leaving these in their respective directories.
The script can operate on local files, directories, urls and CPAN module names. Install this package if you want to create RPMs out of Perl modules.
The syntax for cpan2rpm supports multiple distribution names, which can take one of four different forms:
- a CPAN module name (e.g. XML::Simple) - When a module name is passed, the script will ``walk'' search.cpan.org to determine the latest distribution. If an exact match is not found, the CPAN module is used to make this determination. If you have not yet configured this module, please refer to the REQUIREMENTS section below for further instructions.
- a URL (both http:// and ftp:// style locators will work) - In this and the above case, an automatic download of the needed tarball is performed (see notes for how). The tarball is deposited in the SOURCES directory.
- a path to a tarball (e.g. /tmp/XML-Simple-1.05.tar.gz) - In this case, the tarball indicated gets copied to the SOURCES directory.
- a directory path - The directory specified must contain a Makefile.PL. If the user intends to build a package from a directory (i.e. user does NOT specify --spec-only), the commands:
perl Makefile.PL make make dist
will be performed in that directory in order to create the tarball necessary for package creation.
不过我还没试验成功从一个tar.gz转换成rpm格式,我发现如果cpan上有对应的rpm包就可以获得,
没有就提示出没有了
同时这里还提供了web 接口,你可以不需要安装cpan2rpm直接获取
注:很多网上说这样使用.但我发现却不能成功
cpan2rpm Proc-Daemon-0.03.tar.gz
-- cpan2rpm - Ver: 2.028 --Upgrade checkFetch: HTTP-- module: Proc-Daemon-0.03.tar.gz --tarball: No such file or directory at ./cpan2rpm line 1230.-- Done --
这样用却可以
cpan2rpm Proc::Daemon
或者
cpan2rpm http://.../Proc-Daemon-0.03.tar.gz
不过有一些还是没有rpm包
- 使用cpan2rpm获得cpan上的rpm包
- rpm 包的使用
- meego上rpm包的安装方法
- RedHat下的RPM包的使用
- linux下面rpm包的使用总结
- linux中的包管理器rpm的使用
- 使用RPM包进行MYSQL的安装
- 使用RPM包管理命令的笔记
- 使用RPM管理包
- linux RPM包使用
- 系统上未找到用于创建 RPM 包的 RPM 工具 (rpmbuild)解决方法
- RPM包的构建
- RPM包的制作
- rpm包的管理
- rpm包的操作
- RPM包的制作
- rpm包的制作
- rpm包的安装
- 新来的,发个自己写的JAVA开窗户游戏
- 高分求?中文参传递问题??
- java programmer 32 questions
- 如何用c语言调用c++做成的动态链接库
- 一个超强纠错的绿色播放器
- 使用cpan2rpm获得cpan上的rpm包
- MySQL自定义函数的Windows版本实现
- 2005年5月26日编程重要心得
- 将WMF等透明底色的图片转成白底的JPG图片
- 完成端口的深入理解及一种变态用法
- 视频聊天,发现老爸身体很是虚弱
- 我的电脑出了问题
- AOP 软件革命的导火索?
- 谁帮我降QQ等级