您的位置:首页 > 运维架构 > Linux

Centos 6.4 x86_64 安装QQ

2014-10-15 19:30 399 查看

最近才装的centos,完成基本配置之后就想装QQ了。安装过程中出现了蛮多问题,比如安装32位库,安装WINE。百度一下,下面的文章大部分都能解决。故转载共享之。



参考:http://www.linuxdiyf.com/viewarticle.php?id=276020

下载qq地址:http://www.everbox.com/f/yLDb2jlpP9WBVvXlSkzC5JKu

D9

错误

/root/.qq2012/drive_c/Program Files/Tencent/QQ/Bin/QQ.exe

shell访问

 /root/.qq2012/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe

/home/shuiyouren/.qq2012/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe;

实际存在

/opt/qq2012/wineapp/.wine/drive_c/ProgramFiles/Tencent/QQ/Bin/QQ.exe

/home/shuiyouren/.qq2012/drive_c/ProgramFiles/Tencent/QQ/Bin/QQ.exe

[root@localhost qq]# more ./qq.sh

#!/bin/bash

MYNAME=$(whoami);

QQVER=qq2012

WINEQQ=.qq2012

if [ $MYNAME == 'root' ];then

WINEDEBUG=-all   env WINEPREFIX=~/$WINEQQ /opt/$QQVER/bin/wine /$MYNAME/$WINEQQ/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe;

else

WINEDEBUG=-all   env WINEPREFIX=~/$WINEQQ /opt/$QQVER/bin/wine /home/$MYNAME/$WINEQQ/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe;

fi

修改后

if [ $MYNAME == 'root' ];then

WINEDEBUG=-all   env WINEPREFIX=~/$WINEQQ /opt/$QQVER/bin/wine /opt/$QQVER/wineapp/.wine/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe;

else

WINEDEBUG=-all   env WINEPREFIX=~/$WINEQQ /opt/$QQVER/bin/wine /home/$MYNAME/$WINEQQ/drive_c/Program\Files/Tencent/QQ/Bin/QQ.exe;

过程:

[root@localhost qq]# ./qq.sh

env: /opt/qq2012/bin/wine: No such file or directory

原因:64位无法识别32位

安装32位库:

sudo yum install glibc.i686 glibc-devel.i686

[root@localhost qq]# ./qq.sh

wine: created the configuration directory '/root/.qq2012'

wine: cannot find '/root/.qq2012/drive_c/ProgramFiles/Tencent/QQ/Bin/QQ.exe'

Wine cannot find the ncurses library (libncurses.so.5).

[root@localhost qq]# yum install libncurses.so.5

libgcc_s.so.1 must be installed for pthread_cancel to work

[root@localhost qq]# yum install libgcc_s.so.1

[root@localhost qq]# ./qq.sh

Wine cannot find the FreeType font library.  Toenable Wine to

use TrueType fonts please install a version of FreeType greaterthan

or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  Toenable Wine to

use TrueType fonts please install a version of FreeType greaterthan

or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  Toenable Wine to

use TrueType fonts please install a version of FreeType greaterthan

or equal to 2.0.5.
http://www.freetype.org
Application tried to create a window, but no driver could beloaded.

Unknown error (127).

[root@localhost qq]# yum list freetype*

[root@localhost qq]# yum install freetype.i686

[root@localhost qq]# ./qq.sh

Application tried to create a window, but no driver could beloaded.

Unknown error (127).

安装wine

参考:http://www.tecmint.com/install-wine-in-rhel-centos-and-fedora/

[shuiyouren@localhost wine-1.5.25]$ ./tools/wineinstall

错误:

configure: error: no acceptable C compiler found in $PATH

[shuiyouren@localhost wine-1.5.25]$ sudo yum installgcc.x86_64

错误:

configure: error: C compiler cannot create executables

原因:缺少 glibc-devel.x86_64参考:http://forum.slicehost.com/index.php?p=/discussion/1116/c-compiler-cannot-create-executables-/p1

[shuiyouren@localhost ~]$ sudo yum install glibc-devel.x86_64glibc-static.i686 glibc-static.x86_64

[shuiyouren@localhost wine-1.5.25]$ sudo yum installgcc.x86_64

错误:

configure: error: FreeType 32-bit development files not found.Fonts will not be built.

[shuiyouren@localhost ~]$ sudo yum installfreetype-devel.i686

[shuiyouren@localhost wine-1.5.25]$ ./tools/wineinstall

成功(不过要等很长时间,不过发现安装后仍然无法解决这个问题,所以不知道安装wine是否必要)!

接下来花了很长时间在英文论坛上查找这个相关资料,还好找到了。

[root@localhost qq]# sudo yum install libXxf86dga.i686

[root@localhost qq]# ./qq.sh

OK!错误消失,真是太棒了!参考:http://ubuntuforums.org/archive/index.php/t-185557.html

[shuiyouren@localhost .qq2012]$ /opt/qq2012/wineapp/qq/qq.sh

Native IE detected, not doing registration

wine: configuration in '/home/shuiyouren/.qq2012' has beenupdated.

error while loading shared libraries: libgtk-x11-2.0.so.0: cannotopen shared object file: No such file or directory

[shuiyouren@localhost ~]$ sudo yum install gtk2.i686

[shuiyouren@localhost ~]$ /tmp/linuxqq_v1.0.2_i386/qq

(qq:3464): Gtk-WARNING **: Unable to locate theme engine inmodule_path: "clearlooks",

[shuiyouren@localhost ~]$ sudo yum installPackageKit-gtk-module.i686

[shuiyouren@localhost ~]$ sudo yum install libcanberra.i686

[shuiyouren@localhost ~]$ sudo yum install gtk2-engines.i686

参考:http://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-libgtk-x11-2-0-so-0-cannot-738695/

[shuiyouren@localhost ~]$ /tmp/linuxqq_v1.0.2_i386/qq

Gtk-Message: Failed to load module "canberra-gtk-module":libcanberra-gtk-module.so: cannot open shared object file: No suchfile or director

[shuiyouren@localhost ~]$ sudo yum installlibcanberra-gtk2.i686

[shuiyouren@localhost ~]$ /tmp/linuxqq_v1.0.2_i386/qq

[21:56:19][TLOG][warn]res_db: error message-> nosuch table: res_db_file
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: