WebFaction
Community site: login faq

I followed the steps on: http://docs.webfaction.com/software/rails.html

in section title "Installing Multiple Gems with Bundler" I get to step 6 and it does this:

$ gem install bundler
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory

I am logged in as admin so I don't know how I don't have permission. Any help would be greatly appreciated, even just a link to what I should do.

Thank you!

asked 04 Oct '12, 12:28

gmaniac
1536
accept rate: 0%


It looks to me like you missed the initial steps from our documentation:

cd $HOME/webapps/app # where 'app' is the name of your rails app
export GEM_HOME=$PWD/gem
export RUBYLIB=$PWD/lib
export PATH=$PWD/bin:$PATH

Those are necessary to let the "gem" command know where to install things, and to ensure that you're running the "gem" executable that is located within your app/bin directory.

permanent link

answered 04 Oct '12, 13:30

seanf
12.2k41836
accept rate: 37%

edited 04 Oct '12, 13:31

I went back through and it is working now, I must have done something wrong the first couple of times.... user error

(04 Oct '12, 15:43) gmaniac
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×11
×8
×4
×1

question asked: 04 Oct '12, 12:28

question was seen: 5,520 times

last updated: 04 Oct '12, 15:43

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM