couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan Andu <bog...@gmail.com>
Subject Re: Problem during installation of couchdb-2.0 on CentOS 6.
Date Thu, 29 Sep 2016 07:52:52 GMT
recompile everything with new erlang

On Thu, Sep 29, 2016 at 10:41 AM, Yacine El Ayar <elayar.yacine@gmail.com>
wrote:

> Ok i've review the installation of erlang (before i've not used make
> install but update PATH and LD_LIBRARY_PATH to tell the os to point to the
> latest version of erlang).
> Then i've redone it using make install. Bellow the performed step.
>
> $ sudo su
> $ cd /opt/ && mkdir erlang
> $ wget http://erlang.org/download/otp_src_19.0.tar.gz
> $ tar -xzvf otp_src_19.0.tar.gz
> $ ./configure
> $ make && make install
>
> But now the issue is the following one :
>
> **********************************************************************
>
> $ make
>
> =ERROR REPORT==== 29-Sep-2016::09:31:37 ===
> Loading of
> /opt/couchdb2/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
>
> =ERROR REPORT==== 29-Sep-2016::09:31:37 ===
> beam/beam_load.c(1365): Error loading module rebar:
>   use of opcode 153; this emulator supports only up to 152
>
> make: *** [couch] Erreur 127
>
> **********************************************************************
>
>
> It seems it cannot find a file, and of of course it doesn't exits :
>
> **********************************************************************
>
> $tree /opt/couchdb2/apache-couchdb-2.0.0/bin/
> /opt/couchdb2/apache-couchdb-2.0.0/bin/
> ├── erlang-version.escript
> └── rebar
>
>
>
> **********************************************************************
>
> Any ideas ?
>
> Thanks
>
>
> 2016-09-28 21:10 GMT+02:00 Robert Samuel Newson <rnewson@apache.org>:
>
> > very curious! how did you install erlang?
> >
> > B.
> >
> > > On 28 Sep 2016, at 09:32, Yacine El Ayar <elayar.yacine@gmail.com>
> > wrote:
> > >
> > > Hello,
> > >
> > > I'm trying to install couchdb 2 on a CentOS 6 server
> > > I believe (as i'm not sure of it), i've installed all the required
> > > dependencies.
> > >
> > > ## Anyway when I run the make I obtain the following input:
> > >
> > > $ ./configure
> > > ==> configuring couchdb in rel/couchdb.config
> > > You have configured Apache CouchDB, time to relax. Relax.
> > >
> > >
> > > $ make
> > > Uncaught error in rebar_core: {'EXIT',
> > >                               {{case_clause,
> > >                                 {error,
> > >                                  {function_clause,
> > >                                   [{filename,join,
> > >                                     [{error,bad_name},"erts.app"],
> > >                                     [{file,"filename.erl"},{line,
> 409}]},
> > >                                    {rmemo,ets_tab,0,
> > >                                     [{file,"src/rmemo.erl"},{line,
> > 187}]},
> > >                                    {rmemo,init,1,
> > >                                     [{file,"src/rmemo.erl"},{line,
> > 181}]},
> > >                                    {gen_server,init_it,6,
> > >                                     [{file,"gen_server.erl"},{
> > line,328}]},
> > >                                    {proc_lib,init_p_do_apply,3,
> > >
> > > [{file,"proc_lib.erl"},{line,247}]}]}}},
> > >                                [{rebar,run_aux,2,
> > >                                  [{file,"src/rebar.erl"},{line,218}]},
> > >                                 {rebar,main,1,
> > >                                  [{file,"src/rebar.erl"},{line,58}]},
> > >                                 {escript,run,2,
> > >                                  [{file,"escript.erl"},{line,757}]},
> > >                                 {escript,start,1,
> > >                                  [{file,"escript.erl"},{line,277}]},
> > >                                 {init,start_em,1,[]},
> > >                                 {init,do_boot,3,[]}]}}
> > > make: *** [couch] Erreur 1
> > >
> > >
> > > ## I don't know how to translate this error message on useful
> > information.
> > > Do you have any idea where the problem come from ?
> > >
> > >
> > > ## This is where i've grabbed the source.
> > >
> > > http://wwwftp.ciril.fr/pub/apache/couchdb/source/2.0.0/
> > apache-couchdb-2.0.0.tar.gz
> > >
> > >
> > >
> > > ## Some important dependencies and information about my system.
> > >
> > > $ erl --version
> > > Erlang/OTP 19 [erts-8.0] [source] [smp:2:2] [async-threads:10] [hipe]
> > > [kernel-poll:false]
> > >
> > > $ js --version
> > > JavaScript-C 1.8.5 2011-03-31
> > >
> > > $ uname -mrs
> > > Linux 2.6.32-573.7.1.el6.i686 i686
> > >
> > >
> > > Any ideas ?
> > >
> > >
> > > Regards
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message