错误安装自制软件 - 酿造找不到命令 [英] Error Installing Homebrew - Brew Command Not Found

查看:307
本文介绍了错误安装自制软件 - 酿造找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经花了我的大部分周五试图获得最新版本的在我的新的MacBook Air(W安装/山狮)安装了Ruby。

I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed).

我有X code和命令行工具的所有最新版本。但我似乎无法得到家酿工作! 这里就是我一直陷入的截图(我是一个新用户,所以不能嵌入此图片)。

I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image).

正如你可以看到我用下面来安装装配家酿:

As you can see I used the following to instal Homebrew:

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"

虽然有一个警告,它仿佛安装工作:

While there was a "warning" it seemed as though the installation worked:

Warning: /usr/local/bin is not in your PATH.
==> Installation successful!

尽管如此,当我尝试运行酿造医生我收到以下内容:

Despite that, when I try to run "brew doctor" I received the following:

-bash: brew: command not found

我再次尝试安装自制软件,这样我就可以安装装配了最新版本的红宝石 - 我在寻找学习红宝石code,但那种拧如果我甚至可以得到一个开发环境跑! :)

Again, I'm trying to install homebrew, so i can instal the latest version of ruby -- I'm looking to learn to code in ruby, but kind of screwed if I can even get a development environment running! :)

感谢你能提供任何帮助!

Thanks for any help you can offer!

推荐答案

该警告是告诉你什么是错的。问题是, BREW 保存在的/ usr / local / bin目录

The warning is telling you what is wrong. The problem is that brew is kept in /usr/local/bin

所以,你可以尝试的/ usr / local / bin目录/ BREW医生

要修复它永久地改变你的bash配置文件(在你的主目录的.bashrc或.profile),并添加以下行:

To fix it permanently alter your bash profile (.bashrc or .profile in your home directory) and add the following line:

export PATH=/usr/local/bin:$PATH

这篇关于错误安装自制软件 - 酿造找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆