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

Linux 2020-06-25 阅读 64 评论 0

问题描述

Debian/Ubuntu 从源代码中编译安装 shadowsocks-libev,运行以下命令。

$ sudo apt-get install --no-install-recommends gettext build-essential autoconf libtool libpcre3-dev asciidoc xmlto libev-dev libc-ares-dev automake libmbedtls-dev libsodium-dev
$ 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