Another thing you may need to do if you are using rebar to fetch dependencies is to build riakc and riak_pb (I have gotten in the habit of doing both because of the rebar versions. The latest rebar skips the package because of version differences):
My app rebar: rebar 2.5.1 R14B04 20141119_222434 git 2.5.1 riakc: rebar 2.1.0-pre R16B02-basho3 20131218_160534 git 2.1.0-pre-170-g117c0f7-dirty riak_pb: rebar 2.1.0-pre R16B02-basho3 20131218_160534 git 2.1.0-pre-170-g117c0f7-dirty See: https://github.com/basho/riak_pb/issues/95 https://github.com/basho/riak_pb/pull/101 Hopefully this is fixed soon. Cheers, Shawn On 1/31/15, 4:27 AM, "Zsolt Laky" <[email protected]> wrote: >Hi Sunil, > >I am not an expert but it seems your shell does not have the path for: >$RIAKCLIENT/deps/protobuffs/ebin >$RIAKCLIENT/deps/riak_pb/ebin > >You certainly have $RIAKCLIENT/ebin in you path as your commands in line >4 and 7 worked. > >Does code:get_path() contains those above? > >Cheers >Zsolt > > >Feladó: riak-users [mailto:[email protected]] >Meghatalmazó Babu Sunil >Küldve: Saturday, January 31, 2015 12:08 PM >Címzett: [email protected] >Tárgy: Reg: Riak creatig object > > >Hi, > >I hope everything is going fine. > >I have installed erlang and Riak on my machine. > >I have created 5 nodes in Riak. > > >{ok, Pid} = riakc_pb_socket:start("127.0.0.1", 8087). My Problem >1. > >4> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). >{ok,<0.44.0>} >5> MyBucket = <<"test">>. ><<"test">> >6> Val1 = 1. >1 >7> Obj1 = riakc_obj:new(MyBucket, <<"one">>, Val1). >{riakc_obj,<<"test">>,<<"one">>,undefined,[],undefined,1} >8> riakc_pb_socket:put(Pid, Obj1). >** exception error: undefined function riak_pb_kv_codec:encode_content/1 > in function riakc_pb_socket:put/4 (src/riakc_pb_socket.erl, line >329) > > >2. > >9> riakc_pb_socket:ping(Pid). >** exception exit: {noproc, > {gen_server,call, > [<0.44.0>,{req,rpbpingreq,60000},infinity]}} > in function gen_server:call/3 (gen_server.erl, line 188) >10> Please help me solving this issue > > > >Thanks & Regards, > >Sunil Babu S > > > > > > > > > > > > > > > >________________________________________ > <http://www.avast.com/> >This email has been checked for viruses by Avast antivirus software. >www.avast.com <http://www.avast.com/> _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
