I went through hard time a few months back trying to install Riak from source on Ubuntu Natty. The Riak Docs were not descriptive enough with what needed to be done.
Do you have access to a clean Linux Server e.g. Rackspace Cloud Servers or Linux on a VM? If so, the following script should do it for you. NOTE: Ensure you replace the paths to Erlang and Riak with the versions you want to install. The installation below is for Riak 1.1.1. so you can just change the paths. #SCRIPT START #Bring your Linux Build up to date apt-get -y update apt-get -y upgrade #Create Temporary Directory for Source Files mkdir src && cd src #Install Dependencies apt-get -y install build-essential libncurses5-dev openssl libssl-dev m4 libssh-dev unixodbc-dev libwxgtk2.8-dev libglu-dev fop xsltproc default-jdk tk-dev apt-get -y install git-core curl #Install Erlang from Source wget http://www.erlang.org/download/otp_src_R14B04.tar.gz tar zxf otp_src_R14B04.tar.gz cd otp_src_R14B04 ./configure && make && make install cd .. #2. Install Riak wget http://downloads.basho.com/riak/riak-1.1.1/riak-1.1.1.tar.gz tar zxf riak-1.1.1.tar.gz mkdir /usr/local/riak cp -r riak-1.1.1/* /usr/local/riak cd /usr/local/riak make rel #SCRIPT END It might also work with your current server as is. Try it out and see. If you have access to a terminal (SSH), copy and paste and run each line in your terminal. It might take a while during the Erlang install though. Cheers. Charles. -----Original Message----- From: "Kevin Burton" <rkevinbur...@charter.net> Sent: Thursday, 1 November, 2012 7:48pm To: char...@contentomni.com Cc: "'Jared Morrow'" <ja...@basho.com>, riak-users@lists.basho.com Subject: RE: Riak installation on Ubuntu Server Since I already have erlang installed do I have to uninstall it and do this apt-get then reinstall it? If so how do I do that? I am just following the directions in the documentation (http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Debian-and-Ubuntu/). Like the documentation says my Ubuntu has a package that is out of date even though it has the right version stamp? -----Original Message----- From: char...@contentomni.com [mailto:char...@contentomni.com] Sent: Thursday, November 01, 2012 1:26 PM To: Kevin Burton Cc: 'Jared Morrow'; riak-users@lists.basho.com Subject: RE: Riak installation on Ubuntu Server If you're building from source you'll want to have some dependencies installed first by running the following command i.e. before installing Erlang: apt-get -y install build-essential libncurses5-dev openssl libssl-dev m4 libssh-dev unixodbc-dev libwxgtk2.8-dev libglu-dev fop xsltproc default-jdk tk-dev Cheers, Charles. -----Original Message----- From: "Kevin Burton" <rkevinbur...@charter.net> Sent: Thursday, 1 November, 2012 7:07pm To: "'Jared Morrow'" <ja...@basho.com> Cc: riak-users@lists.basho.com Subject: RE: Riak installation on Ubuntu Server _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com By the way the build seems to work fine (make rel). Just a few warnings. But there is no indication of an error until the erlang generate error detailed below. From: Jared Morrow [mailto:ja...@basho.com] Sent: Thursday, November 01, 2012 12:58 PM To: Kevin Burton Cc: riak-users@lists.basho.com Subject: Re: Riak installation on Ubuntu Server Devrel will depend on a working build first, so sticking with just 'make' to see if that works will be a good first step. If you can run 'make' and put the output in a gist or pastebin for me I can try and take a look at it. Are you building from an untarred source tarball of Riak 1.2.1, or cloning from Github? Also, if you haven't already looked at it, these instructions are the best ones to follow when building from source http://docs.basho.com/riak/latest/tutorials/installation/Installing-Riak-fro m-Source/ -Jared On Thu, Nov 1, 2012 at 11:46 AM, Kevin Burton <rkevinbur...@charter.net> wrote: I get Erlang R15B01 (erts-5.9.1) [source] [64bit] [async-threads:0] [kernel-poll:false] EShell V5.9.1 (abort with ^G) In the case of make devrel it is definitely skipping something as the dev directory is completely empty. From: Jared Morrow [mailto:ja...@basho.com] Sent: Thursday, November 01, 2012 12:39 PM To: Kevin Burton Cc: riak-users@lists.basho.com Subject: Re: Riak installation on Ubuntu Server If building 1.2.1 from source, make sure you have erlang r15B01 installed and in your path. That particular error I have never seen. If you type 'erl' in the command line, what do you see? -Jared On Thu, Nov 1, 2012 at 11:33 AM, Kevin Burton <rkevinbur...@charter.net> wrote: Better yet I decided to build from source. But I ran into the following error: ERROR: Unable to generate spec: read file info /usr/lib/erlang/man/man1/qemu-i386.1 failed >From the content this error seems to related to erlang more than riak but I am wondering if this makes other portions of the build unavailable? Thanks again. From: Jared Morrow [mailto:ja...@basho.com] Sent: Thursday, November 01, 2012 11:50 AM To: Kevin Burton Cc: riak-users@lists.basho.com Subject: Re: Riak installation on Ubuntu Server Kevin, So you are on 12.10, which is one minor release past Precise (12.04) which is the current LTS (Long Term Support) release. I haven't confirmed that the Precise Riak package will work on Quantal, but I suspect it will be fine. In version mismatches most issues you'll find will be on install with dependencies. If this is something you will rely on for a business in a production sense, I'd recommend using a LTS release like Precise (12.04) instead and know that we tested Riak on that platform. If this is for development purposes, you will likely be fine on 12.10. If something complains on install with dependencies please let me know so I can respond differently the next time this comes up on the mailing list. -Jared On Thu, Nov 1, 2012 at 10:44 AM, Kevin Burton <rkevinbur...@charter.net> wrote: I can do a lsb_release -a and I get: Distributor ID: Ubuntu Description: Ubuntu 12.10 Release: 12.10 Codename: quantal From: Jared Morrow [mailto:ja...@basho.com] Sent: Thursday, November 01, 2012 11:42 AM To: Kevin Burton Cc: riak-users@lists.basho.com Subject: Re: Riak installation on Ubuntu Server Kevin As far as I know, the lsb_release tool is installed by default on all Ubuntu installs. You can use it to get the codename of the release like: For Ubuntu 10.04 $ lsb_release -c Codename: lucid or Ubuntu 12.04 $ lsb_release -c Codename: precise You can also get the information from the /etc/lsb-release file directly. % cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS" Hope that helps, Jared On Thu, Nov 1, 2012 at 10:26 AM, Kevin Burton <rkevinbur...@charter.net> wrote: I was looking at the options of installing Riak and there are several options under Ubuntu: Lucid, Natty, and Precise. This is a Linux Ubuntu Server. I am not sure how to tell which variant it is. Thank you. Kevin _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com