美文网首页
Doris Centos7 编译

Doris Centos7 编译

作者: 张家锋 | 来源:发表于2020-06-16 12:55 被阅读0次

操作系统:centos7

安装依赖

需要依赖epel中的软件,首先安装epel的repo,建议使用阿里源,速度快

wget https://mirrors.aliyun.com/repo/epel-7.repo

安装相关依赖

yum -y install libtool-ltdl-devel  ncurses-devel devtoolset-7-binutils-devel  build-essential cmake byacc flex automake libtool-bin bison libiberty-dev

编译依赖:

GCC 7 ,Cmake 3.12

首先升级GCC和CMake

 yum install centos-release-scl

yum install devtoolset-7-gcc*

##启用gcc 7

scl enable devtoolset-7 bash

which gcc

gcc --version

直接下载cmake-3.12.2-Linux-x86_64.tar.gz编译好的包

解压,添加环境变量即刻

安装JDK及maven,具体方法网上多的很,JDK 1.8以上版本,maven3.5以上版本

安装过程中的问题

./zstd_ep-install/lib/libzstd.a 找不到这个文件

首先find / -name libzstd.a

找到以后,将这个文件拷贝到thirdparty/src/arrow-apache-arrow-0.15.1/cpp/release/zstd_ep-install/lib目录下,如果没有目录,手动创建

如果包没有找到bdf.h头文件说明你没有安装devtoolset-7-binutils-devel,这个是在epel源里,需要从epel源安装,然后编译就可以了

编译完成以后,在output目录下就有be,fe,udf三个目录

相关文章

网友评论

      本文标题:Doris Centos7 编译

      本文链接:https://www.haomeiwen.com/subject/opglxktx.html