Blog2010 ≫ rake db:migrate rake gems:install

Having a crap time with rails this afternoon...

Trying some rails stuff, failing... I want to use oauth, trying to install the gems, it seems to be mostly working, but not. Run some code "you need to install this first", install that, "successfully installed that", run some code "you need to install this first"... I JUST DID, you told me I did:

$ rake db:migrate
(in /Users/paulclarke/my-app)
Missing these required gems:
  oauth
You're [running](/wiki/#running):
  [ruby](/wiki/#ruby) 1.8.7.174 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  [rubygems](/wiki/#ruby) 1.3.7 at /Users/paulclarke/.bundle/ruby/1.8
Run `rake gems:install` to install the missing gems.
$ rake gems:install
(in /Users/paulclarke/my-app)
gem install oauth
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the ./Object directory.
Successfully installed oauth-0.4.2
1 gem installed
Installing ri documentation for oauth-0.4.2...
gem install authlogic-oauth
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the ./OauthCallbackFilter directory.
Successfully installed authlogic-oauth-1.0.8
1 gem installed
Installing ri documentation for authlogic-oauth-1.0.8...
$ rake db:migrate
(in /Users/paulclarke/my-app)
Missing these required gems:
  oauth
You're [running](/wiki/#running):
  [ruby](/wiki/#ruby) 1.8.7.174 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  [rubygems](/wiki/#ruby) 1.3.7 at /Users/paulclarke/.bundle/ruby/1.8
Run `rake gems:install` to install the missing gems.
$

WTF am I doing wrong? I see the permissions error there, I think it's just about installing documentation though... it says it successfully installed oauth.

Just writing all this out has given em an idea, to run through everything I can find changing permissions... I have obviously installed some things as root on this machine and so logged in as me I'm having problems. chmod 777 everything!

Yeah this is one of those posts...

⬅️ :: ➡️

Paul Clarke's blog - I live in Hythe near Folkestone. Married to Clare + dad to 2, I am a full-stack web engineer, and I do js / Node, some ruby, other languages ect ect. I like pubs, running, eating, home-automation + other diy jiggery-pokery, history, family tree stuff, Television, squirrels, pirates, lego, and TIME TRAVEL.