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
HTML

<h1>Using RubyGems at SDF</h1>
<p><a href="http://rubygems.org/">RubyGems</a> is the de facto standard <a href="http://en.wikipedia.org/wiki/Package_manager">package manager</a> for the <a href="http://www.ruby-lang.org/">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="http://sdf.org/tutorials/unx/node7.html#SECTION00730000000000000000">here</a>.</p>
<p>To install gems in your home directory, place the following in your <tt>.gemrc</tt>:
<pre>
--
gem: --no-ri --no-rdoc --user-install
</pre>
<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>
<pre>
$ gem env
...
- GEM PATHS:
- /usr/pkg/lib/ruby/gems/2.0.0
- /arpa/ns/n/nerfling/.gem/ruby/2.0.0
...
</pre>
<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 $