Jump to: navigation, search

Difference between revisions of "RubyGems"

m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
 
This Page provide basic information about installing Ruby and [[RubyGems]] on various platforms ( ''the recommended way to install it via each platform is listed below instead of every possible way to install it. Check for Alternative methods at the links provided or others acquired by any other means.'' ).
+
This Page provides basic information about installing Ruby and [[RubyGems]] on various platforms ( ''the recommended way to install it via each platform is listed below instead of every possible way to install it. Check for Alternative methods at the links provided or others acquired by any other means.'' ).
  
 
= Ubuntu =
 
= Ubuntu =
Line 26: Line 26:
 
Finally, update [[RubyGems]] from the Ruby Command Prompt:'''prompt> gem update --system'''
 
Finally, update [[RubyGems]] from the Ruby Command Prompt:'''prompt> gem update --system'''
  
= [[RedHat]] Linux =
+
= RedHat Linux =
 
From a terminal, use the ''yum'' command-line tool to install Ruby and [[RubyGems]].
 
From a terminal, use the ''yum'' command-line tool to install Ruby and [[RubyGems]].
 
Install Ruby like shown below:
 
Install Ruby like shown below:
Line 32: Line 32:
 
'''$ sudo yum install ruby'''
 
'''$ sudo yum install ruby'''
  
If you are using [[RedHat]] Enterprise Linux 6, enable the ''Optional'' channel for your host by logging into [https://rhn.redhat.com Red Hat Network (RHN)].
+
If you are using RedHat Enterprise Linux 6, enable the ''Optional'' channel for your host by logging into [https://rhn.redhat.com Red Hat Network (RHN)].
  
 
Install [[RubyGems]]:
 
Install [[RubyGems]]:

Latest revision as of 22:50, 21 June 2016

This Page provides basic information about installing Ruby and RubyGems on various platforms ( the recommended way to install it via each platform is listed below instead of every possible way to install it. Check for Alternative methods at the links provided or others acquired by any other means. ).

Ubuntu

Open up the 'Software Center' app from your launcher and type in `RubyGems` without quotes into the application search box at the top right, and press [enter]. RubyGems then can be installed by just clicking on the button labeled 'Install', thats it. Be sure to Follow any extra instructions from the Software Center should there be any during or after installation. Alternatively you can install from a terminal as well, use the ''apt-get ''command-line tool to install Ruby and RubyGems, as shown below.

  • Install the full Ruby package and RubyGems: $ sudo apt-get install ruby-full rubygems
  - Consult your system administrator for any required authentication credentials for the sudo command that may required.

Debian Linux * Ubuntu is built onto of a Debian foundation, so the same steps and options as Ubuntu above for the Alternative install method, or by GUI using a Debian graphical package manager such as "Synaptic" instead of Software Center, or by what ever other means you tend to normally add and remove installed from your Debian system, thats well past the scope of this wiki page, for further help with installing software on Debian you can begin reading here and/or join Debian's support channel for real time text group chat with individuals willing to help you if they are able. [on OFTC Internet Relay Chat Link Address]

Mac OS X

Mac's with version 10.5 Leopard or higher already have Ruby and RubyGems installed, Ruby and RubyGems update instructions are found here at the Homebrew for OS X page, as well as instructions for adding Homebrew to your OS X machine if you do not already have it installed.

If you are using an earlier version of Mac OS like 10.3 or 10.4, try following any directions at RubyGems to see if your version is still supported officially or not, plus there many community workarounds and tips for those wishing to still make use of OS X or Pure Darwin sometimes registers here too on older machines or newer machines both.

Test to ensure that the gem command is in your path: $ which gem

If the command is not found, then update your PATH variable accordingly. For example, you can update your .bashrc file with the following line: export PATH=$PATH:/var/lib/gems/1.8/bin

Windows

Download and install Ruby Installer for Windows. The installer already includes RubyGems.

Be sure you use the Ruby-enabled command prompt window when you later install and use vmc. You access this command prompt from the Windows Start menu ( All Programs > Ruby <version> > Start Command Prompt with Ruby).

Finally, update RubyGems from the Ruby Command Prompt:prompt> gem update --system

RedHat Linux

From a terminal, use the yum command-line tool to install Ruby and RubyGems. Install Ruby like shown below:

$ sudo yum install ruby

If you are using RedHat Enterprise Linux 6, enable the Optional channel for your host by logging into Red Hat Network (RHN).

Install RubyGems:

$ sudo yum install rubygems

SuSE Linux

From a terminal, use the yast command-line tool to install Ruby and RubyGems. Install Ruby and RubyGems like shown below:

$ yast -i ruby $ yast -i rubygems