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!
I got this error after my thinking sphinx updation to the newest version of ‘3.0.5’. The error shows in the exact line of the code Model.search in my Rails controller. I updated my mysql2 version to ‘0.3.13’, and the issue is solved.
So in you Gemfile update the mysql2 version:
gem 'mysql2', '0.3.13'
And do
$ bundle install
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/)
Even if we are specified the database configuration for adapter in our database.yml, sometimes we are getting the error “database configuration does not specify adapter”. Usually you are doing the command for development
$ rake assets:precompile -t
And in your database.yml, configuration for development is specified. But if you are doing
$ rake assets:precompile -t RAILS_ENV=development
then you can see the error goes.
Another way is check your database.yml for production database configuration is there or not. If you adds the production database configuration then also it works! Because while doing the precompile for assets without specifying the environment then it checks all environments db configuration.
Another way is add the following in your application.rb file
config.assets.initialize_on_precompile = false
then also it works.
Suppose you need to make a user ‘newuser’ as an owner and ‘newgroup’ as a group of a folder ‘FOLDER’, then
$ sudo chown -R newuser:newgroup FOLDER
While setting up a Rails project in my machine, I got this error. First I can’t understand why this error coming, because I am successfully using mysql database in this project, and mysql server is running in my system. The error line number shows near the Sphinx code ‘Model.search’, then I understood this is because of the wrong set up of my sphinx configuration. But why this error? I read some documents and understood that sphinx internally using mysql protocol, so showing this error. Anyway I am checking my sphinx configuration, and no yml config file of sphinx found! So I have some works to do now!
I followed these steps,
Configure Sphinx in Rails 3.2
And all works fine!!
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