MyRocks 编译问题
MyRocks Compilation Issue
错误是
my_compress.c:542: undefined reference to `LZ4F_resetDecompressionContext'
我的 os 是 centos 7.7.1908,我已经通过 yum install -y lz4-devel
安装了 lz4。安装目录如下:
work@ost:~/workspace/mysql-5.6/bld $ ls /usr/lib64/liblz*
/usr/lib64/liblz4.so /usr/lib64/liblz4.so.1 /usr/lib64/liblz4.so.1.7.5 /usr/lib64/liblzma.so.5 /usr/lib64/liblzma.so.5.2.2
work@ost:~/workspace/mysql-5.6/bld $ ls /usr/include/lz4*
/usr/include/lz4frame.h /usr/include/lz4.h /usr/include/lz4hc.h
我找到了答案。 lz4的版本太旧了。请看这里(https://github.com/facebook/mysql-5.6/issues/1114)
错误是
my_compress.c:542: undefined reference to `LZ4F_resetDecompressionContext'
我的 os 是 centos 7.7.1908,我已经通过 yum install -y lz4-devel
安装了 lz4。安装目录如下:
work@ost:~/workspace/mysql-5.6/bld $ ls /usr/lib64/liblz*
/usr/lib64/liblz4.so /usr/lib64/liblz4.so.1 /usr/lib64/liblz4.so.1.7.5 /usr/lib64/liblzma.so.5 /usr/lib64/liblzma.so.5.2.2
work@ost:~/workspace/mysql-5.6/bld $ ls /usr/include/lz4*
/usr/include/lz4frame.h /usr/include/lz4.h /usr/include/lz4hc.h
我找到了答案。 lz4的版本太旧了。请看这里(https://github.com/facebook/mysql-5.6/issues/1114)