Redhat Linux 6.5 Perl GD CPAN模块yum [英] Redhat Linux 6.5 Perl GD CPAN Module yum

查看:141
本文介绍了Redhat Linux 6.5 Perl GD CPAN模块yum的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Redhat 6.5上安装 GD(perl -e shell -MCPAN->(下一步)cpan [1]>安装GD)时,出现错误:

when i try to install "GD" (perl -e shell -MCPAN ->(next step) cpan[1]> install GD) on Redhat 6.5 i got the error:

->
CPAN.pm:建筑物L / LD / LDS / GD-2.53.tar.gz

-> CPAN.pm: Building L/LD/LDS/GD-2.53.tar.gz

不可恢复的错误
在搜索路径中找不到gdlib-config。请安装libgd 2.0.28或更高版本。
如果仍要尝试编译,请使用--ignore_missing_gd选项重新运行此脚本。
警告:命令上没有成功[/ usr / bin / perl Makefile.PL INSTALLDIRS = site]
CPAN:YAML加载正常(v0.90)
LDS / GD-2.53.tar。 gz
/ usr / bin / perl Makefile.PL INSTALLDIRS = site-不好
运行make test
Make有一些问题,不会测试
运行make install
Make出现了一些问题,无法安装
无法读取元数据文件。依靠其他方法确定先决条件
在此命令期间失败:
LDS / GD-2.53.tar.gz:writemakefile NO'/ usr / bin / perl Makefile.PL INSTALLDIRS = site'返回状态512
<-

UNRECOVERABLE ERROR Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher. If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] CPAN: YAML loaded ok (v0.90) LDS/GD-2.53.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read metadata file. Falling back to other methods to determine prerequisites Failed during this command: LDS/GD-2.53.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 <-

我尝试安装 libgd 2.0.28或更高版本,但在 yum中找不到。

I tryed to install "libgd 2.0.28 or higher" but don't find this in "yum".

找到libgd(显示):

locate libgd (shows):

/usr/lib64/libgd.so.2
/ usr / lib64 / libgd.so.2.0.0

/usr/lib64/libgd.so.2 /usr/lib64/libgd.so.2.0.0

有人知道建议吗?

推荐答案

已经为RHEL及其衍生产品(例如CentOS)构建并打包了许多perl模块。对于perl-GD,似乎它在CentOS的基本存储库中可用,即使它不在RHEL存储库中也是如此。

Many perl modules are available already built and packaged for RHEL and derivatives such as CentOS. In the case of perl-GD, it seems it is available in the CentOS in the base repo even though it is not in the RHEL repo.

不过,您仍然可以通过将Centos存储库添加到yum配置中来使用它。创建文件 /etc/yum.repos.d/cantos.repo ,其中包含:

However you can still use the Centos repo by adding it to your yum configuration. Create a file /etc/yum.repos.d/cantos.repo containing:

[centos]
name=CentOS $releasever - $basearch
baseurl=http://mirror.centos.org/centos-6/6/os/$basearch/
enabled=0
gpgcheck=0

之后,您应该可以安装perl-GD

After which you should be able to install perl-GD

yum install --enablerepo centos perl-GD

看来,perl-GD for centos的当前版本为2.44。

It looks as though the current version of perl-GD for centos is 2.44.

如果您确实需要更新的版本这样,您将要么需要找到具有更高版本的libgd的3rd yum存储库,要么从源代码进行编译。在快速的Google中,我找不到前者,因此建议您下载最新的源程序包并进行安装

If you do need a newer version that that, you will either need to find a 3rd party yum repo which has the later version of libgd available, or compile it from source. In a quick google I could not find the former, so I would recommend you download the latest source package and install that.

这篇关于Redhat Linux 6.5 Perl GD CPAN模块yum的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆