我为riak-erlang-client接受了主分支并调用了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-client目录上运行。很好,以便检查安装是否已经完成,我在下面运行:
/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
我该怎么做才能解决此错误。提前谢谢。
答案 0 :(得分:1)
在~/erlang-git/riak-erlang-client
目录中,改为运行:
erl -pa ./ebin ./deps/*/ebin
示例使用$PATH_TO_RIAKC
环境变量来演示如果从其他位置运行erl
,则必须设置此变量。由于Erlang客户端及其依赖项的.beam
文件可用,因此不需要设置此env变量。