login community 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:

1
2
3
$ 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 Oct 04 '12 at 12:28

gmaniac's gravatar image

gmaniac
153


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

1
2
3
4
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.

answered Oct 04 '12 at 13:30

seanf's gravatar image

seanf ♦♦
55991220

edited Oct 04 '12 at 13:31

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

(Oct 04 '12 at 15:43) gmaniac gmaniac's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×7
×4
×4
×1

Asked: Oct 04 '12 at 12:28

Seen: 255 times

Last updated: Oct 04 '12 at 15:43

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited