Installation of Couchdb1.7.1 issues

98 views
Skip to first unread message

Karl Helmer

unread,
Nov 21, 2017, 1:51:43 PM11/21/17
to us...@couchdb.apache.org, hel...@nmr.mgh.harvard.edu
Hi Everyone,

I'm having problems installing 1.7.1 and don't see any online
instructions on how to do it. Currently we're running 1.6.1 on a
CentOS 6.9 server and I'm following the 1.6.1 steps that I successfully
used. There are two issues:

1) when I run ./configure inside the 1.7.1 directory it finds all of the
correct dependencies, but says:
detected Erlang version: 5.8.5...configure:error: The installed Erlang
version must be >= R14B (erts-5.8.1) and =< (erts-9) minor version does
not match. I've installed Erlang R16B02 so is that erts 5.8.5? Is this an
actual error or a warning and will still run?

2) I assume that after configuring as above, I should
>make && sudo make install
except that there is no Makefile in the directory as there is in 1.6.1.
How do I compile?

thanks,
Karl


--
Karl Helmer, PhD
Athinoula A Martinos Center for Biomedical Imaging
Massachusetts General Hospital
149 - 13th St Room 2301
Charlestown, MA 02129
(p) 617.726.8636
(f) 617.726.7422
hel...@nmr.mgh.harvard.edu
http://www.martinos.org/user/6787




The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Bill Stephenson

unread,
Nov 21, 2017, 4:30:56 PM11/21/17
to us...@couchdb.apache.org
I’ve used these instructions to successfully install CouchDB 1.7.1 on a DigitalOcean Droplet running Ubuntu 16.04:

Install CoucdB 1.7.1 Ubuntu 14.04
# Create DigitalOcean Ubuntu 16.04 Droplet and login via ssh:

sudo apt update
sudo apt upgrade
reboot

# login again:

sudo apt-get -y install build-essential erlang-base-hipe erlang-dev erlang-manpages erlang-eunit erlang-nox libicu-dev libmozjs185-dev libcurl4-openssl-dev

cd /home

wget http://mirrors.advancedhosters.com/apache/couchdb/source/1.7.1/apache-couchdb-1.7.1.tar.gz
tar -zxvf apache-couchdb-*.tar.gz
cd apache*
./configure
make && sudo make install
sudo adduser --disabled-login --disabled-password --no-create-home --gecos "" couchdb
sudo chown -R couchdb:couchdb /usr/local/var/lib/couchdb
sudo chown -R couchdb:couchdb /usr/local/var/log/couchdb
sudo chown -R couchdb:couchdb /usr/local/var/run/couchdb
sudo chown -R couchdb:couchdb /usr/local/etc/couchdb
sudo chmod 0770 /usr/local/var/lib/couchdb/
sudo chmod 0770 /usr/local/var/log/couchdb/
sudo chmod 0770 /usr/local/var/run/couchdb/
sudo chmod 0770 /usr/local/etc/couchdb/*.ini
sudo chmod 0770 /usr/local/etc/couchdb/*.d
sudo ln -s /usr/local/etc/logrotate.d/couchdb /etc/logrotate.d/couchdb
sudo ln -s /usr/local/etc/init.d/couchdb /etc/init.d
sudo update-rc.d couchdb defaults
sudo -i -u couchdb couchdb
cd /etc/init.d
ln -s /usr/local/etc/init.d/couchdb couchdb
/etc/init.d/couchdb start
update-rc.d couchdb defaults
curl http://127.0.0.1:5984/

# bind CouchDB IP addresss to Droplet IP
nano /usr/local/etc/couchdb/default.ini

update-rc.d couchdb defaults

# Restart CouchdB
service couchdb restart
curl http://DROPLET_IP:5984

Karl Helmer

unread,
Nov 22, 2017, 11:45:36 AM11/22/17
to us...@couchdb.apache.org
Thanks Bill. That's essentially the steps I used to install 1.6.1 (though
I'm on a CentOS machine).

One issue is that I get an error when running "configure" that says that
there is an issue with my minor version of erlang even though I'm using
R16 which is within the release range specified. I was wondering if
that's an error with consequences or just a warning.

The other issue is that there is no Makefile in the 1.7.1 linux
distribution, just Makefile.am and Makefile.in and so
>make && sudo make install
returns with an error saying that there is no make file.

regards,
Karl



> I’ve used these instructions to successfully install CouchDB 1.7.1 on a
Reply all
Reply to author
Forward
0 new messages