Linking CXX shared library libft.so
/usr/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-dev
CentOS上面的安装包名称为 zlib-devel
Command:
yum install zlib-devel