代码之家  ›  专栏  ›  技术社区  ›  Raghuveer

Riak Erlang模块安装错误

  •  1
  • Raghuveer  · 技术社区  · 9 年前

    我在riak erlang客户机的主分支打了电话 make

       ./rebar get-deps
    ==> meck (get-deps)
    ==> protobuffs (get-deps)
    ==> hamcrest (get-deps)
    ==> riak_pb (get-deps)
    ==> riak-erlang-client (get-deps)
    ./rebar compile
    ==> meck (pre_compile)
    ==> meck (compile)
    ==> protobuffs (pre_compile)
    ==> protobuffs (compile)
    ==> hamcrest (pre_compile)
    ==> hamcrest (compile)
    ==> hamcrest (post_compile)
    ==> riak_pb (pre_compile)
    ==> riak_pb (compile)
    ==> riak-erlang-client (compile)
    raghuveer@ubuntu:~/erlang-git/riak-erlang-client$ erl -pa $PATH_TO_RIAKC/ebin $PATH_TO_RIAKC/deps/*/ebin
    Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
    
    Eshell V7.3  (abort with ^G)
    1> code:which(riakc_pb_socket).
    non_existing
    

    也试过

    make clean && make all

    建造很顺利,但当我打电话

    ./rebar install

    我看到不能在erlang java客户端目录上运行。很好,为了检查安装是否已经完成,我运行了以下程序:

    /riak-erlang-client$ erl -pa $PATH_TO_RIAKC/ebin $PATH_TO_RIAKC/deps/*/ebin
    Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
    
    Eshell V7.3  (abort with ^G)
    1> code:which(riakc_pb_socket).
    non_existing
    

    如何修复此错误。提前谢谢。

    1 回复  |  直到 9 年前
        1
  •  1
  •   Luke Bakken    9 年前

    从 ~/erlang-git/riak-erlang-client 目录中,运行以下命令:

    erl -pa ./ebin ./deps/*/ebin
    

    示例使用 $PATH_TO_RIAKC 环境变量,以演示在运行 erl 从另一个位置。自从 .beam Erlang客户机及其依赖项的文件可用,您不需要设置这个env变量。