Help installing CouchDB on Ubuntu

283 views
Skip to first unread message

Vince Cardillo

unread,
Oct 26, 2011, 2:15:38 PM10/26/11
to us...@couchdb.apache.org
Hi all,

I wanted to install CouchDB on the free tier of Amazon Web Services so that
I could play wiht and explore it.

I was following these instructions:
http://wiki.apache.org/couchdb/Getting_started_with_Amazon_EC2

The 2nd line says this: Start the Ubuntu 8.10 server image, ami-5059be39

I searched for that image, and it isn't found in the AWS EC2 listing. So I
instead installed Ubuntu 11.10 (GNU/Linux 3.0.0-12-virtual i686) (AMI ID:
ami-2e90242f).

I got through most of the steps, until I hit this step:
sudo adduser --system --home /usr/local/var/lib/couchdb
--no-create-home --shell /bin/bash --group --gecos 'CouchDB account'
couchdb

It specifies a home directory, but then has the no-create-home flag, and so
at the end it says "not creating home directory". The next command results
in this error:

chown: cannot access `/usr/local/var/lib/couchdb': No such file or directory

This command is listed as optional:
sudo vim /usr/local/etc/couchdb/local.ini

However, that directory doesn't exist.

One more thing. If I run "whereis yum" I get this: yum: /usr/bin/yum
/etc/yum /usr/share/man/man8/yum.8.gz

If I run "whereis couchdb" I get this: couchdb:

Step 8 says: sudo -i -u couchdb couchdb
I do that and get this:
sudo: unable to change directory to /usr/local/var/lib/couchdb: No such file
or directory
sudo: unable to execute /bin/bash: No such file or directory


Right now I am pretty stuck. I am not sure if couchdb installed correctly or
not via the prior steps. And I am not really sure where it is, how to
start/stop it, etc. Help is very appreciated!


Thank you for any help,
- vince

kowsik

unread,
Oct 26, 2011, 2:27:00 PM10/26/11
to us...@couchdb.apache.org
Try this: https://gist.github.com/1171217. Uses build-couchdb from
@iriscouch to build everything from source, configure couchdb, hookup
logrotate, etc.

K.
---
http://blitz.io
@pcapr

CGS

unread,
Oct 26, 2011, 3:18:02 PM10/26/11
to us...@couchdb.apache.org
So, Ubuntu 11 doesn't have any CouchDB package? Strange. Because Ubuntu
10 has CouchDB 0.9.

Vince, what you did is correct, only that you need to install CouchDB
before. Using build-couchdb may not put it in the correct path for you
to follow those instructions. If you want to run it as user and you use
build-couchdb, then you don't need anymore those steps. Just don't
forget to start CouchDB with -b option (given that build-couchdb will be
successful).

Cheers,
CGS

Vince Cardillo

unread,
Oct 26, 2011, 3:31:27 PM10/26/11
to us...@couchdb.apache.org
Hi All,

I was able to get CouchDB 1.0.1 installed and running via these
instructions: http://wiki.apache.org/couchdb/Installing_on_Ubuntu. I
followed the very top "Batteries Included" instructions.

I'm a little wary to try and upgrade it though--I'm about one step up from a
Linux noob. It's been a while.

whereis couchdb
couchdb: /usr/bin/couchdb /etc/couchdb /usr/lib/couchdb /usr/share/couchdb
/usr/share/man/man1/couchdb.1.gz

I am not sure how I would upgrade it.

- vince

On Wed, Oct 26, 2011 at 3:18 PM, CGS <cgsmc...@gmail.com> wrote:

> So, Ubuntu 11 doesn't have any CouchDB package? Strange. Because Ubuntu 10
> has CouchDB 0.9.
>
> Vince, what you did is correct, only that you need to install CouchDB
> before. Using build-couchdb may not put it in the correct path for you to
> follow those instructions. If you want to run it as user and you use
> build-couchdb, then you don't need anymore those steps. Just don't forget to
> start CouchDB with -b option (given that build-couchdb will be successful).
>
> Cheers,
> CGS
>
>
>
>
>
>
> On 10/26/2011 08:27 PM, kowsik wrote:
>

>> Try this: https://gist.github.com/**1171217<https://gist.github.com/1171217>.


>> Uses build-couchdb from
>> @iriscouch to build everything from source, configure couchdb, hookup
>> logrotate, etc.
>>
>> K.
>> ---
>> http://blitz.io
>> @pcapr
>>
>> On Wed, Oct 26, 2011 at 11:15 AM, Vince Cardillo<vcar...@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I wanted to install CouchDB on the free tier of Amazon Web Services so
>>> that
>>> I could play wiht and explore it.
>>>
>>> I was following these instructions:

>>> http://wiki.apache.org/**couchdb/Getting_started_with_**Amazon_EC2<http://wiki.apache.org/couchdb/Getting_started_with_Amazon_EC2>


>>>
>>> The 2nd line says this: Start the Ubuntu 8.10 server image, ami-5059be39
>>>
>>> I searched for that image, and it isn't found in the AWS EC2 listing. So
>>> I
>>> instead installed Ubuntu 11.10 (GNU/Linux 3.0.0-12-virtual i686) (AMI ID:
>>> ami-2e90242f).
>>>
>>> I got through most of the steps, until I hit this step:
>>> sudo adduser --system --home /usr/local/var/lib/couchdb
>>> --no-create-home --shell /bin/bash --group --gecos 'CouchDB account'
>>> couchdb
>>>
>>> It specifies a home directory, but then has the no-create-home flag, and
>>> so
>>> at the end it says "not creating home directory". The next command
>>> results
>>> in this error:
>>>
>>> chown: cannot access `/usr/local/var/lib/couchdb': No such file or
>>> directory
>>>
>>> This command is listed as optional:

>>> sudo vim /usr/local/etc/couchdb/local.**ini

CGS

unread,
Oct 26, 2011, 3:50:20 PM10/26/11
to us...@couchdb.apache.org
Even if it is recommended the latest version, if something is working,
do not touch it unless you know what you do or you are forced to do it.
That's my sincere piece of advice.

If you installed it from "Batteries Included", then you should have
default.ini and local.in under /etc/couchdb/, and the couchdb daemon
under /etc/init.d/. You don't need anything else (no extra user, no
extra building) but to configure it for your needs (in the ini's files).
If you have problems in starting/stopping/restarting and so on, just
type man couchdb and press enter (use stop and start after few seconds
to be sure you restart it correctly - sometimes Erlang processes tend to
report stop while they are still in the process of stopping). Check this
out to start using CouchDB:

http://guide.couchdb.org/editions/1/en/index.html

and if you forget the commands there, just take a look into the short
version of that documentation:

http://jpmens.net/2010/04/20/the-antepenultimate-couchdb-reference-card/

So, sit back and relax while reading about couch. :)

Welcome to this community!

Cheers,
CGS

john.tiger

unread,
Oct 26, 2011, 8:08:10 PM10/26/11
to us...@couchdb.apache.org
I believe that programmers ought to be able to upgrade / build packages
so we should be able to get 1.1.0 downloaded and working (with 1.1.1
soon on the way)

But I just spent the last few hours trying to update my 11.10 to Couch
1.1.0 which the wiki suggests - I tried to follow someone's instructions
for building 1.1.0 in 11.04 but now Ubuntu no longer has xulrunner in
the repositories (frustrating!)

so question is :
a) should we download xulrunner-1.9.2-dev from Natty repository and use
in 11.10 ?
b) Debian shows no xulrunner-1.9.2 but does show 1.9.1.x and 2.0 in
experimental - should we use that ?
c) if there's not a good reason for ubuntu to start dumping key packages
should we switch to Linux Mint with debian testing ?

or should Couch get out of the xulrunner dependency ?

Clarke Bishop

unread,
Oct 26, 2011, 8:29:08 PM10/26/11
to us...@couchdb.apache.org
This is all very frustrating. Couchdb is wonderful, but not if you can't
install it.

build-couchdb at https://github.com/iriscouch/build-couchdb looks great. It
says it works on Ubuntu 10.04 LTS (Lucid Lynx). If I roll back to that
version of Ubuntu, will I be relatively safe? I know nothing's perfect. I
just want to have a good chance to succeed.

I tried a bunch of things that were suggested the other day, but couldn't
get anything to work.

I'd like to use Ubuntu. Is there a version, any version, of Ubuntu that has
a reliable couchdb install?

Please forgive me for complaining. I know all of you and the couchdb dev
team are working hard to do great stuff. I want to do great stuff with
couchdb, but I'm stuck. Before, I thought it was just me and my newbie-ness.
But, it doesn't seem like anyone can get this to work.

Thanks for any help!

Clarke

Robert Wadholm

unread,
Oct 26, 2011, 8:37:20 PM10/26/11
to us...@couchdb.apache.org, cbi...@resultantsys.com
Hi Clarke,
Have you already tried CouchBase Single Server Community Edition for Linux?
http://www.couchbase.com/downloads
Might be the easier way to go if you want a packaged deal.

Bob

Bob Wadholm
www.bob.wadholm.com<http://www.bob.wadholm.com>
rwad...@indiana.edu<mailto:rwad...@indiana.edu>
GitHub (https://github.com/rwadholm)

Thanks for any help!

Clarke

http://guide.couchdb.org/editions/1/en/index.html

http://jpmens.net/2010/04/20/the-antepenultimate-couchdb-reference-card/

Welcome to this community!

Cheers,
CGS

- vince

On Wed, Oct 26, 2011 at 3:18 PM, CGS<cgsmc...@gmail.com<mailto:cgsmc...@gmail.com>> wrote:

So, Ubuntu 11 doesn't have any CouchDB package? Strange. Because
Ubuntu 10
has CouchDB 0.9.

Vince, what you did is correct, only that you need to install CouchDB
before. Using build-couchdb may not put it in the correct path for
you to
follow those instructions. If you want to run it as user and you use
build-couchdb, then you don't need anymore those steps. Just don't
forget to
start CouchDB with -b option (given that build-couchdb will be
successful).

Cheers,
CGS


On 10/26/2011 08:27 PM, kowsik wrote:

Try this:
https://gist.github.com/**1171217<https://gist.github.com/1171217>.
Uses build-couchdb from
@iriscouch to build everything from source, configure couchdb, hookup
logrotate, etc.

K.
---
http://blitz.io
@pcapr

On Wed, Oct 26, 2011 at 11:15 AM, Vince Cardillo<vcar...@gmail.com<mailto:vcar...@gmail.com>>
wrote:

Hi all,

I wanted to install CouchDB on the free tier of Amazon Web
Services so
that
I could play wiht and explore it.

I was following these instructions:

http://wiki.apache.org/**couchdb/Getting_started_with_**Amazon_EC2<http://wi
ki.apache.org/couchdb/Getting_started_with_Amazon_EC2<http://ki.apache.org/couchdb/Getting_started_with_Amazon_EC2>>

Clarke Bishop

unread,
Oct 26, 2011, 8:51:29 PM10/26/11
to us...@couchdb.apache.org
I did try couchbase singer server, but had problems with it. Does it work
with Ubuntu? Which versions?

I'd just like to know about a combination that can definitely work. Then,
I'll troubleshoot if needed. I've just been spinning my wheels trying all
sorts of combinations.

Thanks for your ideas!

Clarke

From: Robert Wadholm [mailto:rwad...@maf.org]
Sent: Wednesday, October 26, 2011 8:37 PM
To: us...@couchdb.apache.org; cbi...@resultantsys.com
Subject: Re: Help installing CouchDB on Ubuntu

Hi Clarke,

Have you already tried CouchBase Single Server Community Edition for Linux?

http://www.couchbase.com/downloads

Might be the easier way to go if you want a packaged deal.

Bob

Bob Wadholm

www.bob.wadholm.com

rwad...@indiana.edu

GitHub (https://github.com/rwadholm)

Thanks for any help!

Clarke

http://guide.couchdb.org/editions/1/en/index.html

version of that documentation:

http://jpmens.net/2010/04/20/the-antepenultimate-couchdb-reference-card/

Welcome to this community!

Cheers,

CGS

Hi All,

instructions: http://wiki.apache.org/couchdb/Installing_on_Ubuntu. I

from a

whereis couchdb

couchdb: /usr/bin/couchdb /etc/couchdb /usr/lib/couchdb

/usr/share/couchdb

/usr/share/man/man1/couchdb.1.gz

- vince

Ubuntu 10

has CouchDB 0.9.

you to

forget to

successful).

Cheers,

CGS

Try this:

Uses build-couchdb from

logrotate, etc.

K.

---

http://blitz.io

@pcapr

wrote:

Hi all,

I wanted to install CouchDB on the free tier of Amazon Web

Services so

that

I could play wiht and explore it.

I was following these instructions:

The 2nd line says this: Start the Ubuntu 8.10 server image,

Robert Wadholm

unread,
Oct 26, 2011, 9:11:08 PM10/26/11
to us...@couchdb.apache.org, cbi...@resultantsys.com
Should work on the latest Ubuntu if that's what you've got. Try the Single Server Community Edition 32-bit or 64-bit Linux Debian package 1.2.0 (based on Apache CouchDB 1.1.x) at http://www.couchbase.com/downloads/couchbase-single-server/community. You'll probably need to first make sure there aren't any remnants of Couch from previous installs still on your machine (may cause installation and/or run time issues).
Hope this helps!
Bob

Bob Wadholm

john.tiger

unread,
Oct 26, 2011, 9:46:14 PM10/26/11
to us...@couchdb.apache.org
okay - got couch 1.1.0 installed okay on Ubuntu 11.10 (I prefer to
install from source and programmers should be able to follow that) -
bit of a mess since the xulrunner pkgs had to come from Maverick
repositories

I followed instructions below from ewhitmor27 but I had to do the following:

1) google for the packages.ubuntu xulrunner-1.9.2-dev, xulrunner-1.9.2
and download - I took mine from the Maverick repository
2) sudo apt-get install libnss3-dev libnotify-dev libiw-dev
libdbus-glib-1-dev libgdk-pixbuf2.0-dev libnspr4-0d
3) sudo dpkg -i xul*.deb
4) also don't forget to use sudo for your apt-gets
5) in the ./configure - I had to use xulrunner-devel-1.9.2.23
6) again use sudo for most system commands
7) my adduser did not work since I already had a couch user installed
8) I did not mess with the firewall - not sure if I should or not


ewhitmor27
PDA
July 5th, 2011, 03:31 PM
I couldnt find anyone who posted an installation guide for building
couchdb 1.1.0 on
ubuntu 11.04 that worked. So here is my build instructions which i setup
on a clean
install of ubuntu 11.04.
I hope this helps someone.
Eric


apt-get build-dep couchdb
apt-get install xulrunner-1.9.2-dev
apt-get install erlang-eunit
mkdir data
cd /data/
wget http://www.eng.lsu.edu/mirrors/apache//couchdb/1.1.0/apache-couchdb-
1.1.0.tar.gz
tar -xvf apache-couchdb-1.1.0.tar.gz
cd apache-couchdb-1.1.0
./configure --prefix=/data/couchdb
--with-js-lib=/usr/lib/xulrunner-devel-1.9.2.17/lib --
with-js-include=/usr/lib/xulrunner-devel-1.9.2.17/include
make && sudo make install
To open up the firewall after updating default.ini bind address to 0.0.0.0:
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5984 -j ACCEPT
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 6984 -j ACCEPT
Make it so couchdb will start after reboot


adduser --system --home /usr/local/var/lib/couchdb --no-create-home
--shell /bin/bash -

-group --gecos "CouchDB Administrator" couchdb
chown -R couchdb:couchdb /data/couchdb
chmod -R 0770 /data/couchdb
cp /data/couchdb/etc/init.d/couchdb /etc/init.d/
update-rc.d couchdb defaults

Marcello Nuccio

unread,
Oct 27, 2011, 2:03:46 AM10/27/11
to us...@couchdb.apache.org
I'm using CouchDB 1.1.0 on Ubuntu 11.04 compiled with
https://github.com/iriscouch/build-couchdb.
The only problem I have found is
https://github.com/iriscouch/build-couchdb/issues/4
On a clean Ubuntu 10.04 LTS installation (do prefer the server
edition) it should work without problems.

Marcello

2011/10/27 john.tiger <john.tig...@gmail.com>:

CGS

unread,
Oct 27, 2011, 2:45:43 AM10/27/11
to us...@couchdb.apache.org
CouchDB version 1.1.0 doesn't work with libmozjs185. Therefore the
Spidermonkey is included there (in build-couchdb). As far as I
understood, version 1.1.1 works with libmozjs185, but I haven't tested
it personally.

If you start CouchDB as a daemon (or system process), you don't need to
create a specific user anymore.

You should mess with your firewall only if you messed with it before,
that is, if you closed all your ports. By default, those ports are not
closed, so, no need to open them. I don't have Ubuntu 11, but I was
working with different other versions and no previous version I worked
with had those ports closed by default. Still, if you go into
production, you may want to close some less secured ports, that much is
true. But not all of them because there isn't quite a point (nmap can
report all the opened ports and the attacker doesn't care if you have
only few or most of ports open) to open ports every time you install
something like a database or any other application which requires a
specific port.

Cheers,
CGS

>> make&& sudo make install

Clarke Bishop

unread,
Oct 28, 2011, 3:29:07 PM10/28/11
to us...@couchdb.apache.org
I tried a bunch of things, and couchbase seemed to work the best. Thanks
Bob!

With couchbase, I got no errors during installation. I started from a clean
version of Ubuntu 11.10.

When I do: /etc/init.d/couchbase-server start, It seems to startup OK. Only
one thing. There's no server at http://127.0.0.1:5984.

Finally, I found:

http://www.couchbase.org/forums/thread/installing-120-ubuntu-1110

These are the extra steps:

chown -R couchbase:couchbase /opt/couchbase-server
apt-get install libssl0.9.8
service couchbase-server restart

Now, couchdb is there on port 5984.

Yea!

Jim Klo

unread,
Oct 28, 2011, 3:44:10 PM10/28/11
to us...@couchdb.apache.org
I tried the Single Server CE on Ubuntu 11.10 ran into issues as well.. started up with an error...   didn't have time to debug, so I just rolled back to Lucid and used "Batteries Included" method of install... worked like a charm!

- Jim

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International



john.tiger

unread,
Oct 28, 2011, 4:31:13 PM10/28/11
to us...@couchdb.apache.org
I posted the instructions on how to compile from source, even with the
necessary dependencies to use the Maverick xulrunner. Ability to
compile the latest versions from source IS the advantage of open
source. Sad when employees can't get past using packaged deployment and
revert back to older versions rather than some simple compile steps.


On 10/28/2011 01:44 PM, Jim Klo wrote:
> I tried the Single Server CE on Ubuntu 11.10 ran into issues as well..
> started up with an error... didn't have time to debug, so I just
> rolled back to Lucid and used "Batteries Included" method of
> install... worked like a charm!
>
> - Jim
>

> *
> *
> *
> *Jim Klo*


> Senior Software Engineer
> Center for Software Engineering
> SRI International

> *
> *
> *

>> www.bob.wadholm.com <http://www.bob.wadholm.com>

Jim Klo

unread,
Oct 28, 2011, 10:40:11 PM10/28/11
to us...@couchdb.apache.org
<flamebait>
It's sad when an excellent mature product has a stable release, and I have to spend 3 hours to figure out why it doesn't compile and install by having search the fragmented internet to decipher the cryptic error dumps or for ways to make it compile, or have to learn any other beyond basic build related information. An mindless IT monkey (guy who just sets up servers) should be able to install it quickly and efficiently.

As a USER of couchdb (as I thought this was us...@couchdb.apache.org!), I shouldn't have to know how to deal with Spidermonkey, Erlang, libmozjs, etc. or understand how they work with CouchDB. The fact that I do know how to deal with most of those things is a plus, but shouldn't be a requirement.  I should just be able to install and use. ./configure; make & sudo make install is perfectly acceptable to me... it just needs to work consistently!  

Most users of CouchDB will not have the time to deal with this either!  Time is $$$.

So I wouldn't go out and bash all those folks who want to use binaries.  You must be a Gentoo worshiper... 
</flamebait>

A good OSS citizen would go update the Wiki with those instructions! :)

Thanks,

- Jim

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International

Keith Gable

unread,
Oct 28, 2011, 10:51:43 PM10/28/11
to us...@couchdb.apache.org
You say Gentoo worshipper like it's a bad thing. ;-)

And on that note, CouchDB installed wonderfully on my Gentoo install. :-)

But I see where you're coming from. Which is why I think that iriscouch made
build-couchdb but I may be mistaken.


On Oct 28, 2011 9:40 PM, "Jim Klo" <jim...@sri.com> wrote:

> <flamebait>
> It's sad when an excellent mature product has a stable release, and I have
> to spend 3 hours to figure out why it doesn't compile and install by having
> search the fragmented internet to decipher the cryptic error dumps or for
> ways to make it compile, or have to learn any other beyond basic build
> related information. An mindless IT monkey (guy who just sets up servers)
> should be able to install it quickly and efficiently.
>
> As a USER of couchdb (as I thought this was us...@couchdb.apache.org!), I
> shouldn't have to know how to deal with Spidermonkey, Erlang, libmozjs, etc.
> or understand how they work with CouchDB. The fact that I do know how to
> deal with most of those things is a plus, but shouldn't be a requirement. I
> should just be able to install and use. ./configure; make & sudo make
> install is perfectly acceptable to me... it just needs to work consistently!
>
>
> Most users of CouchDB will not have the time to deal with this either!
> Time is $$$.
>
> So I wouldn't go out and bash all those folks who want to use binaries.
> You must be a Gentoo worshiper...
> </flamebait>
>
> A good OSS citizen would go update the Wiki with those instructions! :)
>
> Thanks,
>
> - Jim
>

> *


> Jim Klo
> Senior Software Engineer
> Center for Software Engineering
> SRI International

> *

> To: us...@couchdb.apache.org<mailto:us...@couchdb.apache.org<us...@couchdb.apache.org>>;
> cbi...@resultantsys.com<mailto:cbi...@resultantsys.com<cbi...@resultantsys.com>

Jason Smith

unread,
Oct 28, 2011, 11:37:20 PM10/28/11
to us...@couchdb.apache.org
On Sat, Oct 29, 2011 at 2:51 AM, Keith Gable <zi...@ignition-project.com> wrote:
> But I see where you're coming from. Which is why I think that iriscouch made
> build-couchdb but I may be mistaken.

The thing to remember about build-couchdb is it is strictly a *build*
tool in the traditional sense of Unix software. It is not a software
bundle. It is not a package. It is not an installer. (Although it is a
component in such projects.)

build-couchdb is conceptually `./configure && make && make install`.
Sysadmins tend to consider that a complete solution; programmers tend
to consider it not. `make install` is just some files on a disk;
bringing them alive still takes work. That work is site-specific. It
is hard even to define those goals, much less achieve them in
build-couchdb.

--
Iris Couch

CGS

unread,
Oct 29, 2011, 2:51:46 AM10/29/11
to us...@couchdb.apache.org
Hi,

Jason, maybe you should update your project to be more verbose. In such
way you will know exactly where the problems are when it fails. Also,
maybe you should check for installed dependencies (e.g., if libmozjs is
installed, then your build will fail because CouchDB will take the
default installation). Just a suggestion for your free time, nothing else.

For the rest, yes, I agree, for someone new or someone who doesn't have
time for that, it may be a pain. I understand that because first time I
had to install CouchDB on my laptop I had no time for manual
installation and I took also "batteries included" approach. And maybe I
would have continued with this approach if the next project wasn't
requiring CentOS which doesn't have any CouchDB package. So, I was
forced to install it from source (and to install manually almost all the
major dependencies). Also, I admit I had to spend some time to find all
the correct dependencies (the worst was the SpiderMonkey for which the
configure doesn't check for the correct version, therefore it doesn't
report any problem, but GNU Make stops the compilation because of
incompatibilities in between versions of SpiderMonkey). But, believe or
not, I found other software which was worst to be installed (in which
configure didn't report missing dependencies, so, I found which
libraries were missing from the compilation stage in which I had to look
for certain headers and so on).

So, yes, maybe that's something CouchDB is not so strong about (the
installation documentation to be more detailed). But you are not alone,
you have this community to help you (in case you have time to learn how
to install it for the first time from source - the worst is the first
time, as always). Otherwise, "batteries included" may be the best option
for you (as it was for me too).

Cheers,
CGS

On 10/29/2011 05:37 AM, Jason Smith wrote:
> On Sat, Oct 29, 2011 at 2:51 AM, Keith Gable<zi...@ignition-project.com> wrote:
>> But I see where you're coming from. Which is why I think that iriscouch made
>> build-couchdb but I may be mistaken.
> The thing to remember about build-couchdb is it is strictly a *build*
> tool in the traditional sense of Unix software. It is not a software
> bundle. It is not a package. It is not an installer. (Although it is a
> component in such projects.)
>

> build-couchdb is conceptually `./configure&& make&& make install`.

Mark Hahn

unread,
Oct 29, 2011, 1:35:20 PM10/29/11
to us...@couchdb.apache.org
> if the next project wasn't requiring CentOS which doesn't have any CouchDB
package.

That explains a lot of your problems. Centos is famous for having
out-of-date packages. A year ago I tried to install couchdb on centos and
gave up. I switched to ubuntu and things went smoothly.

CGS

unread,
Oct 30, 2011, 4:58:22 AM10/30/11
to us...@couchdb.apache.org
Ubuntu is nice, but it doesn't provide also new packages - they are all
the time 2 versions behind. But that's tradition there. :)

Nevertheless, CouchDB 1.1.0 can be installed on CentOS 6.0. That is for
sure if you want to take back the job. :D

Martin Hewitt

unread,
Oct 30, 2011, 6:56:03 AM10/30/11
to us...@couchdb.apache.org
For various reasons we use CentOS 6 on our servers. I have a full build script i follow if it's any use...?

Martin

Sent from my iPhone

Nils Breunese

unread,
Nov 1, 2011, 7:49:39 AM11/1/11
to us...@couchdb.apache.org
CGS wrote:

> And maybe I would have continued with this approach if the next project wasn't requiring CentOS which doesn't have any CouchDB package.

The Extra Packages for Enterprise Linux (EPEL) repository [0] does have a couchdb packages for Red Hat Enterprise Linux and binary compatible distributions like CentOS and Scientific Linux. If you add that repository installing CouchDB is as easy as 'yum install couchdb'. Currently CouchDB 1.0.2 is in the repository for EL6 and 0.11.2 in the repository for EL5.

Nils.

[0] http://fedoraproject.org/wiki/EPEL
------------------------------------------------------------------------
VPRO www.vpro.nl
------------------------------------------------------------------------

Bade Iriabho

unread,
Jan 20, 2012, 3:53:44 PM1/20/12
to us...@couchdb.apache.org
Hello Martin can you share please. Thanks.

Randall Leeds

unread,
Jan 20, 2012, 5:33:38 PM1/20/12
to us...@couchdb.apache.org
The Ubuntu instructions are the wiki are incredible difficult to
follow because things have changed in the Ubuntu repositories, mostly
around SpiderMonkey, and it's really hard to communicate it all in the
wiki. I've tried and I've edited that page a number of times but I
know there are problems... I'll comb back through it. Sorry for that.

I wish I had caught this thread earlier, but if you wouldn't mind
testing out my PPA for Ubuntu, that would be great. It should install
1.1.1 on any Natty with no trouble.

$ apt-get install python-software-properties <- needed for
next command
$ apt-add-repository ppa:randall-leeds/couchdb
$ apt-get install couchdb
$ update-rc.d couchdb defaults <- start at startup

I haven't put this on the wiki because I haven't received feedback yet
from people tell me it worked for them.

-Randall

Marcello Nuccio

unread,
Jan 21, 2012, 2:06:38 AM1/21/12
to us...@couchdb.apache.org
Randall, I've found the time to test your PPA on Ubuntu Oneiric server 32bit.

Following *exactly* your instructions, I've installed couchdb-1.0.1
from Ubuntu repositories, because you forgot to `apt-get update` after
`apt-add-repository`.

Then I've tried to "dist-upgrade". This went well, but the old service
failed to stop during upgrade. So I had to kill the old process before
starting the new one. However this is not a problem of your PPA.

Then I've run the test suite from Futon and it worked.

Can I suggest to use Upstart instead of the old system? It's trivially
easy to setup, and it's much more reliable. It never happened to me
that stopping of a service fails with upstart. I can send you the
configuration I'm using if you want.

Thanks,
Marcello

2012/1/20 Randall Leeds <randal...@gmail.com>:

Randall Leeds

unread,
Jan 21, 2012, 5:40:44 PM1/21/12
to us...@couchdb.apache.org
On Fri, Jan 20, 2012 at 23:06, Marcello Nuccio
<marcell...@gmail.com> wrote:
> Randall, I've found the time to test your PPA on Ubuntu Oneiric server 32bit.
>
> Following *exactly* your instructions, I've installed couchdb-1.0.1
> from Ubuntu repositories, because you forgot to `apt-get update` after
> `apt-add-repository`.
>
> Then I've tried to "dist-upgrade". This went well, but the old service
> failed to stop during upgrade. So I had to kill the old process before
> starting the new one. However this is not a problem of your PPA.
>
> Then I've run the test suite from Futon and it worked.
>
> Can I suggest to use Upstart instead of the old system? It's trivially
> easy to setup, and it's much more reliable. It never happened to me
> that stopping of a service fails with upstart. I can send you the
> configuration I'm using if you want.

Great feedback. I'd love to see the upstart config you're using.
I looked at an upstart setup for the first time this past week and it
seems very easy indeed.

pblakez

unread,
Jan 22, 2012, 4:59:21 PM1/22/12
to us...@couchdb.apache.org
Gidday Randall

installed on Lubuntu 11.10 very smooth no problems, clean uninstall as well
a great improvement on the wiki instructions

cheers pb....

--
cheers pb...

*follow ==>* <https://www.twitter.com/@pblakez>
<https://www.facebook.com/pblakez>

Reply all
Reply to author
Forward
0 new messages