全球主机交流论坛

标题: 一款linux下的软件安装故障求教 [打印本页]

作者: Ruclinux    时间: 2014-11-14 01:10
标题: 一款linux下的软件安装故障求教
kchmviewer-7.1是一款linux下的chm文档阅读软件,现在安装出现问题了,所以请教大家指点错误发生在哪里,谢谢了.

以下是安装日志:

[root@localhost RucLinux]# rpm -qa |grep qt
qt-sqlite-4.6.2-28.el6_5.i686
qtlockedfile-2.4-3.el6.leigh123linux.i686
qt3-devel-3.3.8b-30.el6.i686
qt47-4.7.2-1_18.el6.i686
qt47-devel-4.7.2-1_18.el6.i686
poppler-qt4-devel-0.12.4-3.el6_0.1.i686
qt47-x11-4.7.2-1_18.el6.i686
qt47-webkit-4.7.2-1_18.el6.i686
qt-4.6.2-28.el6_5.i686
libqtxdg-devel-0.5.2-13.el6.i686
dbus-qt-0.70-7.2.el6.i686
dbus-qt-devel-0.70-7.2.el6.i686
poppler-qt4-0.12.4-3.el6_0.1.i686
qtsingleapplication-2.6.1-5.el6.leigh123linux.i686
libqtxdg-0.5.2-13.el6.i686
qt47-designer-plugin-phonon-4.7.2-1_18.el6.i686
poppler-qt-devel-0.12.4-3.el6_0.1.i686
qt47-webkit-devel-4.7.2-1_18.el6.i686
poppler-qt-0.12.4-3.el6_0.1.i686
qt3-3.3.8b-30.el6.i686
zlibrary-ui-qt-0.12.10-5.el6.i686

[root@localhost RucLinux]# rpm -qa |grep libzip
libzip-0.9-3.1.el6.i686
libzip-devel-0.9-3.1.el6.i686

[root@localhost RucLinux]# rpm -qa |grep chmlib
chmlib-0.40-3.el6.i686
chmlib-devel-0.40-3.el6.i686

[root@localhost RucLinux]# ln -s /usr/bin/qmake-qt47 /etc/alternatives/qmake
[root@localhost RucLinux]# ls -l /etc/alternatives/qmake
lrwxrwxrwx. 1 root root 19 11月 10 03:06 /etc/alternatives/qmake -> /usr/bin/qmake-qt47

[root@localhost RucLinux]# wget http://softlayer-sng.dl.sourceforge.net/project/kchmviewer/kchmviewer/7.1/kchmviewer-7.1.tar.gz
[root@localhost RucLinux]# tar zxf kchmviewer-7.1.tar.gz
[root@localhost RucLinux]# cd kchmviewer-7.1
[root@localhost kchmviewer-7.1]# /usr/bin/qmake-qt47
[root@localhost kchmviewer-7.1]# make
cd lib/ && /usr/bin/qmake-qt47 /home/RucLinux/kchmviewer-7.1/lib/lib.pro -o Makefile
cd lib/ && make -f Makefile
make[1]: Entering directory `/home/RucLinux/kchmviewer-7.1/lib'
cd libebook/ && /usr/bin/qmake-qt47 /home/RucLinux/kchmviewer-7.1/lib/libebook/libebook.pro -o Makefile
cd libebook/ && make -f Makefile
make[2]: Entering directory `/home/RucLinux/kchmviewer-7.1/lib/libebook'
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt47/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I../../src -I. -o ebook_chm.o ebook_chm.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt47/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I../../src -I. -o ebook_epub.o ebook_epub.cpp
ebook_epub.cpp: In member function ‘virtual bool EBook_EPUB::load(const QString&)’:
ebook_epub.cpp:55: Error:‘zip_fdopen’In this role has not been declared in the domain
ebook_epub.cpp: In member function ‘bool EBook_EPUB::getFileAsBinary(QByteArray&, const QString&) const’:
ebook_epub.cpp:308: Error:‘struct zip_stat’Members are not called 'valid' in
ebook_epub.cpp:308: Error:‘ZIP_STAT_SIZE’In this role has not been declared in the domain
ebook_epub.cpp:308: Error:‘struct zip_stat’Members are not called 'valid' in
ebook_epub.cpp:308: Error:‘ZIP_STAT_INDEX’In this role has not been declared in the domain
make[2]: *** [ebook_epub.o] Error 1
make[2]: Leaving directory `/home/RucLinux/kchmviewer-7.1/lib/libebook'
make[1]: *** [sub-libebook-make_default] Error 2
make[1]: Leaving directory `/home/RucLinux/kchmviewer-7.1/lib'
make: *** [sub-lib-make_default] Error 2

[root@localhost RucLinux]# wget http://softlayer-sng.dl.sourceforge.net/project/kchmviewer/kchmviewer/7.1/kchmviewer-7.1-1.i586.rpm
[root@localhost RucLinux]# rpm -ivh kchmviewer-7.1-1.i586.rpm
error: Failed dependencies:
        libzip.so.2 is needed by kchmviewer-7.1-1.i586
[root@localhost RucLinux]#
作者: 76064866    时间: 2014-11-14 01:26
yum install libzip.so.2 后再装看看
作者: Ruclinux    时间: 2014-11-14 02:57
76064866 发表于 2014-11-14 01:26
yum install libzip.so.2 后再装看看

[root@localhost RucLinux]# rpm -qa |grep libzip
libzip-0.9-3.1.el6.i686
libzip-devel-0.9-3.1.el6.i686

libzip早已经安装了. 谢谢
作者: ★Extreme★    时间: 2014-11-14 03:50
试试这个吧:
  1. yum localinstall kchmviewer-7.1-1.i586.rpm
复制代码

作者: Ruclinux    时间: 2014-11-14 06:11
★Extreme★ 发表于 2014-11-14 03:50
试试这个吧:

谢谢您的回复

[root@localhost RucLinux]# yum localinstall kchmviewer-7.1-1.i586.rpm
已加载插件:fastestmirror, refresh-packagekit, security
设置本地安装进程
Cannot open: kchmviewer-7.1-1.i586.rpm. Skipping.
无须任何处理

作者: 76064866    时间: 2014-11-14 10:01
Ruclinux 发表于 2014-11-14 02:57
[root@localhost RucLinux]# rpm -qa |grep libzip
libzip-0.9-3.1.el6.i686
libzip-devel-0.9-3.1.el6.i ...

你装的libzip库是64位的,而要安装的那软件需要的是32位的库。我以前装一款软件也遇到过这种情况,ln lib到lib64都没法解决,最后还是yum install ???.so.?解决的
作者: ★Extreme★    时间: 2014-11-14 12:53
76064866 发表于 2014-11-14 10:01
你装的libzip库是64位的,而要安装的那软件需要的是32位的库。我以前装一款软件也遇到过这种情况,ln lib ...

真吓人,居然说i686是64位。
作者: ★Extreme★    时间: 2014-11-14 12:54
Ruclinux 发表于 2014-11-14 06:11
谢谢您的回复

[root@localhost RucLinux]# yum localinstall kchmviewer-7.1-1.i586.rpm

无法打开那个文件,你确定那个文件在当前目录?
作者: SYN    时间: 2014-11-14 13:04
  1. http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libzip.so.2
复制代码

作者: SYN    时间: 2014-11-14 13:05
本帖最后由 SYN 于 2014-11-14 13:17 编辑

find /usr/lib64 |grep libzip.so
/usr/lib64/libzip.so.1
/usr/lib64/libzip.so.1.0.0

centos的软件包太旧了
作者: SYN    时间: 2014-11-14 13:07
标题:
本帖最后由 SYN 于 2014-11-14 13:09 编辑

试试这个 centos可以装,ftp://fr2.rpmfind.net/linux/epel/6/i386/kchmviewer-5.2-5.el6.2.i686.rpm

fedora的话很容易解决,centos直接配置下EPEL源   yum install kchmviewer即可,那个版本太新,而centos的软件仓库的软件很旧,
作者: Ruclinux    时间: 2014-11-14 16:15
★Extreme★ 发表于 2014-11-14 12:54
无法打开那个文件,你确定那个文件在当前目录?

谢谢您的回复,但依旧不行,依赖库卸失安装不上.

[root@localhost RucLinux]# yum localinstall kchmviewer-7.1-1.i586.rpm
已加载插件:fastestmirror, refresh-packagekit, security
设置本地安装进程
诊断 kchmviewer-7.1-1.i586.rpm: kchmviewer-7.1-1.i586
kchmviewer-7.1-1.i586.rpm 将被安装
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirror.bit.edu.cn
* updates: mirror01.idc.hinet.net
base                                                     | 3.7 kB     00:00     
extras                                                   | 3.3 kB     00:00     
updates                                                  | 3.4 kB     00:00     
解决依赖关系
--> 执行事务检查
---> Package kchmviewer.i586 0:7.1-1 will be 安装
--> 处理依赖关系 libzip.so.2,它被软件包 kchmviewer-7.1-1.i586 需要
--> 完成依赖关系计算
错误:Package: kchmviewer-7.1-1.i586 (/kchmviewer-7.1-1.i586)
          Requires: libzip.so.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

作者: Ruclinux    时间: 2014-11-14 16:22
SYN 发表于 2014-11-14 13:07
试试这个 centos可以装,ftp://fr2.rpmfind.net/linux/epel/6/i386/kchmviewer-5.2-5.el6.2.i686.rpm

fedo ...

我现在安装的是kchmviewer6.1,现在是想升级到最新版的.
作者: Ruclinux    时间: 2014-11-14 16:30
谢谢所有回复的朋友,问题解决了,是我使用官方默认源yum的libzip版本太低了,我重新安装了libzip-0.11.2-3问题解决了.




欢迎光临 全球主机交流论坛 (https://d.168530.xyz/) Powered by Discuz! X3.4