I recently started paying attention to RubyOnRails when I set up the RubyOnRails development environment under Fedora16. I spent one afternoon Learning about the Ruby language and the Rails framework. upgrade the development version. language features. I have read most of the materials to learn about RubyonRails's quick Web construction. however, these articles are not just satisfied. I would like to use the code example to experience RubyOnRails. features. 1. Install basic tools $
I recently started to focus On Ruby On Rails After I set up a Ruby On Rails development environment under Fedora 16. I spent one afternoon Learning about the Ruby language and the Rails framework. upgrade the development version. language features. I have read a lot of materials to learn about Ruby on Rails's quick Web construction. however, these articles are not just satisfied. I would like to use the encoding example to experience Ruby On Rails. features.
1. Install basic tools
$ Yum install git. i686
2. Database Installation
$ Yum install sqlite-devel.i686 mysql-devel.i686 mysql
3. Ruby Installation
$ Yum install ruby-devel.i686 ruby-mysql.i686 ruby-sqlite3.i686 ruby-ri.i686 ruby-irb.noarch ruby-rdoc.noarch
4. RubyGems Installation
RubyGems is the package management system for Ruby applications and libraries. Every application or library is a gem. RubyGems can easily manage the gem, such as installation and deletion.
$ Wget-q http://rubyforge.org/frs/download.php/75952/rubygems-1.8.21.tgz
$ Tar xvf rubygems-1.8.21.tgz
$ Rubygems-1.8.21 cd
$ Ruby setup. rb
5. Rails Web Application Framework
$ Gem install rails
6. Mongrel
Mongrel is an http server
$ Gem install mongrel mongrel_cluster
7. JSON
JSON is a lightweight data exchange format, which is somewhat similar to xml
$ Gem install json
8. SQLite3 Ruby
$ Gem install sqlite3-ruby
9. Ruby Mysql
$ Gem install mysql