Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mac upgrade 10.10 Yosemite system brew error cannot be used what to do

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces Mac upgrade 10.10 Yosemite system brew error can not be used how to do, the article is very detailed, has a certain reference value, interested friends must read!

With the fruit company releasing the latest system, students who want to try it believe that they have already installed it to experience it, and some students may report this error when using brew:

/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory/usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0

So Xiaobian checked whether these files exist or have problems one by one. Careful editing found that when viewing Ruby, the version was wrong:

ls -al /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

It must be fruit company upgrade the system when the ruby version also upgraded to 2.0, then we change the brew file configuration here, here are two files about brew:

/usr/local/bin/brew: /usr/local/Library/brew.rb

Small editor looked at the above two bash scripts, found that the first line in/usr/local/Library/brew.rb to write dead Ruby 1.8 , then we will change it here:

vim /usr/local/Library/brew.rb#!/ System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 Save exit The above is "Mac upgrade 10.10 Yosemite system brew error can not be used how to do" All the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report