CentOS 7相关

辣鸡CentOS


安装编译环境

sudo yum install centos-release-scl
sudo yum install devtoolset-8

切换编译环境

scl enable devtoolset-8 bash

安装git 2.7.4

安装依赖

sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

下载源码

wget https://www.kernel.org/pub/software/scm/git/git-2.7.4.tar.gz
tar xzf git-2.7.4.tar.gz

编译

cd git-2.7.0
make prefix=git安装目录 all
make prefix=git安装目录 install

最后添加到环境

安装vcpkg

git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.sh

安装NASM 2.15

下载源码

wget https://www.nasm.us/pub/nasm/releasebuilds/2.15/nasm-2.15.tar.gz
tar xvfz nasm-2.15.tar.gz

编译

cd nasm-2.15
./configure --prefix=安装路径
make
make install

最后添加到环境


辣鸡CentOS,哕了

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注