当我试图管理任何布道指挥时,我会发现这一错误。
Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help
-bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file or directory
我完全不知道如何确定这一点,并且一直在寻找很长的时间而不回答。
当我试图管理任何布道指挥时,我会发现这一错误。
Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help
-bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file or directory
我完全不知道如何确定这一点,并且一直在寻找很长的时间而不回答。
你们正在得到的意思是,土贝德人无法在指定地点找到Ruby的解释者。
Install Rainbow développement 应向您提供可选择的成套设备(或你可以简单地从 Apple体下载)。 这将为你安装Ruby语译员。
如果你已经安装了X条码,这意味着其中一条是:
为了确定这是否属于第一种情况,你可以操作ruby
,看看你是否收到答复。
如果你不停,你的安装就会中断,你需要重新安装。 如果是的话,则由您管理<代码>,即:。 这应当给你一条可以起诉的绝对道路。 如果这是除<代码>/usr/bin/ruby外的任何东西,那么回家(和其他方案的一个方)将无法找到。
In case you have not ever tampered with your Ruby installation, you can check to see if /usr/bin/ruby
already exists or not: cat /usr/bin/ruby
. If you get No such file or directory
, then you can easily create a symbolic link to your Ruby installation. Assuming the output of which ruby
to by /usr/local/bin/ruby
, you create the symbolic link this way: sudo ln -s /usr/local/bin/ruby /usr/bin/ruby
and all should be well.
如果该地点有档案,你可以操作file /usr/bin/ruby
,看它是否拥有真实档案、象征联系或腐败档案。 如果这是一种象征性的联系,那么你的安装工作就应当进行,而且由于安装不了,这很可能是一种腐败的束缚,或者是一种 b。
可以通过首先删除(sudo rm /usr/bin/ruby
,然后创建与正确地点的新链接(sudo ln -s/usr/ local/bin/ruby /usr/bin/ruby
)。
If non of the above works, you should consult the homebrew team after a clean install of Xcode and removing any traces of a Ruby installation on your system.
http://www.ohchr.org。
Alternatively, as pointed out by the other answers, the issue might be because of a bad ruby version in your Homebrew settings.
快速办法或许是更新你。 Homebrew:
cd /usr/local
git pull -q origin refs/heads/master:refs/remotes/origin/master
如果做不到这一点,你可能希望获得你的双手,并通过:
brew.rb
from /user/local/Library/brew.rb
/1.8/
to /Current/
in the first line, which will cause the hashbang to point to the current Ruby version as the executor如果没有帮助,也可修改
DISCLAIMER
A bunch of thanks to other contributors in the answers below and their commenters. I am not committing plagiarism, simply aggregating the answers into one integrated article to help others.
我得出这一错误(同样):
/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 26: /usr/local/Library/brew.rb: Undefined error: 0
解决办法如下:
开放式<代码>brew.rb:
$ sudo vim /usr/local/Library/brew.rb
将第1行的<代码>1.8改为
此前:
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
之后:
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
然后brew
为我工作。 希望会有助于任何其他人探讨这一问题。
如果你犯错误,
Homebrew requires Leopard or higher. For Tiger support, see: https://github.com/mistydemeo/tigerbrew
将MACOS检查从<10.5
改为<10
。
Tip by @TimCastelijns:
10.5 不工作,因为相比之下,工作水平高于10.10(1 vs.5)。 我添加了一张支票(
and MACOS_VERSION != 10.10
,而不是从10.5降到10。
九:
sudo gem install cocoapods
在过度简化物品的风险下,尝试运行
gem install bundler
我正把我的鲁比环境从区域局改为区域局,并为我工作。
之所以出现这种情况,是因为我需要更新布局——在最新版本中,它已经使用了目前的废墟。
cd /usr/local
git pull -q origin refs/heads/master:refs/remotes/origin/master
这个问题已经解决。
你们需要改变鲁比的道路。 框架
我以上述指挥手段解决问题。
<密码> --write capods
If you have a lower version below Xcode 11
, you have to remove it before you use the above commands.
参考:。 页: 1
None of the above worked for me, so I kept browsing and found this answer, https://stackoverflow.com/a/24225960/1359088 which did fix brew for me. He says in step 1 to install XCode 6 command line tools, but doesn t say how; use this command:
xcode-select --install
I got the same issue when updated to MacOSX High Sierra & using Xcode 9 with that. High Sierra update ruby gem to version 2.3 but xcpreety command of Xcode 9 still using Ruby 2.0 which is unable to find now & gives bad interpreter. Just go to Terminal & run
sudo gem install xcpretty
Restart Xcode & do fresh clean build it works for me. Hope it helps!!!
在升级到马科斯高地后,由以下指挥确定:
sudo gem 安装可可豆
在我的案件中,似乎如fastlane
被错误地安装在brew 安装快乐
系统时,没有书写通往快乐的正确道路。 我把它定在<代码>alias rlane=~/fastlane/bin/fastlane上。
我以上述指挥手段解决问题。
1) 页: 1
www.un.org/Depts/DGACM/index_spanish.htm
b) 然后,在座各位。
页: 1 在升级的MacOS中,没有这种文档或目录错误。
解决该问题
gem install xcpretty
gem install xcpretty-travis-formatter
因此,我可以建议你重新安装故障部件<代码>gem 安装和带;名称和编号;。
#For example error looks like
/usr/local/bin/xcpretty-travis-formatter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
#use
gem install xcpretty-travis-formatter
collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...
We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...
As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...
I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?
I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...
I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml
guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...
I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...