详细错误:
configure: error: cannot find install-sh, install.sh, or shtool in "/home/tsit/jna-5.8.0/native/libffi" "/home/tsit/jna-5.8.0/native/libffi/.." "/home/tsit/jna-5.8.0/native/libffi/../.." make: *** [Makefile:511:../build/native/libffi/.libs/libffi.a] 错误 1
解决办法:
sudo apt-get install automake autoconf libtool ./configure, make all, make install # 注意检查目录。比如编译libffi,会提示: # autoreconf: 'configure.ac' or 'configure.in' is required # 这个时候,进入libffi目录即可。 $ autoreconf -vif $ ./configure --prefix=/usr/lib/erlang/lib $ make $ sudo make instal