1、linux下安装cmake方法
tar -zxvf cmake-3.10.0-rc4-Linux-x86_64.tar.gz
mv cmake-3.10.0-rc4-Linux-x86_64 cmake
在/etc/profile 中添加 PATH cmake的bin目录(我的/root/cmake/bin)
source /etc/profile
2、m4
下载地址:ftp://ftp.gnu.org/gnu/m4/ 下载最新版
安装命令参考
tar -xzvf m4-1.4.13.tar.gz \
&& cd m4-1.4.13 \
&& ./configure -prefix=/usr/local
make && make install
在/etc/profile 中添加 PATH m4的bin目录(我的/usr/local/bin/)
3、autoconf(centos直接yum install autoconf)
下载地址:http://ftp.gnu.org/gnu/autoconf/ 下载最新版
安装命令参考
tar -xzvf autoconf-2.65.tar.gz \
&& cd autoconf-2.65 \
&& ./configure -prefix=/usr/local
make && make install
4、automake
下载地址:http://ftp.gnu.org/gnu/automake/ 下载版本1.12.1
安装命令参考
tar xzvf automake-1.11.tar.gz \
&& cd automake-1.11 \
&& ./configure –prefix=/usr/local
make && make install
5、libtool(centos直接 yum install libtool)
下载地址:http://ftp.gnu.org/gnu/libtool/ (版本2.4)
安装命令参考:
tar xzvf libtool-2.2.6b.tar.gz \
&& cd libtool-2.2.6b \
&& ./configure -prefix=/usr/local
make && make install
6、pkg-config
下载地址:https://pkg-config.freedesktop.org/releases/ 使用0.29.2版本
安装命令参考:
tar -zxvf pkg-config-0.28.tar.gz
./configure
make(我这里出错了,但是也能用)
make check
make install
7、glibc(centos直接yum install glibc)
下载地址:http://ftp.gnu.org/gnu/glibc/ 2.28版本
9、libffi 3.2.1
安装三部曲