You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Johannes Hass <jo...@gmail.com> on 2014/10/03 17:15:51 UTC
How to actually install CouchDB on Debian?
Fair warning: I'm just a tad miffed because the instructions do not work
and they probably have not been working for more than a year!
So, I am following the instructions from here:
https://cwiki.apache.org/confluence/display/COUCHDB/Debian
And it was at the "apt-get update -y" where I began to run into a slight
problem:
W: Conflicting distribution: http://packages.cloudant.com wheezy Release
(expected wheezy but got squeeze)
According to this page: https://github.com/cloudant/bigcouch/issues/135
this is actually a "WONTFIX".
The older instructions don't work as well because Spidermonkey is missing.
Re: How to actually install CouchDB on Debian?
Posted by Johannes Hass <jo...@gmail.com>.
Replacing 127.0.0.1 in /usr/local/etc/couchdb/default.ini, that is. This
file is not actually advertised, as well. Shouldn't config files reside in
/etc/couchdb/ or something?
On Fri, Oct 3, 2014 at 7:57 PM, Johannes Hass <jo...@gmail.com>
wrote:
> Distributor ID: Debian
> Description: Debian GNU/Linux 7.6 (wheezy)
> Release: 7.6
> Codename: wheezy
>
> I just did a re-install and fixed the whole thing by skipping the cloudant
> part and replacing the
>
> sudo apt-get install -y libmozjs185-cloudant libmozjs185-cloudant-dev
>
> with
>
> sudo apt-get install -y libmozjs185-1.0 libmozjs185-dev
>
> The whole thing is running now, currently I'm fighting with securing the
> whole thing. I'm a bit astounded at the dearth of information regarding
> this - it's very difficult to find info about how to secure CouchDB if it's
> publically accessible (or how to actually make it publically accessible in
> the first place!)
>
> I figured out that you need to replace the 127.0.0.1 with your public IP
> (and not the DNS name of your server). Okay.
>
> I can then access Futon and click on the "fix this" button on the lower
> right. I give a user name and a password, click "create" and then the whole
> thing just sits there and does nothing.
>
>
> On Fri, Oct 3, 2014 at 7:22 PM, Dave Cottlehuber <dc...@jsonified.com>
> wrote:
>
>> Johannes,
>>
>> I hear your frustration; this is one of the general problems with the way
>> linux is distributed; some packages are upgraded and yet others break. I’ve
>> not yet found the time to work out how to package for debian, and side-step
>> the dependency issues.
>>
>> BTW I can’t update the instructions until you clarify what debian
>> release/version you’re on. output of `lsb_release` will be fine.
>>
>> A+
>> Dave
>>
>>
>>
>
Re: How to actually install CouchDB on Debian?
Posted by Johannes Hass <jo...@gmail.com>.
Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy
I just did a re-install and fixed the whole thing by skipping the cloudant
part and replacing the
sudo apt-get install -y libmozjs185-cloudant libmozjs185-cloudant-dev
with
sudo apt-get install -y libmozjs185-1.0 libmozjs185-dev
The whole thing is running now, currently I'm fighting with securing the
whole thing. I'm a bit astounded at the dearth of information regarding
this - it's very difficult to find info about how to secure CouchDB if it's
publically accessible (or how to actually make it publically accessible in
the first place!)
I figured out that you need to replace the 127.0.0.1 with your public IP
(and not the DNS name of your server). Okay.
I can then access Futon and click on the "fix this" button on the lower
right. I give a user name and a password, click "create" and then the whole
thing just sits there and does nothing.
On Fri, Oct 3, 2014 at 7:22 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
> Johannes,
>
> I hear your frustration; this is one of the general problems with the way
> linux is distributed; some packages are upgraded and yet others break. I’ve
> not yet found the time to work out how to package for debian, and side-step
> the dependency issues.
>
> BTW I can’t update the instructions until you clarify what debian
> release/version you’re on. output of `lsb_release` will be fine.
>
> A+
> Dave
>
>
>
Re: How to actually install CouchDB on Debian?
Posted by Dave Cottlehuber <dc...@jsonified.com>.
Johannes,
I hear your frustration; this is one of the general problems with the way linux is distributed; some packages are upgraded and yet others break. I’ve not yet found the time to work out how to package for debian, and side-step the dependency issues.
BTW I can’t update the instructions until you clarify what debian release/version you’re on. output of `lsb_release` will be fine.
A+
Dave
Re: How to actually install CouchDB on Debian?
Posted by Johannes Hass <jo...@gmail.com>.
Thank you very much. Sorry if I was a bit grumpy.
On Fri, Oct 3, 2014 at 9:23 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
> > > i did install couchdb from github master approx. 2 weeks ago
> > like this:
> > >
> > > apt-get install build-essential libicu-dev libmozjs185-dev
> > > libcurl4-openssl-dev pkg-config
> > >
> > > # rebar 2.5.1 doesn't work with erlang from wheezy, so we install
> > erlang
> > > 17 from wheezy-backports
> > > apt-get install -t wheezy-backports erlang-base-hipe erlang-dev
> > > erlang-manpages erlang-eunit erlang-nox
> > >
> > > wget https://github.com/rebar/rebar -O /usr/local/bin/rebar
> > > chmod a+x /usr/local/bin/rebar
> > > git clone https://github.com/apache/couchdb.git
> > > cd couchdb
> > > ./configure
> > >
> > > make
> > > dev/run --admin=foo:bar
> > > # brings up three nodes on ports 15984, 25984, 35984
> > >
> > > Hope that works for you (don't know if you still need the erlang
> > from
> > > backports, at least i neeeded them) !
>
> Thanks Varac!
>
> I updated your steps a wee bit, and added them to the bottom of
>
> https://cwiki.apache.org/confluence/display/COUCHDB/Debian
>
> Johannes, the instructions have been updated & hopefully are sufficiently
> clear now. The wiki is editable and you’re welcome to help update the
> instructions if you find other steps.
>
> —
> Dave Cottlehuber
> dch@jsonified.com
> Sent from my Couch
>
>
>
Re: How to actually install CouchDB on Debian?
Posted by Dave Cottlehuber <dc...@jsonified.com>.
> > i did install couchdb from github master approx. 2 weeks ago
> like this:
> >
> > apt-get install build-essential libicu-dev libmozjs185-dev
> > libcurl4-openssl-dev pkg-config
> >
> > # rebar 2.5.1 doesn't work with erlang from wheezy, so we install
> erlang
> > 17 from wheezy-backports
> > apt-get install -t wheezy-backports erlang-base-hipe erlang-dev
> > erlang-manpages erlang-eunit erlang-nox
> >
> > wget https://github.com/rebar/rebar -O /usr/local/bin/rebar
> > chmod a+x /usr/local/bin/rebar
> > git clone https://github.com/apache/couchdb.git
> > cd couchdb
> > ./configure
> >
> > make
> > dev/run --admin=foo:bar
> > # brings up three nodes on ports 15984, 25984, 35984
> >
> > Hope that works for you (don't know if you still need the erlang
> from
> > backports, at least i neeeded them) !
Thanks Varac!
I updated your steps a wee bit, and added them to the bottom of
https://cwiki.apache.org/confluence/display/COUCHDB/Debian
Johannes, the instructions have been updated & hopefully are sufficiently clear now. The wiki is editable and you’re welcome to help update the instructions if you find other steps.
—
Dave Cottlehuber
dch@jsonified.com
Sent from my Couch
Re: How to actually install CouchDB on Debian?
Posted by varacanero <va...@zeromail.org>.
>
> BTW I can’t update the instructions until you clarify what debian
release/version you’re on. output of `lsb_release` will be fine.
my instructions are for debian wheezy 7.5, please update the docs
regarding this.
On 03.10.2014 18:56, varacanero wrote:
> hej,
>
> i did install couchdb from github master approx. 2 weeks ago like this:
>
> apt-get install build-essential libicu-dev libmozjs185-dev
> libcurl4-openssl-dev pkg-config
>
> # rebar 2.5.1 doesn't work with erlang from wheezy, so we install erlang
> 17 from wheezy-backports
> apt-get install -t wheezy-backports erlang-base-hipe erlang-dev
> erlang-manpages erlang-eunit erlang-nox
>
> wget https://github.com/rebar/rebar -O /usr/local/bin/rebar
> chmod a+x /usr/local/bin/rebar
> git clone https://github.com/apache/couchdb.git
> cd couchdb
> ./configure
>
> make
> dev/run --admin=foo:bar
> # brings up three nodes on ports 15984, 25984, 35984
>
> Hope that works for you (don't know if you still need the erlang from
> backports, at least i neeeded them) !
>
> Varac
>
> On 03.10.2014 18:46, Dave Cottlehuber wrote:
>>> Fair warning: I'm just a tad miffed because the instructions do not work
>>> and they probably have not been working for more than a year!
>>
>> Fair warning: I used these to build the last official release, so it’s unlikely ;-).
>>
>> Given the paucity of information you’ve provided it’s hard to tell exactly what went
>> wrong, but luckily I don’t get miffed easily ;-).
>>
>> I’m sure with your assistance we can improve the instructions.
>>
>>> So, I am following the instructions from here:
>>> https://cwiki.apache.org/confluence/display/COUCHDB/Debian
>>
>> - What Debian release are you on?
>> - What package versions are installed?
>>
>>> And it was at the "apt-get update -y" where I began to run into a slight
>>> problem:
>>>
>>> W: Conflicting distribution: http://packages.cloudant.com wheezy Release
>>> (expected wheezy but got squeeze)
>>
>> I’m guessing you are on > Debian 7.4 and therefore can’t use the cloudant ones.
>>
>> use either `lsb_release -a` or `cat /etc/debian_version` to check that.
>>
>> The debian 7.5+ packages are finally current with what CouchDB needs:
>>
>> https://gist.github.com/dch/eedbd3fe3351327650e0
>>
>> so you should be able to do:
>>
>> `apt-get install -y libmozjs185-dev erlang-nox erlang-dev`. If you let me
>> know what works for you we can expand the instructions.
>>
>> and IIRC what I used for preparing the 1.6.1 release was basically this but in a local VM:
>>
>> https://gist.github.com/dch/056de1a8e869000bb7fd
>>
>> HTH
>> A+
>> Dave
>> —
>> sent from my Couch
>>
>>
>
Re: How to actually install CouchDB on Debian?
Posted by varacanero <va...@zeromail.org>.
hej,
i did install couchdb from github master approx. 2 weeks ago like this:
apt-get install build-essential libicu-dev libmozjs185-dev
libcurl4-openssl-dev pkg-config
# rebar 2.5.1 doesn't work with erlang from wheezy, so we install erlang
17 from wheezy-backports
apt-get install -t wheezy-backports erlang-base-hipe erlang-dev
erlang-manpages erlang-eunit erlang-nox
wget https://github.com/rebar/rebar -O /usr/local/bin/rebar
chmod a+x /usr/local/bin/rebar
git clone https://github.com/apache/couchdb.git
cd couchdb
./configure
make
dev/run --admin=foo:bar
# brings up three nodes on ports 15984, 25984, 35984
Hope that works for you (don't know if you still need the erlang from
backports, at least i neeeded them) !
Varac
On 03.10.2014 18:46, Dave Cottlehuber wrote:
>> Fair warning: I'm just a tad miffed because the instructions do not work
>> and they probably have not been working for more than a year!
>
> Fair warning: I used these to build the last official release, so it’s unlikely ;-).
>
> Given the paucity of information you’ve provided it’s hard to tell exactly what went
> wrong, but luckily I don’t get miffed easily ;-).
>
> I’m sure with your assistance we can improve the instructions.
>
>> So, I am following the instructions from here:
>> https://cwiki.apache.org/confluence/display/COUCHDB/Debian
>
> - What Debian release are you on?
> - What package versions are installed?
>
>> And it was at the "apt-get update -y" where I began to run into a slight
>> problem:
>>
>> W: Conflicting distribution: http://packages.cloudant.com wheezy Release
>> (expected wheezy but got squeeze)
>
> I’m guessing you are on > Debian 7.4 and therefore can’t use the cloudant ones.
>
> use either `lsb_release -a` or `cat /etc/debian_version` to check that.
>
> The debian 7.5+ packages are finally current with what CouchDB needs:
>
> https://gist.github.com/dch/eedbd3fe3351327650e0
>
> so you should be able to do:
>
> `apt-get install -y libmozjs185-dev erlang-nox erlang-dev`. If you let me
> know what works for you we can expand the instructions.
>
> and IIRC what I used for preparing the 1.6.1 release was basically this but in a local VM:
>
> https://gist.github.com/dch/056de1a8e869000bb7fd
>
> HTH
> A+
> Dave
> —
> sent from my Couch
>
>
Re: How to actually install CouchDB on Debian?
Posted by Johannes Hass <jo...@gmail.com>.
Well, I simply gave up and installed Ubuntu 14.04 - that one works out of
the box. I always thought that Debian Stable was actually supposed to be
just that - stable - and this dependency on internal version numbers is
somehow obviously not pertinent information.
Before I tried this installation, I did indeed a "apt-get update / upgrade
/ dist-upgrade" and thusly assumed that all my packages were up-to-date.
Seems I have been mistaken.
If I sound frustrated it's because I'm running into these kind of problems
again and again and again. Here it's a dependency that's unresolved a mere
month after the installation guide is written. There it's an untested
feature that's advertised nontheless. And over there is a version
dependency you're not told about.
On Fri, Oct 3, 2014 at 6:46 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
> > Fair warning: I'm just a tad miffed because the instructions do not work
> > and they probably have not been working for more than a year!
>
> Fair warning: I used these to build the last official release, so it’s
> unlikely ;-).
>
> Given the paucity of information you’ve provided it’s hard to tell exactly
> what went
> wrong, but luckily I don’t get miffed easily ;-).
>
> I’m sure with your assistance we can improve the instructions.
>
> > So, I am following the instructions from here:
> > https://cwiki.apache.org/confluence/display/COUCHDB/Debian
>
> - What Debian release are you on?
> - What package versions are installed?
>
> > And it was at the "apt-get update -y" where I began to run into a slight
> > problem:
> >
> > W: Conflicting distribution: http://packages.cloudant.com wheezy Release
> > (expected wheezy but got squeeze)
>
> I’m guessing you are on > Debian 7.4 and therefore can’t use the cloudant
> ones.
>
> use either `lsb_release -a` or `cat /etc/debian_version` to check that.
>
> The debian 7.5+ packages are finally current with what CouchDB needs:
>
> https://gist.github.com/dch/eedbd3fe3351327650e0
>
> so you should be able to do:
>
> `apt-get install -y libmozjs185-dev erlang-nox erlang-dev`. If you let me
> know what works for you we can expand the instructions.
>
> and IIRC what I used for preparing the 1.6.1 release was basically this
> but in a local VM:
>
> https://gist.github.com/dch/056de1a8e869000bb7fd
>
> HTH
> A+
> Dave
> —
> sent from my Couch
>
>
>
Re: How to actually install CouchDB on Debian?
Posted by Dave Cottlehuber <dc...@jsonified.com>.
> Fair warning: I'm just a tad miffed because the instructions do not work
> and they probably have not been working for more than a year!
Fair warning: I used these to build the last official release, so it’s unlikely ;-).
Given the paucity of information you’ve provided it’s hard to tell exactly what went
wrong, but luckily I don’t get miffed easily ;-).
I’m sure with your assistance we can improve the instructions.
> So, I am following the instructions from here:
> https://cwiki.apache.org/confluence/display/COUCHDB/Debian
- What Debian release are you on?
- What package versions are installed?
> And it was at the "apt-get update -y" where I began to run into a slight
> problem:
>
> W: Conflicting distribution: http://packages.cloudant.com wheezy Release
> (expected wheezy but got squeeze)
I’m guessing you are on > Debian 7.4 and therefore can’t use the cloudant ones.
use either `lsb_release -a` or `cat /etc/debian_version` to check that.
The debian 7.5+ packages are finally current with what CouchDB needs:
https://gist.github.com/dch/eedbd3fe3351327650e0
so you should be able to do:
`apt-get install -y libmozjs185-dev erlang-nox erlang-dev`. If you let me
know what works for you we can expand the instructions.
and IIRC what I used for preparing the 1.6.1 release was basically this but in a local VM:
https://gist.github.com/dch/056de1a8e869000bb7fd
HTH
A+
Dave
—
sent from my Couch