The error is as follows:
[root@localhost mariadb-10.3.0]# cmake . -DBUILD_CONFIG=mysql_release
-- Running cmake version 3.8.0
-- MariaDB 10.3.0
- - Packaging as: mariadb-10.3.0-Linux-x86_64
-- Checking for one of the modules 'libsystemd;libsystemd-daemon'
== Configuring MariaDB Connector/C
SYSTEM processor: x86_64
CMake Error at cmake/jemalloc.cmake:38 (MESSAGE):
jemalloc is not found
Call Stack (most recent call first):
storage/tokudb/CMakeLists.txt:33 (CHECK_JEMALLOC)
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/ mariadb-10.3.0/CMakeFiles/CMakeError.log".
[root@localhost mariadb-10.3.0]
#I went through CMakeError, but I didn’t understand it. The following is just a part, and I don’t know if it is useful;
Run Build Command: "/usr/bin/gmake" "cmTC_e1c34/fast"
/usr /bin/gmake -f CMakeFiles/cmTC_e1c34.dir/build.make CMakeFiles/cmTC_e1c34.dir/build
gmake[1]: Enter the directory "/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeTmp"
Building C object CMakeFiles/cmTC_e1c34.dir/CheckFunctionExists.c.o
/usr/bin/cc -DPACKAGE=test -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_ MACROS -D__STDC_LIMIT_MACROS -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -DCHECK_FUNCTION_EXISTS=malloc_stats_print -o CMakeFiles/cmTC_e1c34.dir/CheckFunctionExists.c.o -c /usr/local /share/cmake-3.8/Modules/CheckFunctionExists.c
Linking C executable cmTC_e1c34
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e1c34.dir/link.txt --verbose=1
/ usr/bin/cc -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -DCHECK_FUNCTION_EXISTS=malloc_stats_print -rdynamic CMakeFiles/cmTC_e1c34.dir/ CheckFunctionExists.c.o -o cmTC_e1c34 -ljemalloc_pic -lpthread -ldl -lm
/usr/bin/ld: cannot find -ljemalloc_pic
collect2: Error: ld returned 1
gmake[1]: * [cmTC_e1c34] Error 1
gmake[1]: Leaving directory "/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeTmp"
gmake: * [cmTC_e1c34 /fast] Error 2
Okay, it should be that this version of jemalloc does not support mariadb-10.3. It will be OK if you replace it with a 10.0 one