Tencent / phxsql

A high availability MySQL cluster that guarantees data consistency between a master and slaves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译出错

JackieLi888 opened this issue · comments

最后make的时候报错:
-- Build files have been written to: /soft/phxsql/percona
[ 21%] Built target strings
[ 31%] Built target yassl
[ 42%] Built target taocrypt
[ 89%] Built target mysys
[ 89%] Built target dbug
[ 94%] Built target mysys_ssl
Linking CXX executable comp_err
/usr/bin/ld: cannot find -lzlib
collect2: error: ld returned 1 exit status
make[3]: *** [extra/comp_err] Error 1
make[2]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make[1]: *** [libmysql/CMakeFiles/perconaserverclient.dir/rule] Error 2
make: *** [perconaserverclient] Error 2
/soft/phxsql
-- Running cmake version 2.8.12.2
-- MySQL 5.6.31-77.0
-- Packaging as: percona-server-5.6.31-77.0-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- READLINE_INCLUDE_DIR /usr/include/readline
-- READLINE_LIBRARY /usr/lib64/libreadline.so
-- Using cmake version 2.8.12.2
-- Not building NDB
-- tokudb-backup-plugin include backup HotBackup
running cp /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.a /soft/phxsql/percona/..//.lib/extlib/libstdcxx.a 2>&1
-- Library perconaserverclient depends on OSLIBS -lpthread;zlib;m;rt;dl
-- CMAKE_BUILD_TYPE: Release
-- COMPILE_DEFINITIONS: HAVE_CONFIG_H
-- CMAKE_C_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
-- CMAKE_C_FLAGS_RELEASE: -O3 -DNDEBUG -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG -DDBUG_OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /soft/phxsql/percona
看样子 一步是 找不到zlib,一步是 percona 依赖一些系统库,具体是 需要安装 哪些安装包?
盼回复

最后make的时候报错:
-- Build files have been written to: /soft/phxsql/percona
[ 21%] Built target strings
[ 31%] Built target yassl
[ 42%] Built target taocrypt
[ 89%] Built target mysys
[ 89%] Built target dbug
[ 94%] Built target mysys_ssl
Linking CXX executable comp_err
/usr/bin/ld: cannot find -lzlib
collect2: error: ld returned 1 exit status
make[3]: *** [extra/comp_err] Error 1
make[2]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make[1]: *** [libmysql/CMakeFiles/perconaserverclient.dir/rule] Error 2
make: *** [perconaserverclient] Error 2
/soft/phxsql
-- Running cmake version 2.8.12.2
-- MySQL 5.6.31-77.0
-- Packaging as: percona-server-5.6.31-77.0-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- READLINE_INCLUDE_DIR /usr/include/readline
-- READLINE_LIBRARY /usr/lib64/libreadline.so
-- Using cmake version 2.8.12.2
-- Not building NDB
-- tokudb-backup-plugin include backup HotBackup
running cp /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.a /soft/phxsql/percona/..//.lib/extlib/libstdcxx.a 2>&1
-- Library perconaserverclient depends on OSLIBS -lpthread;zlib;m;rt;dl
-- CMAKE_BUILD_TYPE: Release
-- COMPILE_DEFINITIONS: HAVE_CONFIG_H
-- CMAKE_C_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
-- CMAKE_C_FLAGS_RELEASE: -O3 -DNDEBUG -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG -DDBUG_OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /soft/phxsql/percona
看样子 一步是 找不到zlib,一步是 percona 依赖一些系统库,具体是 需要安装 哪些安装包?
盼回复