解决mac安装homebrew后报错-bash: brew: command not found
2016-09-18 10:32
786 查看
参照官网上很简单的一句安装命令,
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"[/code]安装完毕后,发现使用brew命令,却总是提示:-bash: brew: command not found于是怀疑安装过程出现问题,打算重装,重装却报:the Homebrew installer has moved! Please instead run: ruby -e "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install)" Also,please ask wherever you got this link from to update it to the above琢磨了一番还是无解,于是仔细找了各种版本解决方式,都无果。终于在http://stackoverflow.com/questions/14288682/error-installing-homebrew-brew-command-not-found找到解决方式。其实解决这个问题真的很简单。如下:sudo vim .bash_profile添加:export PATH=/usr/local/bin:$PATH保存,source .bash_profile使配置修改生效。再次使用brew 命令就ok了。
相关文章推荐
- 【转】mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
- 解决mac安装homebrew后报错-bash: brew: command not found
- Mac OS X EL Capitan MAC OX 10.11 安装cocoapods后还是提示-bash :pod command not found 解决办法
- Homebrew安装时”-bash:brew:command not found”的问题
- mac下面通过brew安装东西的时候报Error: Running Homebrew as root is extremely dangerous and no longer supported的解决
- Mac上安装mysql-mython报sh: mysql_config: command not found解决办法
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- 安装NDK:Cygwin中出现-bash: $'\r': command not found 错误 的解决办法
- 最小化安装CentOS 6.4 解决 -bash: locate: command not found 错误
- 解决MAC报错-------bash: ll: command not found
- 升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法 及其CocoaPod的安装
- Mac node已安装 但是报-bash: npm: command not found
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- 如何解决-bash: jstack: command not found,Linux安装jstack
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- mac升级到10.11后使用CocoaPod出现-bash: pod: command not found 解决办法
- redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
- bash: useradd: command not found如何解决....(by 星空武哥)
- ns2 安装中的 bash: $'/r': command not found 问题
- Linux网管笔记(28)安装Oracle及command not found 解决方法