Difference between revisions of "Ruby-rails"
From Bashlinux
Line 36: | Line 36: | ||
<pre><nowiki> |
<pre><nowiki> |
||
− | apt-get install libzlib-ruby rdoc irb |
+ | apt-get install libzlib-ruby rdoc irb ri |
+ | </nowiki></pre> |
||
+ | |||
+ | # Install Rails |
||
+ | |||
+ | <pre><nowiki>#!wiki black/solid |
||
+ | apt-get install rails |
||
</nowiki></pre> |
</nowiki></pre> |
||
Line 43: | Line 49: | ||
* If MySQL support is needed, then the proper package to be installed is `libmysql-ruby` |
* 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 |
* If Oniguruma is needed, ensure `libonig-dev` package is present on system |
||
+ | |||
+ | |||
+ | <pre><nowiki>#!wiki note |
||
+ | '''Binary gems directory is not added automatically on `$PATH`''' |
||
+ | In order to run gem binaries available on `bin` folder, the location `/var/lib/gems/1.8/bin` must be added as described in `/usr/share/docs/rubygems1.8/README.Debian`. |
||
+ | </nowiki></pre> |
||
+ | |||
=== Fedora === |
=== Fedora === |
Revision as of 02:36, 26 January 2010
Installation
Debian
Installation from tarball sources
- Install Ruby
apt-get install ruby-full build-essential
- 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
- Install Rails
gem install rails
Installation from Debian repositories
- Install Ruby and Development tools
apt-get install ruby ruby-dev rubygems build-essential
- Install Ruby extras
apt-get install libzlib-ruby rdoc irb ri
- Install Rails
#!wiki black/solid apt-get install rails
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
#!wiki note '''Binary gems directory is not added automatically on `$PATH`''' In order to run gem binaries available on `bin` folder, the location `/var/lib/gems/1.8/bin` must be added as described in `/usr/share/docs/rubygems1.8/README.Debian`.
Fedora
Its very easy, `rubygem-rails` must provide all the needed packages and dependencies
yum install rubygem-rails