Centos 编译 shadowsocks-libev 失败 autoreconf: automake failed with exit status

Linux 2020-06-24 阅读 349 评论 0

问题描述

在 Centos 8 安装 shadowsocks-libev,运行以下命令。

$ sudo yum install epel-release -y
$ sudo yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y
$ git clone https://github.com/shadowsocks/shadowsocks-libev.git
$ cd shadowsocks-libev/
$ ./autogen.sh

最后报错了。

configure.ac:244: error: required file 'libbloom/Makefile.in' not found
configure.ac:244: error: required file 'libcork/Makefile.in' not found
configure.ac:244: error: required file 'libipset/Makefile.in' not found
src/Makefile.am: installing 'auto/depcomp'
autoreconf: automake failed with exit status: 1

解决方法

运行 git submodule update --init,克隆 libbloomlibcorklibipset

$ git submodule update --init
Submodule 'libbloom' (https://github.com/shadowsocks/libbloom.git) registered for path 'libbloom'
Submodule 'libcork' (https://github.com/shadowsocks/libcork.git) registered for path 'libcork'
Submodule 'libipset' (https://github.com/shadowsocks/ipset.git) registered for path 'libipset'
Cloning into '/home/cpm/Downloads/packages/shadowsocks-libev/libbloom'...
Cloning into '/home/cpm/Downloads/packages/shadowsocks-libev/libcork'...
Cloning into '/home/cpm/Downloads/packages/shadowsocks-libev/libipset'...
Submodule path 'libbloom': checked out '437e1add5a2b9a87797d8c648df7cf5f3ee155a8'
Submodule path 'libcork': checked out '074e074b26e9e372e90e6ade215217763c8644aa'
Submodule path 'libipset': checked out '3ea7fe30adf4b39b27d932e5a70a2ddce4adb508'

继续编译安装。

$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
最后更新 2020-06-25
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });