我尝试使用以下命令。但是,当我到达安装pdftk
的最后一步时,控制台正在向我提供以下错误。我正在使用hostgator VPS服务器。任何可能的建议都会很棒。
注意:我尝试安装libgcj.so.7rh()(64bit)
,但它已经存在。也许我做错了什么。
**Error:** Package: pdftk-1.44-2.el5.rf.x86_64 (rpmforge)
Requires: libgcj.so.7rh()(64bit)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
这些是我遵循的步骤。
# Log in as root
cd /usr/local/src
# Type
uname -i
#To see which package you need
#Pick one of the below vdepending on the output of uname -i
i386<br>
wegt packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
x86_64 <br>
wget packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
#Then type
rpm --import apt.sw.be/RPM-GPG-KEY.dag.txt
Verify the downloaded package
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
#Install RPM
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
#Then
yum install pdftk
注意:在发布之前,我必须从上面命令中的链接中删除http://。
答案 0 :(得分:0)
好像你可能安装了32位操作系统?如果按顺序遍历每个命令,则会尝试使用64位rpmforge存储库,这对于32位操作系统是不正确的。
如果这是一个准确的假设,请执行此操作。
cd /etc/yum.repos.d/
ls -al
rm <each-rpmforge-file>
则...
cd /usr/local/src
yum clean
wget packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
yum update
yum install pdftk