Centos 6.4 x86_64 安装QQ

最近才装的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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值