从源码编译安装第二代构建工具 autotool etc.

linux 生态下的第二代构建工具包含:

m4
autoconf
automake
libtool

 

一、安装m4


打开源码地址:
https://ftp.gnu.org/gnu/m4/
下载当前最新版本:1.4.19
 

wget https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz
tar zxf m4-1.4.19.tar.gz
cd m4-1.4.19
$ ./configure --prefix=/home/hipper/ex_autotools/sourceInstall/local/m4

--prefix 需要配置为绝对路径

编译:
 

make
make install

检验:
 

$ ls /home/hipper/ex_autotools/sourceInstall/local/m4/bin/
$ /home/hipper/ex_autotools/sourceInstall/local/m4/bin/m4 --version

二、安装autoconf


项目地址:
https://www.gnu.org/software/autoconf/
源码下载地址:
https://ftp.gnu.org/gnu/autoconf/

下载:
 

$ wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz

其余步骤跟m4完全一样: tar zxf xxx.tar.gz,  configure,make -j, make install    

三、安装automake


项目地址:
https://www.gnu.org/software/automake/
下载地址:
https://ftp.gnu.org/gnu/automake/
下载:

$ wget https://ftp.gnu.org/gnu/automake/automake-1.17.tar.gz


其余步骤跟m4完全一下样: tar zxf xxx.tar.gz,  configure,make -j, make install    

四、安装libtool


项目地址:
https://www.gnu.org/software/libtool/
下载地址:
https://mirrors.ustc.edu.cn/gnu/libtool/
下载:
 

$ wget https://mirrors.ustc.edu.cn/gnu/libtool/libtool-2.5.4.tar.gz

其余步骤跟m4完全一下样: tar zxf xxx.tar.gz, configure,make -j, make install    

五,HPC-x中 ucx 的 configure 示例

# Check if ucx was built with CUDA support
shell$ ucx_info -v

# configured with: --build=powerpc64le-redhat-linux-gnu \
--host=powerpc64le-redhat-linux-gnu \
--program-prefix= \
--disable-dependency-tracking \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib64 \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-optimizations \
--disable-logging \
--disable-debug \
--disable-assertions \
--enable-mt \
--disable-params-check --enable-cma \
--without-cuda \
--without-gdrcopy \
--with-verbs --with-cm \
--with-knem \
--with-rdmacm \
--without-rocm \
--without-xpmem \
--without-ugni -\
-without-java

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值