User Tools

Site Tools


using_rubygems_at_sdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
using_rubygems_at_sdf [2021/03/20 06:10] – created hc9using_rubygems_at_sdf [2021/03/20 06:14] (current) hc9
Line 1: Line 1:
 +====== Using RubyGems at SDF ======
 +
 +[[http://rubygems.org/|RubyGems]] is the de facto standard [[wp>Package_manager|package manager]] for the [[http://www.ruby-lang.org/|Ruby programming language]].
 +
 +Consider requesting system-wide installation of gems that others may find useful instead of installing local copies for yourself. The usual way of making such requests is to post on the REQUESTS bboard. For a brief introduction to bboard, go [[http://sdf.org/tutorials/unx/node7.html#SECTION00730000000000000000|here]].
 +
 +To install gems in your home directory, place the following in your ''.gemrc'':
 +
 +<file config .gemrc>
 +
 +  gem: --no-ri --no-rdoc --user-install
 +
 +</file>
 +
 +To access binaries installed by rubygems, append ''/bin'' to all gem paths listed by the ''gem env'' command and make sure they are in your path. For example, given:
 +
 +''$ gem env''
 +
 +<code>
 +
 +- GEM PATHS:
 +   - /usr/pkg/lib/ruby/gems/2.0.0
 +   - /arpa/ns/n/nerfling/.gem/ruby/2.0.0
 +
 +</code>
 +
 +You should place both ''/usr/pkg/lib/ruby/gems/2.0.0/bin'' and ''/arpa/ns/n/nerfling/.gem/ruby/2.0.0/bin'' in your path.
 +
 +In bash, the command is: ''export PATH=$PATH:`gem env gempath | sed -e 's!:!/bin:!'`/bin''
 +
 +$Id: rubygems.html,v 1.12 2014/06/05 02:36:25 nerfling Exp $ [[http://sdf.org/?tutorials/rubygems|Using RubyGems at SDF]] - traditional link (using [[wp>Revision_Control_System|RCS]])