我需要安装自动工具。当我在 Internet 上搜索时,有多种方法可以使用诸如 之类的命令./configure。
请指导我如何安装autoconf,autotools和我的系统上相关的包。分步指南将非常有帮助。
May*_*hux 32
安装自动工具:
sudo apt-get install autotools-dev
Run Code Online (Sandbox Code Playgroud)
安装自动配置
sudo apt-get install autoconf
Run Code Online (Sandbox Code Playgroud)
Vic*_*lea 13
除非您需要最新版本的 autotools,否则始终首选从存储库安装。在这种情况下,您必须手动下载并手动安装。GNU autotools 是三个包:Autoconf、Automake 和 Libtool。以下是手动安装它的步骤:
cd /usr/local/src
Run Code Online (Sandbox Code Playgroud)
自动配置:
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xf autoconf*
cd autoconf-2.69
sh configure --prefix /usr/local
make install
Run Code Online (Sandbox Code Playgroud)
汽车制造商:
wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
tar xf automake*
cd automake-1.15
sh configure --prefix /usr/local
make install
Run Code Online (Sandbox Code Playgroud)
库工具:
wget http://mirror.jre655.com/GNU/libtool/libtool-2.4.6.tar.gz
tar xf libtool*
cd libtool-2.4.6
sh configure --prefix /usr/local
make install
Run Code Online (Sandbox Code Playgroud)
最重要的是,
您不需要安装 autotools 即可运行./configure,这是 autotools 的一个关键功能。另一方面,如果您没有获得配置脚本,您将需要安装 autotools 来生成它。
注意
make install会在内部调用make. 因此,在这种情况下不需要调用make。通常情况下,自动工具期待您来电make没有sudo的特权和make install用sudo的。在这种情况下,为了简单起见,我跳过了本指南。相信自动工具生成的 Makefile 中没有恶意软件是(或者是?)相当合理的。