百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 技术文章 > 正文

大数据Doris(六):编译 Doris遇到的问题

zhezhongyun 2025-04-29 06:49 47 浏览

编译 Doris遇到的问题


一、js_generator.cc:(.text+0xfc3c): undefined reference to `well_known_types_js’


查找 Doris 源码中的 js_embed,一般在三方库的 protobuf 下,直接移除掉,重新编译即可


find ./ -name js_embed
mv ./thirdparty/src/protobuf-3.5.1/src/js_embed ./



二、/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found


问题的原因就是在使用 gcc 编译时,使用本地环境的库 libstdc++.so.6 中的方法时找不到需要的信息,一般是在安装或升级是没有把环境变量的这个库文件升级,解决方法如下:


find / -name "libstdc++.so*"
cd /usr/lib64
strings /usr/lib64/libstdc++.so.6 | grep GLIBC

# 查看 /usr/lib64 目录下的 libstdc 开头的文件
[root@node1 lib64]# ll libstdc*
lrwxrwxrwx 1 root root     19 Nov 19 09:07 libstdc++.so.6 -> libstdc++.so.6.0.19
-rwxr-xr-x 1 root root 995840 Sep 30 10:17 libstdc++.so.6.0.19

# 把高版本的拷贝到 /usr/lib64 下
cp /usr/local/gcc-7.3.0/lib64/libstdc++.so.6.0.24 ./
# 创建软连接
rm libstdc++.so.6
ln -s libstdc++.so.6.0.24 libstdc++.so.6



三、libatomic.so.1: cannot open shared object file: No such file or directory


编译三方包时如果报如下的错误


./comp_err: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
make[3]: *** [include/mysqld_error.h] Error 127
make[2]: *** [extra/CMakeFiles/GenError.dir/all] Error 2
make[1]: *** [libmysql/CMakeFiles/mysqlclient.dir/rule] Error 2
make: *** [mysqlclient] Error 2



原因是安装 gcc 或升级之后,其中的 libatomic.so.1 包没有在环境变量中生效,我们直接将新版本 gcc 的安装目录下的 libatomic.so.1 软连到 /usr/lib64 下即可。


ln -s /usr/local/gcc-7.3.0/lib64/libatomic.so.1 /usr/lib64/libatomic.so.1



四、Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)


在编译安装 GCC 7.3 时,其中我们安装了 ncurses-devel,如果忽略了这个,系统环境又没有安装,则在编译 Doris 时就会报这个错误,解决方法就是 yum 安装这个依赖。


yum install ncurses-devel



五、configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.


环境中缺少依赖,解决方法如下:


yum install  gmp  gmp-devel  mpfr  mpfr-devel  libmpc  libmpc-devel



六、error while loading shared libraries: libisl.so.15: cannot open shared object file: No such file or directory


这个问题比较隐蔽,通过访问 RPM Search搜索 libisl.so.15 库。




在查询出的结果中,我们查找 CentOS7 的条目,可以发下这个库为
libisl15-0.18-9.94.el7.x86_64.rpm,到这里问题就好解决了,我们直接下载这个包安装即可




wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/aevseev:/devel/CentOS7/x86_64/libisl15-0.18-9.94.el7.x86_64.rpm
rpm -ivh libisl15-0.18-9.94.el7.x86_64.rpm



七、Could not resolve dependencies for project org.apache:fe-core:jar:3.4.0: Failure to find com.sleepycat:je:jar:7.3.7


原因就是通过
https://repo.spring.io/libs-milestone/com/sleepycat/je/7.3.7/je-7.3.7.jar 下载包时需要用户认证,所以会下载失败,可以在 Maven 配置文件 setting.xml 中新增如下的仓库镜像,重新编译即可。


<mirror>
  <id>oracleReleases</id>
  <mirrorOf>oracleReleases</mirrorOf>
  <name>Oracle Released Java Packages</name>
  <url>http://download.oracle.com/maven</url>
</mirror>



八、A required class was missing while executing net.sourceforge.czt.dev:cup-maven-plugin:1.6-cdh:generate: org/sonatype/plexus/build/incremental/BuildContext


清除 Maven 本地仓库的 cup-maven-plugin(Maven 配置的仓库路径下的
net/sourceforge/czt/dev/cup-maven-plugin/1.6-cdh),为了防止其他镜像资源的影响,可以先将本地 Maven 配置文件中添加的其它镜像注释掉,可以只保留下面的一个镜像,用来可以正常下载 je-7.3.7.jar 依赖包。


</mirrors>
    <mirror>
      <id>oracleReleases</id>
      <mirrorOf>oracleReleases</mirrorOf>
      <name>Oracle Released Java Packages</name>
      <url>http://download.oracle.com/maven</url>
    </mirror>
</mirrors>



Doris 源码下的 fe/pom.xml 中的 <profiles> 标签里的检查下,可以修改为如下链接,然后再次执行编译即可


<!-- for general repository -->
<profile>
	<id>general-env</id>
	<activation>
		<property>
			<name>!env.CUSTOM_MAVEN_REPO</name>
		</property>
	</activation>

	<repositories>
		<repository>
			<id>central</id>
			<name>central maven repo https</name>
			<url>https://repo.maven.apache.org/maven2</url>
		</repository>
		<!-- for java-cup -->
		<repository>
			<!---<id>cloudera-thirdparty</id>
			<url>https://repository.cloudera.com/content/repositories/third-party/</url>-->
			<id>cloudera-public</id>
			<url>https://repository.cloudera.com/artifactory/public/</url>
		</repository>
		<!-- for bdb je -->
		<repository>
			<id>oracleReleases</id>
			<url>http://download.oracle.com/maven</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>spring-plugins</id>
			<!--<url>https://repo.spring.io/plugins-release/</url>-->
			<url>https://repository.cloudera.com/artifactory/ext-release-local</url>
		</pluginRepository>
		<!-- for cup-maven-plugin -->
		<pluginRepository>
			<!--<id>cloudera-plugins</id>
			<url>https://repository.cloudera.com/content/groups/public/</url>-->
			<id>cloudera-public</id>
			<url>https://repository.cloudera.com/artifactory/public/</url>
		</pluginRepository>
	</pluginRepositories>
</profile>

相关推荐

perl基础——循环控制_principle循环

在编程中,我们往往需要进行不同情况的判断,选择,重复操作。这些时候我们需要对简单语句来添加循环控制变量或者命令。if/unless我们需要在满足特定条件下再执行的语句,可以通过if/unle...

CHAPTER 2 The Antechamber of M de Treville 第二章 特雷维尔先生的前厅

CHAPTER1TheThreePresentsofD'ArtagnantheElderCHAPTER2TheAntechamber...

CHAPTER 5 The King&#39;S Musketeers and the Cardinal&#39;S Guards 第五章 国王的火枪手和红衣主教的卫士

CHAPTER3TheAudienceCHAPTER5TheKing'SMusketeersandtheCardinal'SGuard...

CHAPTER 3 The Audience 第三章 接见

CHAPTER3TheAudienceCHAPTER3TheAudience第三章接见M.DeTrévillewasatt...

别搞印象流!数据说明谁才是外线防守第一人!

来源:Reddit译者:@assholeeric编辑:伯伦WhoarethebestperimeterdefendersintheNBA?Here'sagraphofStea...

V-Day commemorations prove anti-China claims hollow

People'sLiberationArmyhonorguardstakepartinthemilitaryparademarkingthe80thanniversary...

EasyPoi使用_easypoi api

EasyPoi的主要特点:1.设计精巧,使用简单2.接口丰富,扩展简单3.默认值多,writelessdomore4.springmvc支持,web导出可以简单明了使用1.easypoi...

关于Oracle数据库12c 新特性总结_oracle数据库12514

概述今天主要简单介绍一下Oracle12c的一些新特性,仅供参考。参考:http://docs.oracle.com/database/121/NEWFT/chapter12102.htm#NEWFT...

【开发者成长】JAVA 线上故障排查完整套路!

线上故障主要会包括CPU、磁盘、内存以及网络问题,而大多数故障可能会包含不止一个层面的问题,所以进行排查时候尽量四个方面依次排查一遍。同时例如jstack、jmap等工具也是不囿于一个方面的问题...

使用 Python 向多个地址发送电子邮件

在本文中,我们将演示如何使用Python编程语言向使用不同电子邮件地址的不同收件人发送电子邮件。具体来说,我们将向许多不同的人发送电子邮件。使用Python向多个地址发送电子邮件Python...

提高工作效率的--Linux常用命令,能够决解95%以上的问题

点击上方关注,第一时间接受干货转发,点赞,收藏,不如一次关注评论区第一条注意查看回复:Linux命令获取linux常用命令大全pdf+Linux命令行大全pdf为什么要学习Linux命令?1、因为Li...

linux常用系统命令_linux操作系统常用命令

系统信息arch显示机器的处理器架构dmidecode-q显示硬件系统部件-(SMBIOS/DMI)hdparm-i/dev/hda罗列一个磁盘的架构特性hdparm-tT/dev/s...

小白入门必知必会-PostgreSQL-15.2源码编译安装

一PostgreSQL编译安装1.1下载源码包在PostgreSQL官方主页https://www.postgresql.org/ftp/source/下载区选择所需格式的源码包下载。cd/we...

Linux操作系统之常用命令_linux系统常用命令详解

Linux操作系统一、常用命令1.系统(1)系统信息arch显示机器的处理器架构uname-m显示机器的处理器架构uname-r显示正在使用的内核版本dmidecode-q显示硬件系...

linux网络命名空间简介_linux 网络相关命令

此篇会以例子的方式介绍下linux网络命名空间。此例中会创建两个networknamespace:nsa、nsb,一个网桥bridge0,nsa、nsb中添加网络设备veth,网络设备间...