-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
求助:如何让gorocks支持lz4 #96
Comments
is lz4 in system path, like /usr/local/lib? maybe youcan add lz4 lib path in LD_LIBRARY_PATH. |
也就是说rocksdb会自动检测系统有没有lz4,来自动进行编译。 lz4在/usr/local/lib中。之前系统没有设置 LD_LIBRARY_PATH,所以可能是/usr/lib 路径。现在使用 但是,在编译gorocks时无法通过,哪怕没有llz4 。
报如信息很长,最后一段如下:
我的系统是mac OSX,很奇怪,现在无论我如何尝试,都无法编译gorocks了,总是报ld错误。甚至无法恢复到以前的情况。 哪怕我删掉liblz4,去掉LD_LIBRARY_PATH环境变量。 |
LD_LIBRARY_PATH is not for mac osx, but for linux. |
我阅读了qdb的代码后发现,qdb强制使用 Lz4 作为rocksdb的压缩策略。但我实际测试中总是遇到“Invalid argument: Compression type LZ4 is not linked with the binary.” 错误。
在各种文档中包括rocksdb官方文档中,也未描述,如何在编译中加入lz4的支持,已向rocksdb提issue尚未得到解答。且与gorocks相关,可能问题会有所不同,所以只能来此求助,还望大神解答。
The text was updated successfully, but these errors were encountered: