homebrew

Upgrading Global Ruby Version on macOS

好久不见. 提交于 2020-03-25 22:01:47
问题 I am trying to update Ruby on my computer to version 2.7.0 as that is the latest stable version. Running macOS Catalina Version 10.15.3 Have tried the top two solutions from this StackOverflow post. 1. Using just brew brew upgrade ruby just confirms that "ruby 2.6.5 already installed" 2. Using rbenv rbenv install 2.7.0 rbenv global 2.7.0 After installation I get confirmation that ruby 2.7.0 is installed, but when I close terminal, and check version, 2.6.5 is still the current version.

Just installed Python on Mac, but getting “ModuleNotFoundError: No module named 'encodings'” error

不羁的心 提交于 2020-03-25 16:57:22
问题 I want to use Python 3 on my Mac High Sierra system. I installed with brew using the following ... localhost:tmp davea$ brew reinstall python3 ==> Reinstalling python ==> Downloading https://homebrew.bintray.com/bottles/python-3.7.6_1.high_sierra.bottle.tar.gz Already downloaded: /Users/davea/Library/Caches/Homebrew/downloads/3d94ccb6613548e55aed20c7ee59f0e0b7fb045a5d9c8885aa3504ea31f8ab0e--python-3.7.6_1.high_sierra.bottle.tar.gz ==> Pouring python-3.7.6_1.high_sierra.bottle.tar.gz ==> /usr

Just installed Python on Mac, but getting “ModuleNotFoundError: No module named 'encodings'” error

梦想与她 提交于 2020-03-25 16:56:58
问题 I want to use Python 3 on my Mac High Sierra system. I installed with brew using the following ... localhost:tmp davea$ brew reinstall python3 ==> Reinstalling python ==> Downloading https://homebrew.bintray.com/bottles/python-3.7.6_1.high_sierra.bottle.tar.gz Already downloaded: /Users/davea/Library/Caches/Homebrew/downloads/3d94ccb6613548e55aed20c7ee59f0e0b7fb045a5d9c8885aa3504ea31f8ab0e--python-3.7.6_1.high_sierra.bottle.tar.gz ==> Pouring python-3.7.6_1.high_sierra.bottle.tar.gz ==> /usr

如何解决 homebrew 更新慢的问题

两盒软妹~` 提交于 2020-03-25 12:58:44
3 月,跳不动了?>>> 之前一直困扰于 Homebrew 的更新速度,曾试过修改更新源(清华、中科大等)的方式,但是并没什么卵用;也试过设置 curl 代理的方式,但是 brew 走的好像不是 curl 的方式,所以也没用。 通过观察,当执行 brew 相关命令时,在进行网络通信的进程中马上出现了 git ,于是尝试给 git 设置代理,最终问题解决。 没有设置代理前,git 的流量是每秒最多几十k,只要你的代理和本机带宽够快,那么 brew 就可以飞起来。 注意: 系统:macOS Mojave v10.14.2, Homebrew:v1.8.6 其它版本系统并未测试,请根据具体情况自行调整。 可参照如下方式进行设置和重置: 设置代理 $ git config --global http.proxy http://127.0.0.1:端口号 $ git config --global https.proxy https://127.0.0.1:端口号 重置 git config --global --unset http.proxy git config --global --unset https.proxy 来源: oschina 链接: https://my.oschina.net/u/2276973/blog/2990341

Use libbitcoin in CLion

梦想与她 提交于 2020-03-21 10:43:29
问题 I am not a C++ programmer, only have made a course a while ago. Using homebrew I installed libbitcoin and was hoping that I can reference the library like I was able to reference the boost libraries. I also realized that there are no links in /usr/local/bin to the Cellar. I think I could get it working by using the absolute paths but I am looking for the proper way of handling this constellation that I just mentioned. Current CMake: cmake_minimum_required(VERSION 2.8.4) project(cplusplus)

mac系统配置socks5转http代理

南楼画角 提交于 2020-03-20 07:48:22
命令行下,访问一些资源不方便,需要转换一下,办法很多,像privoxy,polipo,proxychains等,今天我们研究privoxy 安装privoxy brew install privoxy => Auto-updated Homebrew! Updated 2 taps (homebrew/cask and homebrew/services). ==> Installing dependencies for privoxy: pcre ==> Installing privoxy dependency: pcre ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.43.catalina.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/35/3517eab75bf5bdb7798414d0af2aaaaf43edd248abc960b008d89b0a0958d537?__gda__=exp=1584257346~hmac=8 ######################################################################## 100.0% ==> Pouring pcre-8.43

mac系统配置socks5转http代理

感情迁移 提交于 2020-03-17 22:27:30
命令行下,访问一些资源不方便,需要转换一下,办法很多,像privoxy,polipo,proxychains等,今天我们研究privoxy 安装privoxy brew install privoxy => Auto-updated Homebrew! Updated 2 taps (homebrew/cask and homebrew/services). ==> Installing dependencies for privoxy: pcre ==> Installing privoxy dependency: pcre ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.43.catalina.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/35/3517eab75bf5bdb7798414d0af2aaaaf43edd248abc960b008d89b0a0958d537?__gda__=exp=1584257346~hmac=8 ######################################################################## 100.0% ==> Pouring pcre-8.43

Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443

≡放荡痞女 提交于 2020-03-17 06:00:11
问题 When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem. $ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 回答1: Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection. Can you get to the same URL via a browser?

Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443

喜你入骨 提交于 2020-03-17 05:58:25
问题 When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem. $ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 回答1: Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection. Can you get to the same URL via a browser?

mac 下 安装 mongodb

孤者浪人 提交于 2020-03-15 16:07:18
使用brew安装,不过brew不再更新, 通过 sudo chown -R $(whoami):admin /usr/local   这条语句终端有提醒的 xcode-select --install   需要安装这个xcode-select brew install mongodb sed: .git/GITHUB_HEADERS: No such file or directory ==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz ######################################################################## 100.0% ==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz ==> Auto-updated Homebrew! Updated 2 taps (homebrew/core, homebrew/versions).   打算通过brew 安装mongodb,从而自动更新了ruby版本以及Homebrew的版本,然后再次执行 brew install mongodb