GreatSQL社区

搜索

[已解决] GreatSQL-GreatSQL-5.7.36-39源码编译

609 0 2024-3-12 16:48
GreatSQL-GreatSQL-5.7.36-39源码编译需要cmake版本大于多少?
我在docker容器里安装centos7.9镜像,使用cmake 2.8.12.2在GreatSQL-GreatSQL-5.7.36-39源码build-gs目录里执行编译
bash -xe ./percona-server-5.7_builder.sh --builddir=`pwd`/workdir --get_sources=0  --install_deps=1 --with_ssl=1 --build_tarball=1 --no_git_info=1 --local_boost=1
编译失败,报错如下,请问是因为cmake版本太低吗?

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/dujh/dev/greatsql/GreatSQL-GreatSQL-5.7.36-39/build-gs/workdir/TARGET/bld/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_ea0d6/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_ea0d6.dir/build.make CMakeFiles/cmTC_ea0d6.dir/build
gmake[1]: Entering directory `/home/dujh/dev/greatsql/GreatSQL-GreatSQL-5.7.36-39/build-gs/workdir/TARGET/bld/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ea0d6.dir/CheckFunctionExists.c.o
/opt/rh/devtoolset-10/root/usr/bin/gcc   -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -DPERCONA_INNODB_VERSION=5.7.36 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_ea0d6.dir/CheckFunctionExists.c.o   -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_ea0d6
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_ea0d6.dir/link.txt --verbose=1
/opt/rh/devtoolset-10/root/usr/bin/gcc -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -DPERCONA_INNODB_VERSION=5.7.36 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_ea0d6.dir/CheckFunctionExists.c.o  -o cmTC_ea0d6  -lpthreads
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_ea0d6] Error 1
gmake[1]: Leaving directory `/home/dujh/dev/greatsql/GreatSQL-GreatSQL-5.7.36-39/build-gs/workdir/TARGET/bld/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_ea0d6/fast] Error 2

全部回复(0)
gavindu85

5

主题

0

博客

13

贡献

新手上路

Rank: 1

积分
21

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-11-23 20:56 , Processed in 0.019083 second(s), 12 queries , Redis On.
快速回复 返回顶部 返回列表