linux安装cmake正确方式

第一步安装ccache 

wget http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz
tar -zxf ccache-3.2.4.tar.gz
cd ccache-3.2.4
./configure -prefix=/usr/local/ccache-3.2.4
make -j8
make install
cd /usr/bin
mv ccache ccache_bk
ln -s /usr/local/ccache-3.2.4/bin/ccache ccache
ccache --v 

Python-3.7.3.tar.xz

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel

tar -zxvf Python-3.7.3.tar.xz

mkdir /usr/local/python3

cd Python-3.7.3

./configure --prefix=/usr/local/python3

make && make install

ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3

ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3

 下载zlib-1.2.11.tar.gz

./configure
make
make install

cmake-3.14.0.tar.gz

tar -zxvf cmake-3.14.0.tar.gz
sudo yum install zlib-devel.x86_64
sudo yum install libcurl-devel.x86_64
./bootstrap --system-curl
sudo make && sudo make install

 

 

你可能感兴趣的:(Android)