Riak Erlang 模块安装错误
Riak Erlang module installation error
我拿了 master b运行ch 给 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
我该怎么做才能解决这个错误。提前致谢。
从 ~/erlang-git/riak-erlang-client
目录,运行 改为:
erl -pa ./ebin ./deps/*/ebin
示例使用 $PATH_TO_RIAKC
环境变量来演示如果您从另一个位置 运行 erl
必须设置此变量。由于 Erlang 客户端及其依赖项的 .beam
文件可用,因此您不需要设置此环境变量。
我拿了 master b运行ch 给 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
我该怎么做才能解决这个错误。提前致谢。
从 ~/erlang-git/riak-erlang-client
目录,运行 改为:
erl -pa ./ebin ./deps/*/ebin
示例使用 $PATH_TO_RIAKC
环境变量来演示如果您从另一个位置 运行 erl
必须设置此变量。由于 Erlang 客户端及其依赖项的 .beam
文件可用,因此您不需要设置此环境变量。