GreatSQL-GreatSQL-5.7.36-39源码编译
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: 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: *** Error 1
gmake: Leaving directory `/home/dujh/dev/greatsql/GreatSQL-GreatSQL-5.7.36-39/build-gs/workdir/TARGET/bld/CMakeFiles/CMakeTmp'
gmake: *** Error 2
页:
[1]