Installing Shapado Dependencies
This post is about installing shapado software dependencies. Shapado is written with ruby on rails and it is one of the best question & answer software I can found. The other one I really like is osqa q&a software which is written with django.
Installing these dependencies is not very difficult actually, but may take few hours for a newbie..
Before installation steps, my OS distribution is CentOS. So lets start..
Shapado dependent on below ruby version, gems etc.
– git >= 1.6
– ruby >= 1.8.7 <1.9
– rubygems >= 1.3.7
– mongodb >= 1.6
– ruby on rails =2.3.10
gem install rails -v=2.3.10
(you may or may not need sudo at the beginning of the command)
updating rubygems to 1.3.7
this is the part I had difficulties..
my gem version was 1.2.0 and whenever I run below command
gem update --system
It says “Updating RubyGems
Nothing to update”
So I tried downloading update package manually and run the update command as below:
sudo gem install rubygems-update
but still no luck..
Ok, now the last and hardest option, I need to update manually.
I created a folder named “/downloads/” with mk command and typed below command to download the latest version of gem
after downloading it,
sudo su - root
tar zvxf rubygems-1.3.1.tgz
Now when I typed gem -v I see that it is 1.3.7 now, yay!
$ yum install git-core
yum install mongo-stable mongo-stable-server
installing mongodb driver
gem install mongo
git clone git://github.com/mongodb/mongo-ruby-driver.git
gem install bson_ext
After installing these dependencies you can read the installation of shapado here: shapado readme and your q&a system is ready to go..