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

installing/updating ror

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

sudo update_rubygems

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

cd /downloads

tar zvxf rubygems-1.3.1.tgz

cd rubygems-1.3.7

ruby setup.rb

Now when I typed gem -v I see that it is 1.3.7 now, yay!

installing git

$ yum install git-core

installing mongodb

yum install mongo-stable mongo-stable-server

installing mongodb driver

gem install mongo

git clone git://

cd mongo-ruby-driver/

rake gem:install

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..

See you!


Tags: , , ,

Comments: 2

Leave a reply »

  • dan


    I do all this and i still get some sort of error which is producing an internal server error

    currently it shows this when i try to run the server :

    root@276616-www1 shapado]# script/server -e development
    => Booting WEBrick
    => Rails 2.3.10 application starting on
    => Call with -d to detach
    => Ctrl-C to shutdown server
    [2011-01-18 16:14:40] INFO WEBrick 1.3.1
    [2011-01-18 16:14:40] INFO ruby 1.8.7 (2008-08-11) [x86_64-linux]
    [2011-01-18 16:14:40] WARN TCPServer Error: Address already in use – bind(2)
    /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `initialize’: Address already in use – bind(2) (Errno::EADDRINUSE)
    from /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `new’
    from /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners’
    from /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `each’
    from /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners’
    from /usr/local/lib/ruby/1.8/webrick/server.rb:75:in `listen’
    from /usr/local/lib/ruby/1.8/webrick/server.rb:63:in `initialize’
    from /usr/local/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize’
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:10:in `new’
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:10:in `run’
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.10/lib/commands/server.rb:111
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require’
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require’
    from script/server:3

    however if i try to run it on another port with ;

    script/server -e development -p 3001

    it just seems to freeze but still gives me the internal server error

    i have no idea whats wrong with it, any clues?


    my skype is darkedge3 🙂

  • serdar

    hay dan,

    it seems like port issue at first as you understand and changed port. After this problem, webrick freezing is normal, please give me the exact 500 error, so I can look at it again.

  • Leave a Reply
    Your gravatar
    Your Name