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
相关文章推荐
- CentOS 6.4 x86_64 安装GCC 4.7.3
- Centos 6.4 x86_64 安装QQ2012解决方案
- node.js源码包安装 centos6.4 x86_64
- centos 6.4 x86_64 yum安装 xen 4.2.2
- node.js v0.10.31二进制包安装(centos6.4 x86_64)
- CentOS-6.4-x86_64-bin-DVD1安装
- CentOS 6.4 (x86_64) 安装 Oracle 10g2 备记
- CentOS-6.4-x86_64 下安装mysql5.6
- Oracle学习笔记安装篇之在CentOS 6.4 x86_64下安装Oracle11gR2
- centos6.4-x86_64-binDVD1安装教程
- CentOS-6.4-x86_64-minimal Nginx编译和安装
- centos 6.4 x86_64 (minimal) 编译安装percona
- NTP的安装配置和使用(在centos6.4_x86_64环境下)
- CentOS 6.4 x86_64 安装Oracle11gR2(带图)
- 服务器安装centos6.4 x86_64 与 配置XManager的XDMCP服务 与 配置Ntfs读写
- centos 6.4 x86_64 Icinga1.9安装
- CentOS-6.4-minimal版中安装MongoDB-x86_64-3.0.2
- CentOS-6.4-minimal版中安装MongoDB-x86_64-3.0.2
- WIN7下硬盘安装Centos 6.4 X86_64版记录
- CentOS 6.4 x86_64 安装GCC 4.7.3