Saturday, December 24, 2011

Ubuntu 11.10 - Riak Installation

The beta version of the book Seven Databases in Seven Weeks was updated from using Riak 0.14.1 to 1.0.2. Getting everything set up correctly on Ubuntu was a bit of a pain at first. This was until I realized that the version of Erlang referenced in the book incorrect. The book references that R13B04 was needed , but in fact R14B03 is needed.

Another big problem that I encountered was installing Riak from the source archive. After decompressing and running make all I was getting an error referring to git. Not too sure why make was expecting to be run in an initialized repository. In case others have had installation problems below are the steps to set up Riak 1.0.2 on Ubuntu 11.04.


Installing Erlang
sudo apt-get install curl build-essential libncurses5-dev openssl libssl-dev fop xsltproc
curl -O https://raw.github.com/spawngrid/kerl/master/kerl
chmod a+x kerl
./kerl build R14B03 r14b03
sudo ./kerl install r14b03 /opt/erlang/r14b03 . /opt/erlang/r14b03/activate


Installing Riak
sudo apt-get install build-essential libc6-dev-i386
git clone https://github.com/basho/riak.git riak
cd riak
git checkout riak-1.0.2
make all
make devrel

Sunday, December 11, 2011

PostgreSQL 9.1: Installation Of Cube Extension

So I started working through Seven Databases In Seven Weeks. The first database introduced is PostgreSQL. With having zero experience with setting up or configuring PostgreSQL it took me a while to finally figure out how to install all of the modules/extensions that the tutorial requires. Below are the commands used to install the required modules PostgreSQL.


psql book -c "CREATE EXTENSION tablefunc"
psql book -c "CREATE EXTENSION dict_xsyn"
psql book -c "CREATE EXTENSION fuzzystrmatch"
psql book -c "CREATE EXTENSION pg_trgm"
psql book -c "CREATE EXTENSION cube"


After that you should be good to go in working through the chapter.

Wednesday, December 7, 2011

CodeSmith Generator Download Archive

For those of you who still haven't upgraded to CodeSmith 6 you might be surprise that CodeSmith no longer has links to the previous version. Yes, the previous version is still hosted on the website, but without knowing the exact url you would never find it. The links that I found all point to the generic download page, which only contains the downloads for the latest version of CodeSmith Generator.

To help facilitate the need for a download archive below are the links to both the Standard and Professional version of CodeSmith Generator.

CodeSmith Generator 5.3.4.12823 Professional
CodeSmith Generator 5.3.4.12823 Standard
CodeSmith Generator 6.0 (Thanks to Anonymous' comment below)