This shows you the differences between two versions of the page.
— | tutorials:rubygems [2011/04/30 14:44] (current) – created clemens | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Using RubyGems at SDF ====== | ||
+ | //NOTE: 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:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Since you're most likely a non-privileged SDF user, you cannot install //gems// the traditional way. This is due to the fact that "gem install GEMNAME" | ||
+ | |||
+ | * Make a directory for gem installation: | ||
+ | * $ mkdir ~/.gems | ||
+ | * Set up your .gemrc: | ||
+ | * $ cat & | ||
+ | * gem: --no-ri --no-rdoc --local # Local install, but don't generate documentation | ||
+ | * gemhome: $HOME/.gems | ||
+ | * gempath: | ||
+ | * $HOME/.gems | ||
+ | * / | ||
+ | * Set up some environment variables for run-time: | ||
+ | * $ cat & | ||
+ | * export GEM_HOME=$HOME/ | ||
+ | * export GEM_PATH=$HOME/ | ||
+ | * export PATH=$PATH: | ||
+ | |||
+ | At this point, you can start downloading gems and then install them. Note that you have to resolve their dependencies yourself. If you need help, "gem help install" |