UPDATE 21/02/2014: Couchbase Server packages are now available from the website. Leaving this post online just for reference..
At the time of this writing, CouchBase unfortunately is not distributing packages for Debian, and well, my server is Debian. There are several ways to go about this (like compiling the software yourself). Since I’m just attempting to test the Sync Gateway and therefore need a newer version of CouchDB ( >= 2.0), I’m taking the shortest way I found (using the compiled .deb files). And guess what? It worked!
This is all I did:
Make sure you observe the correct CPU architecture for your server while downloading the packages.
-Install libssl0.9.8, in case it’s not already. You can fetch it from here: https://packages.debian.org/squeeze/i386/libssl0.9.8/download
sudo dpkg -i libssl0.9.8_0.9.8o-4squeeze14_i386.deb
Download the ubuntu package from Couchbase website:
And install it:
thiagoalencar@conektapp:~$ sudo dpkg -i couchbase-server-community_2.2.0_x86_openssl098.deb
(Reading database ... 51476 files and directories currently installed.)
Unpacking couchbase-server (from couchbase-server-community_2.2.0_x86_openssl098.deb) ...
libssl0.9.8 is installed. Continue installing
Minimum RAM required : 4 GB
System RAM configured : 514436 kB
Minimum number of processors required : 4 cores
Number of processors on the system : 1 cores
Setting up couchbase-server (2.2.0) ...
[ ok ] Started couchbase-server.
You have successfully installed Couchbase Server.
Please browse to http://conektapp:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.
Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 11209, 4369,
8091, 8092 and from 21100 to 21299.
By using this software you agree to the End User License Agreement.
PS: Don’t forget to create some swap in case you’re running on a low RAM machine, otherwise errors will occur in couchbase. For 4GB swap:
dd if=/dev/zero of=/home/swapfile1 bs=1024 count=4194304;
chown root:root /home/swapfile1;
chmod 0600 /home/swapfile1; mkswap /home/swapfile1;
Check the output, if it’s working, then add to /etc/fstab for reboot persistence:
/home/swapfile1 none swap sw 0 0