Centos 编译 shadowsocks-libev 失败 autoreconf: automake failed with exit status
问题描述
在 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
,克隆 libbloom
、libcork
、libipset
。
$ 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
非特殊说明,本网站所有文章均为原创。如若转载,请注明出处:https://mip.cpming.top/p/shadowsocks-libev-autoreconf-automake-failed