From e150f9661f056b41b9937b67a3cc5fe503d0fef3 Mon Sep 17 00:00:00 2001 From: Edward Z Yang Date: Sun, 8 Apr 2012 15:28:41 -0400 Subject: [PATCH] Import from TextPattern --- faq/148.mdwn | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 faq/148.mdwn diff --git a/faq/148.mdwn b/faq/148.mdwn new file mode 100644 index 0000000..4c03210 --- /dev/null +++ b/faq/148.mdwn @@ -0,0 +1,34 @@ +[[!meta title="How can I install Ruby gems in my locker?"]] +First, note that many Ruby gems are already installed on +scripts.mit.edu, and we’re generally pretty willing to install +generally-useful software globally; email us at scripts@mit.edu to +ask. This has the advantage that you won’t have to worry about +keeping the packages up to date; in some cases, using out-of-date +modules could lead to security vulnerabilities in your site. +Furthermore, a frequent practice in the Ruby community is to have +sets of Ruby packages associated with deployments, in which case +installing a gem in your locker might be too global. + +In order to install a Ruby gem to your locker, you will first need +to create the directory to install into and give scripts.mit.edu +permission to it. From an Athena prompt, do the following, where +lockername is the name of your locker: + + add consult + mkdir /mit/lockername/.gem + mkdir /mit/lockername/.bundle + fsr sa /mit/lockername/.gem daemon.scripts write + fsr sa /mit/lockername/.bundle daemon.scripts write + +To tell a bundler configured app to use this local Gem store, run +this command on a Scripts server, in the directory of your +application: + + bundle config path ~/.gem/ruby/1.8 + +Then, to install a gem, SSH into Scripts and run: + + gem install -l gemname + + + -- 2.45.2