按照我的文章:http://blog.csdn.net/zangcf/article/details/23566999在ubuntu 14.04上搭建android编译环境,编译过程会出以下两个错误:
1,Can‘t locateSwitch.pm in @INC (you may need to install the Switch module) (@INC contains:/etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18/usr/local/lib/site_perl
.) at external/webkit/Source/WebCore/make-hash-tools.plline 23.
BEGINfailed--compilation aborted atexternal/webkit/Source/WebCore/make-hash-tools.pl line 23.
make[3]: ***[out/target/product/project/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp]Error 2
2, Copy xml: out/target/product/project/system/etc/epo_conf.xml
/bin/bash: xmllint: command not found
make[3]: *** [out/target/product/project/system/etc/epo_conf.xml] Error 127
需要补充安装两个东西:
sudo apt-getinstall libswitch-perl
sudo apt-get install libxml2-utils
之后,就可以正常编译android系统了。
原文:http://blog.csdn.net/zangcf/article/details/43794817