【问题标题】:Not able to load .nif module of aerospike erlang client in ubuntu无法在 ubuntu 中加载 aerospike erlang 客户端的 .nif 模块
【发布时间】:2015-06-03 20:58:36
【问题描述】:

我在 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)

【问题讨论】:

    标签: ubuntu erlang aerospike erlang-nif


    【解决方案1】:

    我确定您已经看过这个,但如果没有,我在以下链接中找到了讨论的问题:

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

    此链接描述了在 Ubuntu 14.04 而非 12.04 上编译 Aerospike Erlang 客户端:

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

    希望对你有帮助,

    -DM

    【讨论】:

    • 是的,我之前试过了,没用。它在 cent/fedora 上无缝运行。我也怀疑目录结构,但一切都是徒劳的。无论如何,感谢您的快速回复。
    猜你喜欢
    • 1970-01-01
    • 2016-10-09
    • 2014-04-17
    • 1970-01-01
    • 2013-04-07
    • 1970-01-01
    • 1970-01-01
    • 2014-06-04
    • 2017-10-26
    相关资源
    最近更新 更多