homebrew

Brew cleanup Error: Permission denied @ unlink_internal

≯℡__Kan透↙ 提交于 2020-01-22 08:21:04
问题 I met an error while doing "brew cleanup": $ brew cleanup Warning: Skipping opam: most recent version 2.0.3 not installed Warning: Skipping python: most recent version 3.7.2_2 not installed Warning: Skipping sqlite: most recent version 3.27.1 not installed Error: Permission denied @ unlink_internal - /usr/local/lib/node_modules/@angular/cli/node_modules/.bin/in-install Does anyone know how to fix this? PS: brew link node returns an error, though I don't know if it is related. $ brew install

Where does go get install packages?

浪子不回头ぞ 提交于 2020-01-21 02:57:35
问题 I've been given instructions to run go get <some-remote-git-repo> which seems to succeed, but it's not clear to me where the package was installed to so I can run an executable from it. Per https://golang.org/doc/code.html#remote it seems it will be installed in $GOPATH/bin but $GOPATH isn't defined in my shell (though the go get command seems to work fine). Go is installed via Homebrew. 回答1: I found the missing clue by running brew info go , which says: ==> Caveats A valid GOPATH is required

gem eventmachine fatal error: 'openssl/ssl.h' file not found

孤街浪徒 提交于 2020-01-19 01:52:07
问题 Just installed El Capitan and can't install gem eventmachine 1.0.7 . openssl is at 1.0.2a-1 . Tried to use --with-ssl-dir but it seems ignored. Reported it to their github repo as well. Any suggestions are really appreciated. Thanks. $ ls /usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h /usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h $ gem install eventmachine -v '1.0.7' -- --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2a-1/include /Users/pain/.rbenv/versions/2.1.2/bin/ruby -r

How to restore brew formula after I rm it

蓝咒 提交于 2020-01-17 03:36:07
问题 I just rm a formula in tap homebrew/homebrew-core which is boost-python and boost since they seem to be broken. I want to delete them and retap them again. What I have tried: brew tap --repair and brew tap homebrew/homebrew-core But they didn't work. What should I do to get these formulas back? https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost-python.rb https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost.rb 回答1: The way to fix it is directly installing a

pyenv 3.6.5 BUILD FAILED macOS Mojave 10.14.5

时光总嘲笑我的痴心妄想 提交于 2020-01-16 19:52:07
问题 I am trying to install python 3.6.5 using pyenv and getting a BUILD FAILED (OS X 10.14.5 using python-build 20180424). Versions: macOS 10.14.5 Homebrew 2.1.8 pyenv 1.2.13 gcc 7.3.0 I have tried to install the additional SDK headers as recommended here. I have also tried installing: python 3.6.1 and python 3.6.5. I get 189 warnings generated. The last 10 log lines: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:341:13: note: insert '_Nonnull' if the pointer

Swi-Prolog的安装

最后都变了- 提交于 2020-01-16 14:15:08
转载自:https://mp.weixin.qq.com/s/cVhuibaXiCuUBTc-dX1Weg macOS的安装 Port安装 开启浏览器输入链接 https://www.macports.org/install.php 下载当前使用的版本如下所示: 运行MacPorts-xxxxxxx.pkg安装包成功后 安装稳定版 $ sudo port install swi-prolog Password: Portfile changed since last build; discarding previous state. —> Computing dependencies for swi-prolog The following dependencies will be installed: … … … —> Some of the ports you installed have notes: gawk has the following notes: readline support has been removed from gawk. If you need to run gawk interactively, install rlwrap: sudo port install rlwrap and run gawk using rlwrap: rlwrap

Mac os安装golang开发环境

非 Y 不嫁゛ 提交于 2020-01-16 04:37:17
为了能够愉快地进行golang编程,我们需要安装以下几样东西: 包管理Homebrew 语言环境golang 版本管理git 虚拟器docker 编译器Goland 我将按照这个顺序叙述整个安装过程 docker 其实是可选的,它可以把应用程序打包为可移植的、自给自足的容器。这样一来,你就可以在本地生成golang程序的docker镜像,直接扔到测试环境,便可以进行测试了,不需要再进行代码上传,环境配置等操作了。 如果你觉得暂时用不到,也可以先不装。 1、安装brew Homebrew有点类似于Linux操作系统中的apt-get(Ubuntu)、yum(yum),Mac的操作系统中使用它解决包依赖问题,套用官方的话来说: Homebrew 能干什么? 使用 Homebrew 安装 Apple 没有预装但 你需要的东西 。 让我们开始安装吧! 在命令行输入以下指令 fabric:~ fabric$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 出现以下内容,安装成功 ==> Installation successful! ==> Homebrew has enabled anonymous aggregate user behaviour

傻瓜式在mac上安装rabbitmq

三世轮回 提交于 2020-01-15 22:32:46
这种安装方式不需要自己手动下载任何东西,包括rabbitmq 一、安装Homebrew Homebrew官网:https://brew.sh/index_zh-cn.html 打开终端,输入上面的命令 ypdeMacBook-Air:~ yp$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following existing directories will be made group writable: /usr/local/bin /usr/local/lib ==> The following existing directories will have their owner set to

How do I install pcre with homebrew?

拟墨画扇 提交于 2020-01-15 11:11:55
问题 Background I have a regex I want to run across multiple lines. My understanding is that OSX's grep can't handle this (please correct me if I'm wrong!). So after some Googling I found that PCRE would do what I want. I tried to install it with brew install pcre as a few sites suggested. It seems to have worked. If I run brew install pcre again I get this error Warning: pcre-8.40 already installed and I have a /usr/local/Cellar/pcre/8.40/ directory. Problem After installing PCRE via homebrew I

How do I install pcre with homebrew?

假如想象 提交于 2020-01-15 11:10:20
问题 Background I have a regex I want to run across multiple lines. My understanding is that OSX's grep can't handle this (please correct me if I'm wrong!). So after some Googling I found that PCRE would do what I want. I tried to install it with brew install pcre as a few sites suggested. It seems to have worked. If I run brew install pcre again I get this error Warning: pcre-8.40 already installed and I have a /usr/local/Cellar/pcre/8.40/ directory. Problem After installing PCRE via homebrew I