You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

<h1>Using RubyGems at SDF</h1>
<p><a href="">RubyGems</a> is the de facto standard <a href="">package manager</a> for the <a href="">Ruby programming language</a>.</p>
<p>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 <a href="">here</a>.</p>
<p>To install gems in your home directory, place the following in your <tt>.gemrc</tt>:
gem: --no-ri --no-rdoc --user-install
<p>To access binaries installed by rubygems, append <tt>/bin</tt> to all gem paths listed by the <tt>gem env</tt> command and make sure they are in your path. For example, given:</p>
$ gem env
- /usr/pkg/lib/ruby/gems/2.0.0
- /arpa/ns/n/nerfling/.gem/ruby/2.0.0
<p>You should place both <tt>/usr/pkg/lib/ruby/gems/2.0.0/bin</tt> and <tt>/arpa/ns/n/nerfling/.gem/ruby/2.0.0/bin</tt> in your path.</p>
<p>In bash, the command is: <tt>export PATH=$PATH:`gem env gempath | sed -e 's!:!/bin:!'`/bin</tt></p>
$Id: rubygems.html,v 1.12 2014/06/05 02:36:25 nerfling Exp $