1) Install RVM \curl -sSL https://get.rvm.io | bash -s stable
2) Install ruby dependencies and ruby older version.
rvm install 1.8.7 rvm use 1.8.7 –default if use doesn’t work, then get reload rvm and try again.
rvm get stable rvm use 2.0.0 –default
3) Go this url and install mysql http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
mysql configuration : $ mysql_secure_installation
4) Sometimes rjb installation will fail because of java home path.
check java requirement for each rjb (ruby java bridge).
1.4.9 uses Java 1.8,
to set path for JAVA_HOME export JAVA_HOME=”/etc/alternatives/java_sdk_1.8.0″
4.1) Install mysql2 gem -v 0.3.16
first : sudo yum install mysql-devel
second: gem install mysql2 -v 0.3.16
4.2) first :sudo yum install postgresql-libs postgresql-devel
second: gem install pg -v 0.17.1
5) If rake gives error, then install rake. go to project folder, uninstall rake, then do bundle update.
If rake gives error, then use help from this url:
http://stackoverflow.com/questions/7838858/cannot-install-older-version-of-rake-gem-in-rails
Leave a Reply