全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2256|回复: 14
打印 上一主题 下一主题

一款linux下的软件安装故障求教

[复制链接]
跳转到指定楼层
1#
发表于 2014-11-14 01:10:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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]#
2#
发表于 2014-11-14 01:26:25 | 只看该作者
yum install libzip.so.2 后再装看看
3#
 楼主| 发表于 2014-11-14 02:57:58 | 只看该作者
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早已经安装了. 谢谢
4#
发表于 2014-11-14 03:50:49 | 只看该作者
试试这个吧:
  1. yum localinstall kchmviewer-7.1-1.i586.rpm
复制代码
5#
 楼主| 发表于 2014-11-14 06:11:24 | 只看该作者

谢谢您的回复

[root@localhost RucLinux]# yum localinstall kchmviewer-7.1-1.i586.rpm
已加载插件:fastestmirror, refresh-packagekit, security
设置本地安装进程
Cannot open: kchmviewer-7.1-1.i586.rpm. Skipping.
无须任何处理
6#
发表于 2014-11-14 10:01:42 | 只看该作者
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.?解决的
7#
发表于 2014-11-14 12:53:24 | 只看该作者
76064866 发表于 2014-11-14 10:01
你装的libzip库是64位的,而要安装的那软件需要的是32位的库。我以前装一款软件也遇到过这种情况,ln lib ...

真吓人,居然说i686是64位。
8#
发表于 2014-11-14 12:54:24 | 只看该作者
Ruclinux 发表于 2014-11-14 06:11
谢谢您的回复

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

无法打开那个文件,你确定那个文件在当前目录?
9#
发表于 2014-11-14 13:04:23 | 只看该作者
  1. http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libzip.so.2
复制代码

点评

谢谢您,问题解决了,原来是我默认安装的libzip版本太低了,安装了libzip-0.11.2-3这个包后问题解决了.  发表于 2014-11-14 16:28
10#
发表于 2014-11-14 13:05:51 | 只看该作者
本帖最后由 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的软件包太旧了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-7 00:39 , Processed in 0.413446 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表