Ruby: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary
Manpaz (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
= Ruby =
== Gems ==
== Gems ==
* [[ruby-haml|Haml]]
* [[Ruby on Rails]]
* [[ruby-rails|Rails]]
* [[Ruby Haml]]
* [[ruby-webby|Webby]]
* [[Ruby Webby]]


== Installation ==
==== How to install Rubygems ====
==== How to install Rubygems ====
'''Debian'''<<BR>>
''' Debian '''
Install Rubygems from tarball sources:
* Install Rubygems from tarball sources:
# Install Ruby and Development tools
:* Install Ruby and Development tools
<pre><nowiki>
apt-get install ruby-full libzlib-ruby build-essential
apt-get install ruby-full libzlib-ruby build-essential
:* Install Gems
</nowiki></pre>

# Install Gems
<pre><nowiki>
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar zxvf rubygems-1.3.5.tgz
tar zxvf rubygems-1.3.5.tgz
Line 23: Line 17:
ruby setup.rb
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem
ln -s /usr/bin/gem1.8 /usr/bin/gem
</nowiki></pre>



Install Rubygems from Debian repositories:
*Install Rubygems from Debian repositories:
As root issue the following command
:* As root issue the following command
<pre><nowiki>
apt-get install ruby-full ruby-dev rubygems libzlib-ruby build-essential
apt-get install ruby-full ruby-dev rubygems libzlib-ruby build-essential
</nowiki></pre>


Other packages:
Other packages:
* 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 <tt>libmysql-ruby</tt>
* If Oniguruma is needed, ensure `libonig-dev` package is present on system
* If Oniguruma is needed, ensure <tt>libonig-dev</tt> package is present on system


'''Fedora'''<<BR>>
''' Fedora '''
As root issue the following command:
* As root issue the following command:
<pre><nowiki>
yum install rubygems ruby-devel
yum install rubygems ruby-devel
</nowiki></pre>

Latest revision as of 00:47, 7 June 2015

Gems

Installation

How to install Rubygems

Debian

  • Install Rubygems from tarball sources:
  • Install Ruby and Development tools
apt-get install ruby-full libzlib-ruby 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 Rubygems from Debian repositories:
  • As root issue the following command
apt-get install ruby-full ruby-dev rubygems libzlib-ruby build-essential

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

  • As root issue the following command:
yum install rubygems ruby-devel