无法在ubuntu中加载aerospike erlang客户端的.nif模块

时间:2015-03-30 18:03:13

标签: ubuntu erlang aerospike erlang-nif

我在Ubuntu(12.04)机器上安装了aerospike和erlang(OTP17)。 Aerospike服务运行良好。我安装了aerospike erlang驱动程序。 我无法使用erlang驱动程序连接到aerospike,无法加载.nif文件

我尝试了多种方法将/ usr / lib / x86_64-linux-gnu链接到/ usr / lib64但直到现在都没有帮助。

错误信息如下

:: Init() :: Loading aerospike NIF Module 

=ERROR REPORT==== 30-Mar-2015::23:08:55 ===
Error in process <0.40.0> with exit value: {{badmatch,{error,    {load_failed,"Failed to load NIF library: './aerospike_nif.so: undefined     symbol: RIPEMD160_Init'"}}},[{aerospike,init,0,[{file,"aerospike.erl"},    {line,70}]},{code_server,'-handle_on_load/4-fun-0-',1,[... 
=ERROR REPORT==== 30-Mar-2015::23:08:55 ===
The on_load function for module aerospike returned {{badmatch,
                                                 {error,
                                                  {load_failed,
                                                   "Failed to load NIF library: './aerospike_nif.so: undefined symbol: RIPEMD160_Init'"}}},
                                                [{aerospike,init,0,
                                                  [{file,...},{...}]},
                                                 {code_server,
                                                  '-handle_on_load/4-fun-0-',
                                                  1,
                                                  [{...}|...]}]}
** exception error: undefined function aerospike:connect/2
 in function  helloWorld:hello/0 (helloWorld.erl, line 37)

1 个答案:

答案 0 :(得分:1)

我相信您已经看过这个,但如果没有,我发现在以下链接中讨论了这个问题:

https://discuss.aerospike.com/t/erlang-nif-load-failing/159

此链接描述了编译Aerospike Erlang客户端,虽然在Ubuntu 14.04上,而不是12.04:

http://nikola.link/?p=81

我希望这有帮助,

-DM