[ SDF Public Access UNIX System .. Est. 1987 ]

join welcome faq status members store tour gopher abuse dialup minecraft
social tilde europa webmail gallery usermap irc tutorials telnet git ssh

Using RubyGems at SDF

RubyGems is the de facto standard package manager for the 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 here.

To install gems in your home directory, place the following in your .gemrc:

-- 
gem: --no-ri --no-rdoc --user-install

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
...
  - GEM PATHS:
     - /usr/pkg/lib/ruby/gems/2.0.0
     - /arpa/ns/n/nerfling/.gem/ruby/2.0.0
...

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 $

©1987-2065 SDF Public Access UNIX System, Inc. 501(c)(7)
(this page was generated using ksh, sed and awk)