basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.94k stars 536 forks source link

ERROR: OTP release 20 does not match required regex R16|17 #923

Closed MUDASSARHASHMI closed 6 years ago

MUDASSARHASHMI commented 7 years ago

I am trying to build Riak from Github source and I am getting this error.

ERROR: OTP release 20 does not match required regex R16|17
ERROR: compile failed while processing /home/osboxes/riak-build/riak/deps/rebar_lock_deps_plugin: rebar_abort
Makefile:23: recipe for target 'compile' failed
make: *** [compile] Error 1

It does takes a lot of time to clone repo to riak/ folder but then it pops a lot of messages about "Missing Plugins.

I know there is no release yet for 16.04 but I thought to give it a try. If this is not the way I should do it then is there any other way around? Can someone please help?

Bob-The-Marauder commented 6 years ago

Based on the title of your post, you'll be wanting Erlang 16 which you'll need Kerl for. Please see https://www.tiot.jp/riak-docs/riak/kv/2.2.3/setup/installing/source/erlang/#kerl-prerequisites for details.

This is also referenced in https://github.com/basho/riak/issues/920

joshzinny commented 5 years ago

Hi guy, I am having this same problem. Is there any solution to this? Thanks in advance joshzinny:riak joshzinny$ make devrel ./rebar get-deps WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] ==> rebar_lock_deps_plugin (get-deps) ==> riak_pb (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] ==> mochiweb (get-deps) ==> webmachine (get-deps) ==> riak_api (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] ==> proper (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] ==> stdlib2 (get-deps) ==> hyper (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] ==> chronos (get-deps) ==> riak_kv (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] ==> rel (get-deps) WARN: Missing plugins: [rebar_lock_deps_plugin] ==> riak (get-deps) ==> riak (get-deps) ./rebar compile WARN: Missing plugins: [rebar_lock_deps_plugin] WARN: Missing plugins: [rebar_lock_deps_plugin] ==> rebar_lock_deps_plugin (compile) ERROR: OTP release 21 does not match required regex R16|17 ERROR: compile failed while processing /Users/joshzinny/riak/deps/rebar_lock_deps_plugin: rebar_abort make: *** [compile] Error 1

russelldb commented 5 years ago

You still need basho's OTP16 for riak. OTP20+ support is coming in 2019

joshzinny commented 5 years ago

I am using Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Eshell V10.0 (abort with ^G)

russelldb commented 5 years ago

Yup, that's the issue alright. Riak only supports erlang r16b0something.

joshzinny commented 5 years ago

Is there any work around solution now?

russelldb commented 5 years ago

yes, use erlang-r16. Ideally the basho patched erlang-r16b04-basho10

joshzinny commented 5 years ago

Okay thanks.