Ruby-rails: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
No edit summary
 
Manpaz (talk | contribs)
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
== Installation ==
= Installation =
==== Debian ====
=== Debian ===
Install Rails from tarball:
Install Rails from tarball:
# Install Ruby
# Install Ruby
Line 44: Line 44:
* If Oniguruma is needed, ensure `libonig-dev` package is present on system
* If Oniguruma is needed, ensure `libonig-dev` package is present on system


==== Fedora ====
=== Fedora ===
Its very easy, `rubygem-rails` must provide all the needed packages and dependencies
Its very easy, `rubygem-rails` must provide all the needed packages and dependencies

Revision as of 02:20, 26 January 2010

Installation

Debian

Install Rails from tarball:

  1. Install Ruby
 apt-get install ruby-full build-essential
 
  1. Install Gems
 wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
 tar zxvf rubygems-1.3.5.tgz
 cd rubygems-1.3.5
 ruby setup.rb
 ln -s /usr/bin/gem1.8 /usr/bin/gem
 
  1. Install Rails
 gem install rails
 


Install Rails from Debian repositories:
  1. Install Ruby and Development tools
 apt-get install ruby ruby-dev rubygems build-essential
 
  1. Install Ruby extras
 apt-get install libzlib-ruby rdoc irb
 


Other packages:

  • If MySQL support is needed, then the proper package to be installed is `libmysql-ruby`
  • If Oniguruma is needed, ensure `libonig-dev` package is present on system

Fedora

Its very easy, `rubygem-rails` must provide all the needed packages and dependencies

 yum install rubygem-rails