-
环境准备:
- 运行环境:centos7
- clickhouse版本:v21.7.5.29-stable
- gcc版本:gcc11
-
环境安装:
- git安装:yum install git -y
- clickhouse源码下载:
# 替换github的源(因为墙的原因) git config --global url."https://hub.fastgit.org".insteadOf https://github.com git clone https://github.com/ClickHouse/ClickHouse cd ClickHouse git tag -l git checkout -b v21.7.5.29-stable git submodule sync git submodule update --init --recursive #等吧
- gcc11安装
# base centos 7 yum update yum install -y gcc gcc-c++ yum install -y bzip2 wget -P /home https://mirrors.aliyun.com/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz cd /home && tar -xzvf /home/gcc-11.2.0.tar.gz cd /home/gcc-11.2.0 && ./contrib/download_prerequisites #这一步看网速,需要挺久的 mkdir /usr/lib/gcc/x86_64-redhat-linux/11.2.0 mkdir /home/gcc-build-11.2.0 cd /home
clickhouse源码编译
最新推荐文章于 2024-04-23 14:30:57 发布