centos7安装mariadb10遇到的问题解决

4. 安装中的错误

4.1 /bin/ld: cannot find -lz

/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [storage/tokudb/ft-index/ft/libft.so] Error 1
make[1]: *** [storage/tokudb/ft-index/ft/CMakeFiles/ft.dir/all] Error 2
make: *** [all] Error 2

原因:缺少zlib开发包

解决:

原文地址:https://www.cnblogs.com/leku_cc/p/6043324.html