homebrew

Mac 下homebrew的使用

大兔子大兔子 提交于 2021-02-08 14:33:09
更换国内镜像,提高安装速度 #下载homebrew安装脚本 curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install #切换国内镜像 替换下载的brew_install脚本中的 BREW_REPO = “https://github.com/Homebrew/brew”.freeze 为 BREW_REPO = “https://mirrors.ustc.edu.cn/brew.git “.freeze 安装homebrew ruby brew_install 更换国内镜像,提高homebrew下软件安装速度 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git 安装brew-cask brew

Using GNU Make 4.X on OSX

…衆ロ難τιáo~ 提交于 2021-02-08 10:06:55
问题 I'm following https://ninenines.eu/docs/en/cowboy/2.0/guide/getting_started/ which requires make. When I run the install scripts, the prompt tells me to use make 4.1 . I run brew install erlang git homebrew/dupes/make then brew unlink make && brew link make but which make is still /usr/bin and make -v is 3.8. How do I link to the correct, updated make? EDIT export PATH=/usr/local/bin:$PATH is the first line of my ~/.bash_profile 回答1: You need to set your PATH so that /usr/local/bin is ahead

Trouble Starting MongoDB (Mac) - Code: 100

天大地大妈咪最大 提交于 2021-02-08 07:43:51
问题 I installed MongoDB via Homebrew and seem to be having some trouble starting when I run the mongod command. I have tried setting a up the data/db directory correctly and viewed a few other answers on stackoverflow, but haven't been able to figure this out. Here is what I keep getting (sorry I am new to this): 2017-01-02T23:45:53.444-0500 I CONTROL [initandlisten] MongoDB starting : pid=1419 port=27017 dbpath=/data/db 64-bit host=Johns-MacBook-Pro-3.local 2017-01-02T23:45:53.445-0500 I CONTROL

Elasticsearch 7.3 homebrew

馋奶兔 提交于 2021-02-07 17:15:43
问题 I was using Elasticsearch 6.8 via homebrew, now I was trying to upgrade to 7.3. Now on 6.8 I already got a warning about a log file that did not exist but the server would still run. Now with 7.3 I get a error and the server wont run: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] output: [0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory [0.002s][error][logging] Initialization of output 'file=logs/gc.log' using

Elasticsearch 7.3 homebrew

岁酱吖の 提交于 2021-02-07 17:14:16
问题 I was using Elasticsearch 6.8 via homebrew, now I was trying to upgrade to 7.3. Now on 6.8 I already got a warning about a log file that did not exist but the server would still run. Now with 7.3 I get a error and the server wont run: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] output: [0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory [0.002s][error][logging] Initialization of output 'file=logs/gc.log' using

Elasticsearch 7.3 homebrew

我的未来我决定 提交于 2021-02-07 17:12:35
问题 I was using Elasticsearch 6.8 via homebrew, now I was trying to upgrade to 7.3. Now on 6.8 I already got a warning about a log file that did not exist but the server would still run. Now with 7.3 I get a error and the server wont run: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] output: [0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory [0.002s][error][logging] Initialization of output 'file=logs/gc.log' using

Elasticsearch 7.3 homebrew

一曲冷凌霜 提交于 2021-02-07 17:12:24
问题 I was using Elasticsearch 6.8 via homebrew, now I was trying to upgrade to 7.3. Now on 6.8 I already got a warning about a log file that did not exist but the server would still run. Now with 7.3 I get a error and the server wont run: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] output: [0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory [0.002s][error][logging] Initialization of output 'file=logs/gc.log' using

How to fix paths to solve Homebrew doctor warnings

会有一股神秘感。 提交于 2021-02-07 12:18:31
问题 Another newbie query. I've been struggling to install matplotlib for a Python project so reading around suggested Homebrew was a solid solution for package management and dependencies. However when I run the Homebrew diagnostics I receive the following error: $ brew doctor Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when

硬核观察 | Chromium 改进了滥用,让访问根服务器的 DNS 查询锐减 41%

时光毁灭记忆、已成空白 提交于 2021-02-07 10:41:47
Chromium 改进了滥用,让访问根服务器的 DNS 查询锐减 41% 去年 8 月,亚太互联网络信息中心(APNIC) 报告 称,Chromium 浏览器中检查网络是否存在 DNS 拦截的代码会导致大量的垃圾 DNS 查询流量。据统计这产生了 45.8% 的对 DNS 根服务器的流量,约计每天查询 600 亿次。 此后,Chromium 团队重新设计了代码,在 Android 设备上禁用了重定向测试,并推出了多状态 DNS 拦截策略,支持禁用桌面浏览器的重定向测试。该功能在 2020 年 11 月中旬上线后,据 统计 ,对根服务器的 DNS 查询量迅速下降。在新版本发布之前,根服务器系统的查询量峰值为每天约 1430 亿次。此后,流量已降至每天约 840 亿次查询。 作为具有市场垄断地位的广泛使用的软件,一个小小的举动就能影响很大。这让我想起来微信的域名,这么多年来一直是 weixin.qq.com,如果使用顶级域名,或更短的域名,想必能为中国互联网省下很多无谓的流量。 德国警方查获了 6000 万美元的比特币,但是没有密码 据 路透社 报道,这名当事人因在人们的电脑上秘密安装比特币挖矿软件而被判刑两年多,并已在监狱中服刑。检察官扣押了他的加密钱包,但是没有得到密码,当事人称自己忘记了。 加密钱包可以使用密码来保护私钥,因此,如果没有密码就无法解锁钱包以取出存储于其中的比特币

Homebrew: Cannot link python

╄→гoц情女王★ 提交于 2021-02-07 05:27:06
问题 I'm having an issue linking python in Homebrew. Here is the output: brew link python Linking /usr/local/Cellar/python/2.7.13... Error: Permission denied - /usr/local/Frameworks When I ls -al on the contents of /usr/local (to see the permissions of Frameworks), I find there is no directory 'Frameworks'. I'm hesitant to mkdir Frameworks in case it does so with the wrong permissions and doesn't connect it to other elements of the system. 回答1: Create the Frameworks directory and chown for itself