2012年9月13日 星期四

Install XnViewMp on CentOS 6/7

OS: centos 6.3/7
Desktop: Gnome 2

Steps:
 1.
> su
> cd /opt
> wget  http://download.xnview.com/XnViewMP-linux-x64.tgz

2.
> tar -zxvf  XnViewMP-linux-x64.tgz

3.
> cd /opt/XnView/
> vi XnView.desktop
----------------------------------------

[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png

Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
-------------------------------------------

4.
> cp XnView.desktop /usr/share/applications/

5. execute
> ./xnview.sh

6.
Done

Method 2:
[XnViewMP]
>> yum install qt5-qtbase qt5-qtbase-common qt5-qtbase-gui qt5-qtscript xcb-util-renderutil xcb-util-wm qt5-qtmultimedia qt5-qtsensors qt5-qtsvg qt5-qtwebkit qt5-qtx11extras
>> wget http://download.xnview.com/XnViewMP-linux.x86_64.rpm
conflicts with filesystem:
>> yum install  rpmrebuild
>> rpmrebuild -ep XnViewMP-linux.x86_64.rpm
Your configured editor (probably vi) will pop up with an already loaded file.

Search for the lines containing / and /usr/bin (lines like %dir %attr(0755, root, root) "/"), and remove them. They are starting in about line 340.
(I removed the line with /usr as well.)

Save end exit.
Answer yes. It will then tell you the location of the fixed rpm.
 

>> rpm -ivh  XnViewMP-linux.x86_64.rpm
>> xnview &
done



1 則留言:

  1. /opt/XnView/XnView: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/XnView/XnView)

    回覆刪除