起源是要在android上运行sshfs,在Google Play 上有一个现成的,但是是收费软件,在国内买不了,虽然有各种途径可以买到,但是本着不折腾会死精神,在找到了这个项目android_external_sshfs,但是要有编译过cyanogenmod的环境才能编译出来.
然后就先折腾 cyanogenmod 编译吧.不搞不知道,一搞才发现掉大坑里了.新建了个Ubuntu 12.04虚拟机,在这里面搞,编译可以暂停了嘛(虚拟机休眠啊,快照什么的)~
按照Android的的文档搞好了准备环境,用 repo sync -j40
开始下载源码了.可以这下载速度啊...我是12M的宽带,40个并发啊,怎么速度只有几个KB/s啊.不带这样欺负新手的啊!!!!看来是伟大的墙又在发热发亮了.本来以为用goagent就能搞定了遂
export http_proxy="http://192.168.1.161:8087"
export https_proxy="http://192.168.1.161:8087"
可是没用啊,速度一点都没用提高...看来goagent不是万能的.
想起前段时间搞路由器自动翻*墙是用到的DNS解析软件dnsforwarder提供了强大的郁闷解析服务.
遂在虚拟机里
$ git clone https://github.com/holmium/dnsforwarder.git
$ cd dnsforwarder
$ ./configure
$ make -j4
configure没通过,装上各种dev库,
最后就报错了
dnsforwarder/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] Error 127
貌似是autoconf的问题,直觉告诉这种库的错误不好搞.搞不好就把系统的库弄挂了.
转战到虚拟机的宿主,Mac OS X编译.
configure没问题,可能是缺了些什么库,编译的时候有问题了.
祭出Homebrew,不想搞乱整个系统的PATH变量