-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Updating homebrew requires ERB #28688
Comments
Can you please post your |
Gives me the same: /usr/local/Library/Homebrew/download_strategy.rb:2:in |
What does |
Try this and paste the output: |
@adamv that gives me "/usr/bin/ruby: No such file or directory" @mistydemeo, that gives me "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: no such file to load -- erb (LoadError)" I went and checked the location /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ and it only has the files ruby and rake? |
@0scarius It sounds like something is wrong with the Ruby that came with Mac OS X - you should try to restore it. |
How do i do that? |
The sledgehammer solution is an OS reinstall; otherwise, you can try to use a tool like Pacifist to reinstall just the package containing the Ruby framework. Not sure where that package is located in the OS updates and/or the OS DVD, though. |
The thing is I am trying to install rbenv to actually manage my rubies, and it suggested to install this via homebrew... but then i got lost in this mess... any suggestions on how to bypass this? |
Unfortunately, using rbenv or other tools won't help this, as none of them manage the system provided Ruby. Reinstalling the system ruby is kind of out of our jurisdiction, see @mistydemeo's comment above. |
I have created a fresh user account on my (fairly old) MacBook Pro running Mac OS X 10.6.8 (10K549), which has the installed Ruby version 1.9.2 (ruby --version gives me ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]). When I issue the command brew update, I get the following error:
usr/local/Library/Homebrew/download_strategy.rb:2:in
require': no such file to load -- erb (LoadError) from /usr/local/Library/Homebrew/download_strategy.rb:2 from /usr/local/Library/Homebrew/resource.rb:1:in
require'from /usr/local/Library/Homebrew/resource.rb:1
from /usr/local/Library/Homebrew/extend/pathname.rb:3:in
require' from /usr/local/Library/Homebrew/extend/pathname.rb:3 from /usr/local/Library/Homebrew/global.rb:3:in
require'from /usr/local/Library/Homebrew/global.rb:3
from /usr/local/Library/brew.rb:17:in `require'
from /usr/local/Library/brew.rb:17
I have tried commenting out the particular line (#2) in download_strategy.rb to see what happens, but then it gives me a similar error for open-uri in a different file.
Why does it give me the error that it cannot load such a file -- erb, when ERB is part of the Standard Library (http://www.ruby-doc.org/stdlib-1.9.2/libdoc/erb/rdoc/ERB/Util.html)?
Please help, as I have bee googling for too long already...
The text was updated successfully, but these errors were encountered: