SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Upgrading Error

  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upgrading Error

    I'm trying to upgrade my Rails install and I keep on getting an error when I do a "gem upgrade rails". It gets to the part where it says "Install required dependency activerecord? [Yn]" and I type in Y and then i get this error:

    "ERROR: While executing gem ... (Errno::EACCES)
    Permission denied - /usr/lib/ruby/gems/1.8/cache/activerecord-1.14.4.gem"

    Has anyone ran into this error while upgrading?

    I'm using Mac OS X and with a G4.

    Thanks,
    Tony

  2. #2
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use sudo when installing/updating gems.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply Luke.

    Acutally I figured it out the other night....

    but how do I upgrade ruby?

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So yeah I got rails updated but ever since then I can't use the rake command and when i do a rake db_schema_dump then I get this error:

    rake aborted!
    No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
    /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in `load_rakefile'
    (See full trace by running task with --trace)

    I'm all new to the Ruby on Rails stuff and I have been reading up on Ruby but I don't know a bunch about rails and the world of Ruby is all new to me. So bear with me as I learn all this stuff. LOL!

    thanks
    - tony

  5. #5
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Tacoma, WA
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh I figured it out I was running the Rake command in the wrong directory! DOH!!!!!

    You have to run the rake command in your web app directory for it to work.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •