Install image magick by the following command
$ yum install ImageMagick ImageMagick-perl
The above command will install ImageMagick and its dependencies automatically.
Install image magick by the following command
$ yum install ImageMagick ImageMagick-perl
The above command will install ImageMagick and its dependencies automatically.
Upgrade Packages
yum update
Installing Recommended Packages
yum install gcc-c++ patch readline readline-devel zlib zlib-devel yum install libyaml-devel libffi-devel openssl-devel make yum install bzip2 autoconf automake libtool bison iconv-devel
Install RVM ( Ruby Version Manager )
$ curl -L get.rvm.io | bash -s stable
Install Required Ruby Version
$ rvm install 1.9.3
Install rails
$ gem install rails --version '3.2.19'
Check ruby is already installed in your system or not
$ ruby -v
Install curl if not installed
$ sudo apt-get install curl
Check curl version by
$ curl --version
Install RVM
Execute the command in the terminal
$ curl -L https://get.rvm.io | bash -s stable
If the installation is done, close the terminal window and open it again to load the rvm into the shell
Check rvm version
$ rvm -v rvm 1.25.30 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/]
List rvm known rubies
$ rvm list known
Use rvm to install ruby 1.9.3
$ rvm install 1.9.3
Check the ruby versions available
$ rvm list rubies
Check the ruby version by
$ ruby -v
If this again shows the message to install ruby, then set this ruby version as default
$ rvm use ruby-1.9.3-p547 --default
then check ruby -v
Make gem package up to date
$ gem update
Install Rails 3.2.19
$ gem install rails --version '3.2.19'
Check rails version
$ rails -v
You are ready to go!
Get the stable version of rvm:
$ rvm get stable
Install Ruby 2.0
$ rvm install ruby-2.0.0
Create a Gemset;
$ rvm gemset create rails-4.0
Goto that gemset:
$ rvm use ruby-2.0.0-p247@rails-4.0
Install Rails 4.0
$ gem install rails --version=4.0
Create an rvmrc file in root folder:
$ vim rvmrc $ rvm --rvmrc use ruby-2.0.0-p247@rails-4.0
uncomment the line gem ‘therubyracer’, platforms: :ruby from Gemfile
Start the server:
$ rails s
You are ready to go!!
Changes that you may need to perform while working with Rails 4 compared to old versions:
1. Check here for the New changes in Rails 4
http://net.tutsplus.com/tutorials/ruby/digging-into-rails-4/
http://www.alfajango.com/blog/rails-4-whats-new/
http://www.sitepoint.com/get-your-app-ready-for-rails-4/
2. If you are using devise gem use devise version 3 or above (http://blog.plataformatec.com.br/2013/05/devise-and-rails-4/)
Check sphinx is already installed in your system,
$ search
If you have already sphinx installed then it will show the sphinx version and other info, else it shows ubuntu information to install.
Download thinking sphinx from
here,
$ tar -xzf sphinx-2.0.8-release.tar.gz $ cd sphinx-2.0.8-release/ $ ./configure $ make $ sudo make install
Type,
$ search
it will show the sphinx release and the other information.
Add the sphinx gem into your Gemfile
gem 'thinking-sphinx'
Do bundle install
$ bundle install
I assume you already made the model / controller code for sphinx. Else see this
Index all your records
$ rake ts:index -t
While indexing sphinx will generate the configuration file inside RAILS_ROOT/config/config/development.sphinx.conf
If you need to generate only configuration file not indexing you can use this command
$ rake ts:configure -t
Run sphinx searchd daemon
$ rake ts:start -t
You can stop sphinx searchd daemon
$ rake ts:stop -t
You can reindex so that sphinx will re index all records without creating a configuration file.
$ rake ts:reindex -t
Enjoy Sphinx searching!
For 32 bit:
Install Dependencies.
$ sudo apt-get install libqt4-webkit
Download and install Skype
$ wget -O skype-linux.deb http://download.skype.com/linux/skype-ubuntu-lucid_4.2.0.11-1_i386.deb $ sudo dpkg -i skype-linux.deb $ sudo apt-get -f install
Open the terminal and type
$ skype
Done.
Reference:
noobslab install skype
Install JDK.
Search all the available jdk versions
$ apt-cache search openjdk
Install openjdk
$ sudo apt-get install openjdk-7-jdk
Verify if JDK is installed properly,
$ java-version
check $JAVA_HOME is empty,
echo $JAVA_HOME
Set that (this is optional)
$ sudo echo "export JAVA_HOME=\"/usr/lib/jvm/java-7-openjdk-i386/\"" >> ~/.bashrc
Reference:
www.mkyong.com
Make sure that you have installed mysql server and mysql client. Else install by
$ sudo apt-get install mysql-server $ sudo apt-get install mysql-client
After that install the dependency library for mysql
$ sudo apt-get install libmysql-ruby libmysqlclient-dev
Install the postgres software by
$ sudo apt-get install postgresql postgresql-contrib libpq-dev
Set up your password
Goto the postgres prompt
$ sudo -u postgres psql
Inside that you can set the password for the DB user postgres
ALTER USER postgres PASSWORD 'YourPassword';
References:
xtremekforever.blogspot
postgresql-password-authentication-failed-for-user-postgres
First download the Ruby Version Manager (RVM) installer as follows
$ sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
RVM requires to add relevant users to itβs group. Open the file like so:
$ sudo vim /etc/group
Edit the ‘rvm’ group (likely the last entry) to look like:
rvm:x:503:your_username
Run the install:
$ cd /usr/local/rvm/bin $ sudo ./rvm-installer ...
“Upgrade of RVM in /usr/local/rvm/ is complete.”
I needed to reload the RVM to continue, this might not be required:
$ rvm reload
If it shows -bash: rvm: command not found
please close the terminal and start it again to load the RVM.
Now we can install the Ruby version. This will also install rubygems which is always usefulβ¦
$ rvm install 1.9.3 --with-openssl-dir=/usr $ ruby -v $ rvm use ruby-1.9.3-p327 --default
If you are getting nokogiri error like:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for libxslt/xslt.h… no
libxslt is missing.
then install
$ sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
Reference:
http://jamesmcfadden.co.uk/installing-ruby-on-rails-on-centos-5-8/