Installing |
Starling & Memcache-client Gems ![]() |
Installing: System Pkgs & Links
Ubuntu 8.10 / 9.10
sudo apt-get update
Now install all the necessary supporting software. You’ll need git to download the software. Also, webiva needs: Ruby, MySql, RMagick, memcached, rubygems and rake to run (You’ll also probably want Apache2 instead of running via webrick) and you’ll need to compile some gems to make it work so you’ll need some dev libraries as well:
sudo apt-get install mysql-server mysql-client ruby1.8 ruby1.8-dev rdoc1.8 \
libmagick9-dev libimage-size-ruby1.8 libxslt1-dev \
g++ gcc libmysql-ruby1.8 irb openssl zip unzip libopenssl-ruby \
apache2 memcached libmysqlclient15-dev build-essential \
git-core rubygems rake
OS X
To install on OS X I highly recommend using cider: http://www.atmos.org/cider/
After the default cider install you’ll need imagemagick which can be installed via homebrew:
brew install imagemagick
And you’ll need to install the imagesize gem manually
gem install imagesize
Debian Lenny
Note: backports must be installed as a repository to run Webiva successfully. Make sure you have the a backports line in your sources.list, otherwise you can run:
sudo sh \
-c 'echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" > \
/etc/apt/sources.list.d/backports.list'
sudo sh -c 'wget -O - http://backports.org/debian/archive.key | apt-key add -'
Now run an update:
sudo apt-get update
Now install all the necessary supporting software. You’ll need git to download the software. Also, webiva needs: Ruby, MySql, RMagick, memcached, rubygems and rake to run (You’ll also probably want Apache2 instead of running via webrick) and you’ll need to compile some gems to make it work so you’ll need some dev libraries as well:
sudo apt-get install mysql-server mysql-client ruby1.8 ruby1.8-dev rdoc1.8 \
libmagick9-dev libimage-size-ruby1.8 libxslt1-dev \
g++ gcc libmysql-ruby1.8 irb openssl zip unzip libopenssl-ruby \
apache2 memcached libmysqlclient15-dev build-essential \
git-core rubygems rake
Fedora 12
sudo yum update
Since the package names are different, here is the list of packages required for installing Webiva on Fedora.
sudo yum install mysql-server mysql rubygem-rails ruby-mysql ruby-rdoc \
ruby-devel ruby-imagesize rubygem-tlsmail libxslt libxslt-devel gcc \
ImageMagick-devel gcc-c++ mysql-devel git memcached
The installer is looking for mysql libraries in a certain place. Sym link the libraries to make sure there are no troubles during installation.
sudo ln -s /usr/lib64/mysql /usr/local/lib/
Now for the socket connection to the mysql database. Ruby will look for mysql socket in /var/run/mysqld/mysql.sock but it won’t be there. You have two choices. You can edit the /etc/my.cnf to point to the other location, or you can symlink it, which is the preferred choice.
sudo ln -s /var/lib/mysql/mysql.sock /var/run/mysqld/mysqld.sock
If you have just installed mysql server for the first time on this system, you’ll need to start it.
sudo /etc/init.d/mysqld start
Installing |
Starling & Memcache-client Gems ![]() |

Installing