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