Closed goncalotomas closed 7 years ago
For what it's worth this seems to be a problem with your spider monkey installation, rather than with couch itself, it is technically possible to compile it with erlang 20
vagrant@sandbox:/tmp$ kerl active
The current active installation is:
/opt/erlang/20.0
vagrant@sandbox:/tmp$ git clone https://github.com/apache/couchdb.git
Cloning into 'couchdb'...
remote: Counting objects: 67715, done.
...
vagrant@sandbox:/tmp$ cd couchdb/
vagrant@sandbox:/tmp/couchdb (master)$
vagrant@sandbox:/tmp/couchdb (master)$ ./configure --disable-fauxton --disable-docs
==> configuring couchdb in rel/couchdb.config
Cloning into '/tmp/couchdb/src/rebar'...
remote: Counting objects: 367, done.
...
Updating bear from {git,"https://github.com/apache/couchdb-bear.git",
"008f48aff819126e281d5ccae80a258bf9bf9c30"}
You have configured Apache CouchDB, time to relax. Relax.
vagrant@sandbox:/tmp/couchdb (master)$ vi rebar.config.script
## add 20 to require_otp_vsn
vagrant@sandbox:/tmp/couchdb (master)$ vi src/snappy/rebar.config
## add 20 to require_otp_vsn
$ make
==> config (compile)
Compiled src/config_sup.erl
Compiled src/config_app.erl
...
Compiled src/rexi_sup.erl
Compiled src/rexi.erl
==> rel (compile)
==> couchdb (compile)
That said erlang 20 hasn't been tested and not recommended for use, hence it's not in require_otp_vsn
.
I did not use the --disable-fauxton --disable-docs
options. I'm guessing from your response it has no effect on the outcome, is that right?
yes, this is only to speed up things, both docs build tools and fauxton not depend or use erlang.
this seems to be a problem with your spider monkey installation
That explains it, I don't have spider monkey installed (I didn't know about the dependency).
Our build dependencies are documented in the INSTALL.Unix.md file. If you find any inaccuracies in there, please let us know!
I'm closing this ticket for now as not a bug in CouchDB. Thanks for using our software! 👯
Erlang 20 seems to break the compile process due to at least 2 issues.
couchdb-snappy
Has a pre-compilation check for Erlang version that doesn't include version 20, easy to fix and I already submitted a pull request.
rebar.config.script
Has a pre-compilation check for Erlang version, but allowing the new version brings other problems that I was unable to solve. This is the result of a
make
command after running./configure
on Mac OS Sierra 64-bit with the newly released Erlang/OTP 20.0: