[操作系统]--mac os 安装brew工具步骤
brew安装
brew是mac下的一个超级安装工具,其功能和Linux下的yum、apt-get类似。
1、下载安装
cd /usr/local
创建安装目录:
sudo mkdir homebrew
下载二进制文件
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C /usr/local
mv Homebrew-legacy-homebrew-5a9e19f/* homebrew/
添加权限
sudo chmod 755 homebrew/
sudo chown -R yangjifei /usr/local/homebrew
进入安装目录
cd homebrew/bin
查看版本,并更新brew库:
./brew -v
./brew update
2、设置环境变量
在.base_profile文件中增加:
export PATH=$PATH:/usr/local/homebrew/bin
3、使用方法
如:lzsz下载
brew install wget
如果想卸载lzsz执行
brew uninstall wget
-----------------------------------排错-------------------------------
localhost:bin yangjifei$ sudo brew install lrzsz
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
localhost:bin yangjifei$
解决:
使用 sudo chown -R yangjifei homebrew
再执行以上步骤
- 使用autotools工具用configure、make、make install编译安装linux工程的详细步骤
- 【安装vsftpd】安装vsftpd工具步骤
- Linux操作系统中Oracle11g数据库安装步骤详细图解
- Linux操作系统基础学习笔记(1)——Linux的介绍、安装、配置,常用的远程工具及常见命令
- mac安装brew 软件包管理工具Homebrew
- Mac下安装brew及其他工具
- Mac OS下安装Brew
- Visual Studio 2015 RC 安装 Windows 10 开发工具的步骤
- dl360g5 安装 Linux as4 操作系统的步骤
- Linux操作系统安装步骤
- mac os安装 brew 及 cffi
- HP DL380G5服务器安装Windows2003操作系统的步骤
- [双系统]安装双系统的步骤及注意事项(含分区工具介绍)
- [置顶] 安卓开发工具快速配置环境变量--jdk安装步骤及配置环境变量、Android Studio、Eclipse配置环境变量
- MAC OS上安装XGBoost步骤
- Mac OS X 安装 brew 工具!
- 安装unbuntu详细步骤和用到的工具
- 无光驱无U盘安装操作系统,使用PE工具
- dl380g5 安装 Windows2003 操作系统的步骤