You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by George Burt <im...@gmail.com> on 2011/01/31 21:49:31 UTC

Loading CouchDB to Amazon Linux AMI

It is a Centos 5 flavor, but all the instructions I find about Centos
predate version 1.x of Couch.

Does anyone have a link that might help?

Thanks,

-- 
George Burt

Re: Loading CouchDB to Amazon Linux AMI

Posted by Nathan Vander Wilt <na...@calftrail.com>.
I compiled CouchDB on the default AMI, and I didn't need quite so many manually installed dependencies at least back then. Here's my notes for comparison:

# 2010 November 27 #

### CouchDB ###
# following Fedora instructions at https://github.com/couchone/build-couchdb
sudo yum install git gcc gcc-c++ libtool libcurl-devel zlib-devel openssl-devel
wget http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
sudo ruby install.rb
git clone git://github.com/couchone/build-couchdb
cd build-couchdb
git submodule init
git submodule update
vi tasks/distros.rb	# add return [:fedora, 100] at top of function
rake

build/bin/couchdb
curl -X PUT localhost:5984/_config/admins/NAME -d '"PASSWORD"'
curl -X PUT NAME:PASSWORD@localhost:5984/_config/httpd/bind_address -d '"0.0.0.0" # to test (put on 127.0.0.1 behind nginx later)


On Feb 2, 2011, at 6:24 AM, George Burt wrote:
> Thanks for all the pointers.  I finally successfully installed on Amazon
> Linux stock AMI (this makes me feel better because Amazon offers paid
> support for that platform).
> 
> It is a Centos 5.5 (at the time of this posting).  The problem is that the
> ruby distro code referenced in the couchio installation instructions:
> https://github.com/couchone/build-couchdb
> does not have an allowance for CentOS.  I have encluded the needed change to
> make the Centos distro look like fedora (which is what they recommend for
> Red Hat in the instructions - FYI Centos is an opensource version of Red
> Hat).
> 
> You need to login to the Amazon Linux instance you have created from the AWS
> Management Console (instructions for that are not included here).  I have
> only tried 32bit, but plan to try 64bit later today.  Login as "ec2-user".
> Then the procedure is as follows:
> 
> sudo yum install gcc gcc-c++ libtool curl-devel ruby-rdoc zlib-devel
> openssl-devel
> wget
> http://download.fedora.redhat.com/pub/epel/5/i386/rubygems-1.3.1-1.el5.noarch.rpm
> wget
> http://download.fedora.redhat.com/pub/epel/5/i386/rubygem-rake-0.8.7-2.el5.noarch.rpm
> sudo rpm -ivh rubygem-rake-0.8.7-2.el5.noarch.rpm
> rubygems-1.3.1-1.el5.noarch.rpm
> ruby --version
> curl
> sudo yum install git-core
> git clone git://github.com/couchone/build-couchdb
> cd build-couchdb/
> git submodule init
> git submodule update
> nano tasks/distros.rb
> 
> --- Go to the bottom of the file and comment out "nil" and add the line
> shown.
> #nil
> return [:fedora, '5.5']
> 
> 
> rake
> build/bin/couchdb
> -- now couchdb should be running
> 
> - George


Re: Loading CouchDB to Amazon Linux AMI

Posted by George Burt <im...@gmail.com>.
Thanks for all the pointers.  I finally successfully installed on Amazon
Linux stock AMI (this makes me feel better because Amazon offers paid
support for that platform).

It is a Centos 5.5 (at the time of this posting).  The problem is that the
ruby distro code referenced in the couchio installation instructions:
https://github.com/couchone/build-couchdb
does not have an allowance for CentOS.  I have encluded the needed change to
make the Centos distro look like fedora (which is what they recommend for
Red Hat in the instructions - FYI Centos is an opensource version of Red
Hat).

You need to login to the Amazon Linux instance you have created from the AWS
Management Console (instructions for that are not included here).  I have
only tried 32bit, but plan to try 64bit later today.  Login as "ec2-user".
Then the procedure is as follows:

sudo yum install gcc gcc-c++ libtool curl-devel ruby-rdoc zlib-devel
openssl-devel
wget
http://download.fedora.redhat.com/pub/epel/5/i386/rubygems-1.3.1-1.el5.noarch.rpm
wget
http://download.fedora.redhat.com/pub/epel/5/i386/rubygem-rake-0.8.7-2.el5.noarch.rpm
sudo rpm -ivh rubygem-rake-0.8.7-2.el5.noarch.rpm
rubygems-1.3.1-1.el5.noarch.rpm
ruby --version
curl
sudo yum install git-core
git clone git://github.com/couchone/build-couchdb
cd build-couchdb/
git submodule init
git submodule update
nano tasks/distros.rb

--- Go to the bottom of the file and comment out "nil" and add the line
shown.
#nil
return [:fedora, '5.5']


rake
build/bin/couchdb
-- now couchdb should be running

- George

Re: Loading CouchDB to Amazon Linux AMI

Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 1 February 2011 09:49, George Burt <im...@gmail.com> wrote:
> It is a Centos 5 flavor, but all the instructions I find about Centos
> predate version 1.x of Couch.
>
> Does anyone have a link that might help?
>
> Thanks,
>
> --
> George Burt
>

Hi George,

You could give Jason Smith's https://github.com/couchone/build-couchdb
a try- while Centos isn't on his supported list it can't be too far
off.

Cheers
Dave

Re: Loading CouchDB to Amazon Linux AMI

Posted by Nils Breunese <N....@vpro.nl>.
George Burt wrote:

> It is a Centos 5 flavor, but all the instructions I find about Centos
> predate version 1.x of Couch.
>
> Does anyone have a link that might help?

The Extra Packages for Enterprise Linux (EPEL) repository [0] for EL5 has CouchDB packaged in their repository. That package is still on 0.11.2 though, but it works just fine and is in my opinion the easiest way to get CouchDB running on EL5 (add repository to yum configuration > yum install couchdb > service couchdb start). I recently asked @dev about whether 0.11.x is still supported and I believe the current security fixes in 1.0.2 are being backported to 0.11.x so the latest two lines of releases are supported. When 0.11.x support stops I guess the EPEL maintainer could be convinced of upgrading to a supported version.

Nils.

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

Re: Loading CouchDB to Amazon Linux AMI

Posted by Huw Selley <hu...@netdev.co.uk>.
Hi,

On 31 Jan 2011, at 20:59, Randall Leeds wrote:

> Building CouchDB from source on CentOS should be no problem.
> However, you may want to apply this patch[1], recently landed on trunk
> but not in any released version, which addresses the lack of a
> suitably new libcurl on CentOS 5.

I have been installing from source (the 1.0.1 release and the 1.1 branch mostly) on Oracle Enterprise Linux which is pretty much RHEL5 and maps directly to centos. 

Due to the erlang version being R12B5 that you might want to upgrade to R14. It was pretty painless to build from source and install.

To build 1.0.1 from source downloaded the source package and:

yum install make gcc gcc-c++ erlang libicu-devel openssl-devel js-devel

Then I grabbed and built/installed curl:

Download http://curl.haxx.se/download/curl-7.21.2.tar.gz

configure;make;make install 

to install it into /usr/local

and then ran:

./configure --with-erlang=/usr/lib64/erlang/usr/include/
make;make install

In the unpacked couch src dir.

If you install erlang from source you will want to change the path that the '--with-erlang' flag points at. Ditto if you are 32bit not 64.

You should then be able to start couch with:

/usr/local/bin/couchdb 

Cheers
Huw



Re: Loading CouchDB to Amazon Linux AMI

Posted by Randall Leeds <ra...@gmail.com>.
Building CouchDB from source on CentOS should be no problem.
However, you may want to apply this patch[1], recently landed on trunk
but not in any released version, which addresses the lack of a
suitably new libcurl on CentOS 5.

-Randall

[1] https://issues.apache.org/jira/browse/COUCHDB-1042

On Mon, Jan 31, 2011 at 12:49, George Burt <im...@gmail.com> wrote:
> It is a Centos 5 flavor, but all the instructions I find about Centos
> predate version 1.x of Couch.
>
> Does anyone have a link that might help?
>
> Thanks,
>
> --
> George Burt
>