MacOsx自动安装工具:brew

安装brew的执行命令

curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

安装cocoapods:

sudo brew install cocoapods

卸载

sudo brew uninstall cocoapods

遇到的问题一:执行brew install xxx安装某个软件的时候报错,错误内容:uninitialized constant Homebrew::HOMEBREW_CASK_TAP_CASK_REGEX

解决办法:执行brew doctor诊断之后再执行brew install ***安装某个软件,此时就会自动更新HomeBrew。相当于修复了brew,然后安装就成功了。

MacdeMacBook-Air:cmake-3.8.0-rc2 mac$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: /usr/local/bin isn't writable.

This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably change the ownership and permissions of /usr/local/bin
back to your user account.
  sudo chown -R $(whoami) /usr/local/bin

Warning: /usr/local/share isn't writable.

This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably change the ownership and permissions of /usr/local/share
back to your user account.
  sudo chown -R $(whoami) /usr/local/share
Error: undefined method `rebuild' for #<BottleSpecification:0x007f8ee908a708>
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/findutils.rb:10:in `block in <class:Findutils>'
/usr/local/Library/Homebrew/software_spec.rb:91:in `instance_eval'
/usr/local/Library/Homebrew/software_spec.rb:91:in `bottle'
/usr/local/Library/Homebrew/formula.rb:1726:in `bottle'
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/findutils.rb:8:in `<class:Findutils>'
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/findutils.rb:1:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:21:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:21:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:34:in `load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:83:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:74:in `klass'
/usr/local/Library/Homebrew/formulary.rb:70:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:207:in `factory'
/usr/local/Library/Homebrew/formula.rb:1183:in `[]'
/usr/local/Library/Homebrew/diagnostic.rb:1217:in `check_for_non_prefixed_findutils'
/usr/local/Library/Homebrew/cmd/doctor.rb:34:in `block in doctor'
/usr/local/Library/Homebrew/cmd/doctor.rb:27:in `each'
/usr/local/Library/Homebrew/cmd/doctor.rb:27:in `doctor'
/usr/local/Library/brew.rb:84:in `<main>'

MacdeMacBook-Air:Downloads mac$ brew install yasm
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
teleport
==> Updated Formulae
gnuradio                                 mkdocs
==> Renamed Formulae
ffmpeg28 -> ffmpeg@2.8
freetds091 -> freetds@0.91
giflib5 -> giflib@5
glfw2 -> glfw@2
gnupg21 -> gnupg@2.1
gnuplot4 -> gnuplot@4
gradle214 -> gradle@2.14
grails25 -> grails@2.5
gsl1 -> gsl@1
gst-ffmpeg010 -> gst-ffmpeg@0.10
gst-plugins-bad010 -> gst-plugins-bad@0.10
gst-plugins-base010 -> gst-plugins-base@0.10
gst-plugins-good010 -> gst-plugins-good@0.10
gst-plugins-ugly010 -> gst-plugins-ugly@0.10
gstreamer010 -> gstreamer@0.10

Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.
==> Migrating HOMEBREW_REPOSITORY (please wait)...
Error: /usr/local/Homebrew already exists.
Please remove it manually or uninstall and reinstall Homebrew into a new
location as the migration cannot be done automatically.
Warning: yasm-1.3.0 already installed
时间: 2024-09-12 06:10:04

MacOsx自动安装工具:brew的相关文章

使用“驱动自动安装工具”安装驱动方法

  操作步骤: 打开如下链接后点击免费下载,之后点击运行; http://support1.lenovo.com.cn/lenovo/wsi/Modules/serviceclient.aspx 若弹出如下提示请点击"是"; 下载完毕后点击"下一步"; 根据如下向导安装好软件; 安装完成后在弹出的"联想乐驱动"界面点击"是"; 自动弹出本机主机编号; 如下以显卡驱动安装为例,描述安装过程. 本机未安装显卡驱动,"联想

乐享家客户端会自动安装

故障现象: 在安装联想驱动一键安装后,会自动安装乐享家客户端. 原因分析: 在安装联想驱动一键安装的完成这步时有一个安装乐享家客户端的选项. 解决方案: 最新版的驱动自动安装工具V2.0会在最后一步有一个"安装联想远程客户端软件"的功能,默认此功能是勾选的,如果不取消,该软件会在后续安装一个乐享家的客户端,如果遇到客户询问乐享家客户端如何会在客户电脑上自动安装,请各位知晓原因. 图1 图2

Mac上使用homebrew安装PostgreSql

安装 brew 安装 postgresql : $ brew install postgresql 查看安装的版本: $ pg_ctl -V pg_ctl (PostgreSQL) 9.3.5 安装成功之后,安装路径为:/usr/local/var/postgres 接下来,初始化数据库: $ initdb /usr/local/var/postgres The files belonging to this database system will be owned by user "june

云服务器 ECS 建站教程:阿里云安装SharePoint 2016

阿里云安装SharePoint 2016 系统环境 1.基础配置 Windows Server 2012 4C 8G (请根据真实环境设计架构以及购买服务器配置) 2.软件环境 SQL server 2012 express Sharepoint 2016 AD DNS IIS 3.必备组件 Net Framework 3.5 (安装SQL server 需要.net Framework 3.5 支持) 使用"添加角色和功能"安装可能会安装失败,参考链接:https://help.al

基于AutoYaST 自动化安装 SuSE 实践

在金融行业中我所接触的操作系统主要是AIX和SLES(SuSE Linux Enterprise Server),也许大家平时用得更多是CentOS,虽然有部分差异但原理都是相通的,SMIT和YaST也是灰常实用的功能,推荐大家有机会尝试体验下.因为网上关于SuSE自动化部署的参考文章较少,这套自动化部署方案已经被验证并在生产系统使用了1年半,配置相对成熟和稳定.遵循Don't Repeat Yourself原则,本文主要介绍基于AutoYaST实现半自动化SuSE定制光盘和PXE网络全自动化安

RHCE学习&lt;2&gt;无人值守安装Linux系统(FTP+TFTP+DHCP+Kickstart+PXE)

无人值守工作过程: 通过Kickstart自动安装工具,生成引导网络引导文件信息,从机器启动,由网卡PXE功能,把自已的网络引导功能提供给系统的BIOS,再广播一个设置了PXE选项的DHCP"发现"请求,然后一台DHCP服务器用一个包含有PXE选项的DHCP包来响应它(引导服务器的IP地址和引导文件的名字).客户机通过TFTP下载它的引导文件,然后执行这个引导文件,就可以通过网络启动linux. 所需要软件: DHCP:服务器用来给客户机分配IP: TFTP:服务器用来存放PXE的相关

HTTPS 升级指南

上一篇文章我介绍了 HTTP/2 协议 ,它只有在 HTTPS 环境才会生效. 为了升级到 HTTP/2 协议,必须先启用 HTTPS.如果你不了解 HTTPS 协议(学名 TLS 协议),可以参考我以前的文章. <HTTPS 协议概述> <图解 HTTPS 协议> <HTTPS 协议的七个误解> <HTTPS 协议的延迟有多大?> 本文介绍如何将一个 HTTP 网站升级到 HTTPS . 一.获取证书 升级到 HTTPS 协议的第一步,就是要获得一张证书.

Windows 8怎么关机 win8关机方法总结

适用范围: windows8系统 操作步骤: 没有了传统的"开始"按钮,是不是觉得一时间不知道怎么关机了?以下是几种Win8下的关机方式. 方法一: Metro界面下按Win+i键打开设置窗口,有关机按钮,或者通过Charm菜单,选择设置,效果等同Win+i: Charm菜单打开方式:Win+C,或者鼠标移到右上/右下角.   您现在的位置:服务与支持频道 > 常见问题 返回首页 驱动程序下载 驱动下载首页 驱动自动安装工具 驱动安装光盘 服务查询 服务网点 保修及配置 服务政策

联想S5-S531笔记本安装winxp系统的注意事项

首先接上启动U盘,选择从U盘启动,没有反应,似乎被保护了,了解了一下,原来是BIOS默认是保护启动模式的.得修改一下才行: 1.进入BIOS--security--secure boot conctrol,设置为disabled 2.进入BIOS--Startup--将CSM(兼容性模块)打开,将boot mode 改为Legacy(一定先要操作第一步) 3.进入BIOS--devices--ATA drivers setup--configure SATA as改为Composite模式保存