Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB install multiple versions side-by-side

Tags:

couchdb

I attempt to install multiple versions of CouchDB databases, say 1.1.0 along side with 0.10.0. By using build-couchdb I was able to get the latest version up and running with no problems, now I am trying with installing a second version (0.10.0) but with no success so far. Following with the instructions, I've tried:

rake git="git://git.apache.org/couchdb.git tags/0.10.0" install=/full/path/to/couchdb/dir

It does a bunch of installs but fails at the end with "rake aborted!". Have anyone successfully done this ?

like image 728
Ellead Avatar asked Jan 26 '26 18:01

Ellead


1 Answers

Build CouchDB can be slightly brittle. In production, what I've seen is a lot of complete wipes and complete rebuilds. Since people tend to build only once, the build time is not a huge pain-point.

Next, try to use the Erlang shortcut for installing side-by-side CouchDB builds. (Search for couchdb_build in the README).

rake git="git://git.apache.org/couchdb.git tags/0.10.0" \
     install=/full/path/to/couch/dependencies           \
     couchdb_build=/full/path/to/couch/0.10.0

rake git="git://git.apache.org/couchdb.git tags/1.1.0"  \
     install=/full/path/to/couch/dependencies           \
     couchdb_build=/full/path/to/couch/1.1.0

With the install locations identical, Build CouchDB should skip the entire process to build and install dependencies when it builds 1.1.0. This includes:

  • Erlang
  • OTP
  • Javascript

I believe this technique is used more often than the simpler one for side-by-side builds. Therefore it is possible this workaround will fix your error.

If you still have issues, it is probably a bug. Would you please submit a Build CouchDB issue indicating your operating system version and also attach your rake.log file?

like image 151
JasonSmith Avatar answered Jan 29 '26 13:01

JasonSmith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!