greatsql-8.0.25-17编译完成后bin里面没有mysqld
#!/bin/bashMAJOR_VERSION=8
MINOR_VERSION=0
PATCH_VERSION=25
RELEASE=17
REVISION=8bb0e5af297
GLIBC=2.17
ARCH=x86_64
MYSQL=GreatSQL
PKG_NAME=${MYSQL}-${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}-${RELEASE}-Linux-glibc${GLIBC}-${ARCH}
BASE_DIR=${PKG_NAME}
BOOST_VERSION=1_73_0
SOURCE_DIR=greatsql-8.0.25-17
CMAKE_EXE_LINKER_FLAGS=""
JOBS=24
if [ ${ARCH} = "x86_64" ] ; then
CMAKE_EXE_LINKER_FLAGS=" -ljemalloc "
fi
cd bld && \
cmake -DBOOST_INCLUDE_DIR=boost_${BOOST_VERSION} \
-DLOCAL_BOOST_DIR=boost_${BOOST_VERSION} \
-DCMAKE_INSTALL_PREFIX=${BASE_DIR} -DWITH_ZLIB=bundled \
-DWITH_NUMA=ON -DCMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS}" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release \
-DWITH_TOKUDB=OFF -DWITH_ROCKSDB=OFF \
-DCOMPILATION_COMMENT="${MYSQL} (GPL), Release ${RELEASE}, Revision ${REVISION}" \
-DMAJOR_VERSION=${MAJOR_VERSION} -DMINOR_VERSION=${MINOR_VERSION} -DPATCH_VERSION=${PATCH_VERSION} \
-DWITH_UNIT_TESTS=OFF -DWITH_NDBCLUSTER=OFF -DWITH_SSL=system -DWITH_SYSTEMD=ON \
-DWITH_AUTHENTICATION_LDAP=OFF \
-DWITH_DEBUG=1 \
-DFORCE_INSOURCE_BUILD=ON \
-DCMAKE_BUILD_TYPE=Debug
&& make -j${JOBS} VERBOSE=1 && make install
debug模式下编译得到的是mysqld-debug二进制文件,不是mysqld
页:
[1]