Linux调用emulator报错的解决方案

android启动报错的解决办法

基本只有64位Linux系统会出现这个问题!!

报错信息大致如下[无关是什么IDE]:

Failed to start emulator: Cannot run program “AndroidSDK目录/emulator”: error=2, No such file or directory

解决方案如下:

1
2
3
4
5
6
7
8
9
10
11
12
//用yum[ubuntu换成apt]安装:glibc.i686和libstdc++.i686

//fedora,redhat,centos命令如下:

yum install glibc.i686 -y
yum install libstdc++.i686

//补充,还需要安装以下包fedora/centos/redhat:

yum install alsa-lib-devel.i686 alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686 libmpg123-devel.i686 --setopt=protected_multilib=false

//在64位系统上安装32位的包,yum可能提示包冲突,在yum后面加上 --setopt=protected_multilib=false在安装包后面加上这个参数即可[上面的那条命令已经添加了]

之后再次调用就可以了.

Linux+Nginx+PHP+MySQL
image-2222

Go语言

最近在看Go语言的教程,不争论好与坏,只是感觉真的方便了不少.作为”新”语言,go语言加油!!

简单的安装方法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//下载go语言的安装包[需要番QIANG]:http://golang.org/doc/install
//下载tar.gz包.
tar -zxvf 你下载的包.tar.gz
//放入到环境变量
vim /etc/profile
//加入下面的内容到最后
export GOROOT=你的go包解压目录
export PATH=$GOROOT/bin:$PATH
//:wq! 保存并退出
//运行下面的命令让环境变量生效.
source /etc/profile
//然后输入下面的命令,如果有输出就安装好了
go
//-

其他

进入12月,零零散散的学一些东西,没法成文.

期待2014年终总结把.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

*

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据