Skip to content
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

install失败 #3

Open
Fishbubble opened this issue May 14, 2016 · 3 comments
Open

install失败 #3

Fishbubble opened this issue May 14, 2016 · 3 comments

Comments

@Fishbubble
Copy link

Fishbubble commented May 14, 2016

我按照说明安装好了rocksdb,并且配置了环境变量,但是执行"sh install.sh"的时候,总是出现错误,导致不能继续执行"sh build.sh"。

[root@localhost GoRedis]# sh install.sh 
install goredis libs ...
# GoRedis/libs/gorocks
could not determine kind of name for C.rocksdb_options_set_block_restart_interval
could not determine kind of name for C.rocksdb_options_set_block_size
could not determine kind of name for C.rocksdb_options_set_cache
could not determine kind of name for C.rocksdb_options_set_disable_seek_compaction
could not determine kind of name for C.rocksdb_options_set_filter_policy

请问,这个问题怎么能解决呢?

@Fishbubble
Copy link
Author

Fishbubble commented May 14, 2016

这个错误出现在“GoRedis/libs/gorocks”目录下的“options.go”文件里,我现在把报错的那几句话全部注释掉,现在终于生成了goredis-server文件,接下来需要看看能不能用

@Fishbubble
Copy link
Author

最后跑goredis-server的时候,发生错误

[root@localhost goredis]# ./goredis-server -procs 2 -p 6379 [2016-05-16 09:56:35] ======================================== [2016-05-16 09:56:35] server init, version 1.0.72 ... [2016-05-16 09:56:35] dbpath:/data/goredis_6379, logpath:/data/goredis_6379 panic: Invalid argument: Compression type Snappy is not linked with the binary.

snappy库开始是用的安装虚拟机自带的/usr/lib64/libsnappy.so.1.1.4,不好用,
又自己下载编译出/usr/lib64/libsnappy.so.1.3.0,依然是报同样的错

@Fishbubble
Copy link
Author

Fishbubble commented May 16, 2016

上面的问题解决了。
应该在编译rocksdb之前先编译snappy库,这样就可以了。

但是在go1.6的环境中,跑起来会有异常,因为对GoRedis还不是很熟悉,我会在下面的fork中修改这个问题:
new fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant