我在Ubuntu(12.04)机器上安装了Aeropike和erlang(OTP17)。Aerospike服务运行良好。我已经安装了充气塞erlang驱动器。我无法使用erlang驱动程序连接到Aeropike,它无法加载.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)
我相信你已经看到了,但如果没有,我在以下链接上发现了讨论的问题:
https://discuss.aerospike.com/t/erlang-nif-load-failing/159
这个链接描述了在Ubuntu 14.04上编译Aerospike Erlang客户端,而不是12.04:
http://nikola.link/?p=81
我希望这能有所帮助,
-DM