MySQL Connector for C++

MySQL Connector/C++ is a MySQL database connector for C++.


If you are using Linux then you need to install two additional packages i.e. libmysql++ and libmysql++-dev for connecting C++ program with MySQL

Run following commands in terminal.

$ sudo apt-get install libmysql++

$ sudo apt-get install libmysql++-dev


Capistrano is an open source tool for running scripts on multiple servers; its main use is deploying web applications. It automates the process of making a new version of an application available on one or more web servers, including supporting tasks such as changing databases.

Capistrano is written in the Ruby language and is distributed using the RubyGems distribution channel. It is an outgrowth of the Ruby on Rails web application framework, but has also been used to deploy web applications written using other frameworks, including ones written in PHP.

Capistrano is implemented primarily for use on the Bash command line. Users of the Ruby on Rails framework may choose from many Capistrano recipes, e.g. to deploy current changes to the web application or roll back to the previous deployment state.


Run following command in terminal.

$ gem install capistrano

Phusion Passenger

Phusion Passenger (informally also known as mod_rails and mod_rack) is a free module for the Apache HTTP Server and nginx for deployment of Ruby applications, including those built using the Ruby on Rails framework. It is available as a Gem package and is supported on Unix-like operating systems. Phusion Passenger also supports arbitrary Ruby web applications that follow the Rack interface.

Phusion Passenger is the “preferred deployment setup” for Ruby on Rails applications, and has been recommended by the Ruby on Rails authors. In combination with Ruby Enterprise Edition, Phusion Passenger claims that it is capable of reducing Rails’s memory consumption by 33% as well as increasing its performance.


Run following commands in terminal.

  1. Install Passenger
    $ gem install passenger

  2. Install Passenger Module for Apache
    $ passenger-install-apache2-module
    After this step press enter.

    Again press enter and install requirements mentioned by software.

  3. After installing these requirements, again run following command
    $ passenger-install-apache2-moduleThe passenger-install-apache2-module script will guide you through what you need to do to get Passenger working.

    It should tell you to copy these lines into your /etc/apache2/apache2.conf:

    LoadModule passenger_module /home/mandy/.rvm/gems/ruby-1.9.3-p327/gems/passenger3.0.18/ext/apache2/
    PassengerRoot /home/mandy/.rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18
    PassengerRuby /home/mandy/.rvm/wrappers/ruby-1.9.3-p327/ruby

    Note: Above lines may be different in your case. Check them according to your script instructions.

    After copying, Restart Apache Server buy executing following commands in terminal.

    $ sudo a2enmod rewrite
    $ sudo service apache2 restart

    At last press ENTER and your phusion passenger is installed on your system.

Refinery CMS

Refinery CMS, often shortened to Refinery, is an open source content management system written in Ruby as a Ruby on Rails web application with jQuery used as the JavaScript library. RefineryCMS supports Rails 3.2.

Refinery differs from similar products by targeting a non-technical end user and allowing the developer to create a flexible website rapidly by staying as close as possible to the conventions of the Ruby on Rails framework.

Official Website Link:


  • Engine architecture
  • WYSIWYG content editing
  • Localisation (currently supports 26 languages
  • Page management
  • Image and File management
  • Contact form and inquiry management
  • Search engine optimization (SEO)


Run following command in terminal.

$ gem install refinerycms

It takes time to install.


Ruby on Rails – Installation using RVM

Ruby Version Manager (RVM) is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Steps for Installation
Open terminal and run following commands.

  • Step 1
    $ sudo apt-get install build-essential git-core curl
  • Step 2
    RVM Installation
    $ curl -L | bash -s stable
  • Step 3
    $ echo ‘[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”‘ >> ~/.bashrc
  • Step 4
    $ ~/.bashrc
  • Step 5
    $ . ~/.bashrc
  • Step 6
    Check requirements for Ruby
    $ rvm requirements
  • Step 7
    Install requirements of Ruby by RVM
    $ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
  • Step 8
    Install Ruby with 1.9.3 version
    $ rvm install 1.9.3
  • Step 9
    Check Rubygems version. Its installed with Ruby.
    $ gem -v
  • Step 9
    Install Rails latest version
    $ rvm gem install rails
  • Step 10
    Check version of Ruby, Rails and Rubygems
    $ ruby -v
    ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
    $ gem -v
    $ rails -v
    Rails 3.2.8

Installation is complete. Now try RoR Apps.
If you find any error between steps then share it as comments.
Thanks for using this post.