This is interesting. Try to rebuild rebar, just in case. Ensure that you have erlang in your env, (I suggest to stuck with 17.5), by running `erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().’ -noshell` which should return “17”
Then just rm ./bin/rebar from apache-couchdb-2.0.0 directory and run ./configure again, it'll recompile rebar and place it back in ./bin. Regards, Eric > On Jan 26, 2017, at 14:56, Brian Novogradac <[email protected]> > wrote: > > I've tried it with different versions OTP R16B03-1, 17.5 19.1 > > Same result. > > > > -----Original Message----- > From: Eiri [mailto:[email protected]] > Sent: Thursday, January 26, 2017 1:55 PM > To: [email protected] > Subject: Re: CouchDB 2.0 and centos 6.8 and rebar error > > Hi Brian, > > It seems you have mixed up versions of erlang runtime for compiling vs > running. Which version of Erlang/OTP are you using? > > Regards, > Eric > > >> On Jan 26, 2017, at 08:21, Brian Novogradac <[email protected]> >> wrote: >> >> My original message probably got lost in all of the unsubscribe messages, >> can someone shed light on my issue?? >> >> >> >> -----Original Message----- >> From: Brian Novogradac [mailto:[email protected]] >> Sent: Thursday, January 19, 2017 10:29 AM >> To: [email protected] >> Subject: CouchDB 2.0 and centos 6.8 and rebar error >> >> I'm having a hell of a time to get this installed. >> >> Seeing as there is no more yum repo installer i am trying to install >> via source. I meet all the requirements and am getting the following >> errors >> >> [root@localhost apache-couchdb-2.0.0]# ./configure ==> configuring couchdb >> in rel/couchdb.config You have configured Apache CouchDB, time to relax. >> Relax. >> [root@localhost apache-couchdb-2.0.0]# make release >> >> =ERROR REPORT==== 19-Jan-2017::10:09:48 === >> beam/beam_load.c(1365): Error loading module rebar: >> use of opcode 153; this emulator supports only up to 152 >> >> >> =ERROR REPORT==== 19-Jan-2017::10:09:48 === Loading of >> /root/Downloads/apache-couchdb-2.0.0/bin/rebar/rebar/ebin/rebar.beam >> failed: badfile >> escript: exception error: undefined function rebar:main/1 in function >> escript:run/2 in call from escript:start/1 in call from >> init:start_it/1 in call from init:start_em/1 >> make: *** [couch] Error 127 >> >> >> >> Brian Novogradac >> >> >
