homebrew

[homebrew]brew doctor产生的警告有人遇到过吗?[操作系统是Mac 10.7.3]

纵然是瞬间 提交于 2020-04-07 07:01:57
警告信息如下: brew doctor Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to write a header file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/include Warning: /usr/local/share isn't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to write a file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/share Warning: Some directories in /usr

Mac升级Yosmite(优胜美地)以后出问题

淺唱寂寞╮ 提交于 2020-04-07 02:15:14
这一节主要面向服务器端的开发者,如果你是普通用户、项目经理或纯粹的 iOS 开发者,可以直接看下一节。 系统升级完成之后,如果你是个开发者,你会发现:Homebrew 不能用了因为 Ruby 的版本变成2.0了,Vim7.3-66 也不能用了因为 Perl 的版本也变了,原来用 iCloud 的第三方程序里的数据消失不见了,Java 再次被干掉了,Docker 也起不来了,CocoaPods 也罢工了,连视频播放器 MPlayer 也开始崩溃了。 「妈妈我该怎么办呀」,你发出了撕心裂肺的喊声,抹抹泪准备恢复到老版本 Mavericks……停!泡杯茶平复一下万念俱灰的心情,然后继续读 MacTalk。 1、首先处理 Homebrew 问题 执行如下命令: cd `brew --prefix` ##找到 Homebrew mv Cellar /tmp ##备份用过 Homebrew 安装的程序包和库 brew prune ##删除无效 Link rm -r `git ls-files` ##删除 Git 信息 rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions rm -rf .git rm -rf ~/Library/Caches/Homebrew ##删除缓存 然后重新安装

Mac搭建nginx+rtmp服务器

落爺英雄遲暮 提交于 2020-04-06 19:51:12
Mac搭建nginx+rtmp服务器 概述 Mac安装RTMP服务器过程记录下来! 一、安装Homebrew 执行命令: 1 2 3 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 如果已经安装过,而想要卸载: 1 2 3 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" 如果已经安装过,则不用安装! 二、安装nginx 先glone nginx项目到本地: 1 2 3 brew tap homebrew/nginx 执行安装: 1 2 3 brew install nginx-full --with-rtmp-module 通过操作以上步骤,nginx和rtmp模块就安装好了 三、运行nginx 执行命令: 1 2 3 nginx 出现如下页面信息,表示nginx服务器搭建成功了,而且已经安装了RTMP模块了: 四、配置nginx和rtmp 下面开始来配置nginx的rtmp模块。首先,我们要看看nginx安装到哪里了: 1 2 3 brew info nginx-full 出现如下类似信息: 1 2 3 4 5 6

brew update 过慢的解决方法

久未见 提交于 2020-04-06 10:07:29
Homebrew是Mac的软件包管理器,我们可以通过它安装大多数开源软件。但是在使用brew update更新的时候竟然要等待很久。猜测可能是因为brew的官方源被墙或或者响应慢。于是想到的切换Homebrew的更新源的办法, 如果coding.net的源还是很慢的话, 也可以尝试其他的源。具体代码如下 $ #cd to homebrew foler $ cd "$(brew --repo)"; $ #check git remote status $ git remote -v; https://github.com/Homebrew/homebrew.git $ #update remote url with Coding.net $ git remote set-url origin https://git.coding.net/homebrew/homebrew.git $ brew update ———————————————— 原文链接:https://blog.csdn.net/yolohohohoho/java/article/details/87892412 来源: oschina 链接: https://my.oschina.net/u/4303594/blog/3221439

mac安装brew

眉间皱痕 提交于 2020-04-05 22:37:57
1.第一步,获取install文件 把官网给的脚本拿下来 curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install 2.第二步,更改脚本中的资源链接,替换成清华大学的镜像 就是把这两句 BREW_REPO = “ https://github.com/Homebrew/brew“.freeze CORE_TAP_REPO = “ https://github.com/Homebrew/homebrew-core“.freeze 更改为这两句 BREW_REPO = “ https://mirrors.ustc.edu.cn/brew.git “.freeze CORE_TAP_REPO = “ https://mirrors.ustc.edu.cn/homebrew-core.git“.freeze 当然如果这个镜像有问题的话,可以换成别的 3.第三步,执行脚本 /usr/bin/ruby brew_install 更换国内镜像源: 执行下面这句命令,更换为中科院的镜像: git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps

Mac 下 brew 切换为国内源

≡放荡痞女 提交于 2020-04-05 18:12:49
简介 Homebrew 是一款自由及开放源代码的软件包管理系统,用以简化 macOS 和 linux 系统上的软件安装过程。它拥有安装、卸载、更新、查看、搜索等很多实用的功能,通过简单的一条指令,就可以实现包管理,十分方便快捷。 Homebrew 主要有四个部分组成: brew 、 homebrew-core 、 homebrew-bottles 、 homebrew-cask 。 名称 说明 brew Homebrew 源代码仓库 homebrew-core Homebrew 核心软件仓库 homebrew-bottles Homebrew 预编译二进制软件包 homebrew-cask 提供 macOS 应用和大型二进制文件 替换为阿里源 # 查看 brew.git 当前源 $ cd "$(brew --repo)" && git remote -v origin https://github.com/Homebrew/brew.git (fetch) origin https://github.com/Homebrew/brew.git (push) # 查看 homebrew-core.git 当前源 $ cd "$(brew --repo homebrew/core)" && git remote -v origin https://github.com/Homebrew

macOS 10.12.6 安装homebrew

放肆的年华 提交于 2020-04-04 06:23:49
系统环境 教程 iTerm2 + Oh My Zsh 打造舒适终端体验 问题 在安装Homebrew这一步报错 Press RETURN to continue or any other key to abort ==> Installing the Command Line Tools (expect a GUI popup): ==> /usr/bin/sudo /usr/bin/xcode-select --install Password: xcode-select: note: install requested for command line developer tools Press any key when the installation has completed. ==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools' Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer

mac下Homebrew的使用

馋奶兔 提交于 2020-04-03 21:41:33
最近入手一台mac,由于之前未曾用过,不得进入了各种折腾的状态,其中在配置PHP时,经同事介绍了解到了brew,然后对此大概了解了一下,网上虽然关于此方面的教程以及很多了,我这里也需要记录一下,方便自己查找。 homebrew简介 1、homebrew,是Mac上的一款包管理器,类似于 wget,用于管理Mac下的 unix 工具。 2、homebrew 会将包安装在 /usr/local/Celler 下,并将其文件软连接到 /usr/local 下。 homebrew安装 ruby - e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 直接复制,执行此命令即可,不过由于网速的原因,需要耐心等待。 基本用法 brew search mysql //搜索包 brew install mysql //安装包 brew info mysql // 查看包信息,比如目前的版本,依赖,安装后注意事项等 brew uninstall wget // 卸载包 brew list //显示已安装的包 brew – help //查看brew的帮助 brew update //更新,这会更新 Homebrew 自己 //检查过时(是否有新版本) brew outdated brew outdated

mac 下配置protobuf 3.0 golang环境

半城伤御伤魂 提交于 2020-04-01 12:58:28
protobuf 3.0 与 之前的 protobuf 2.6 的语法是不一样的。需要重新安装一下,本机的环境是 OS X Yosemite 10.10.2 1. 不采用home brew安装,用homebrew安装的话会遇到一个open issue https://github.com/Homebrew/homebrew/issues/30320 的问题,没有仔细研究,索性就直接进行手工安装了; 不过这里可以记录一下自定义brew的 formula的方法: (1) 如果直接使用 brew INSTALL protobuf 进行安装的话,目前默认的安装版本还是 2.6.1的,所以需要修改一个brew 的formula,让brew去寻找3.0的版本;方法如下: sudo brew create https://github.com/google/protobuf/archive/v3.0.0-alpha-3.tar.gz 之后会要求输入formula的名字,输入protobuf即可, 如果之前已经安装过protobuf,会报出protobuf.rb已经存在的错误,直接删除那个protobuf.rb文件就可以; 还有如果之前安装了别的版本的protobuf,可以用sudo brew remove protobuf删除; (2) 上述部署做完之后,会弹出一个vim的编辑页面

“ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

送分小仙女□ 提交于 2020-03-31 05:41:50
问题 When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1. Any reference would be appreciated. Here is the error I'm getting: hg commit --amend ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get