homebrew

Trying to install Hugo via Homebrew - “Could Not Resolve HEAD to a Revision”

时光毁灭记忆、已成空白 提交于 2021-01-19 06:04:12
问题 I'm trying to take a stab at a new site using Hugo, and I am stuck during installation. I've installed Homebrew and when running the version, I get the following: ~ % brew --version Homebrew 2.7.2 Homebrew/homebrew-core (no git repository) Homebrew/homebrew-cask (git revision b96680c; last commit 2021-01-07) And when I run brew install hugo I get the following: ~ % brew install hugo fatal: Could not resolve HEAD to a revision ==> Searching for similarly named formulae... Error: No similarly

Switching Python version installed by Homebrew

社会主义新天地 提交于 2021-01-18 04:49:36
问题 I have Python 3.8 and 3.9 installed via Homebrew: ~ brew list | grep python python@3.8 python@3.9 I want to use Python 3.9 as my default one with python3 command. I tried the following: ~ brew switch python 3.9 Error: python does not have a version "3.9" in the Cellar. python's installed versions: 3.8.6 I tried to uninstall Python and reinstall it, but it's used by other packages: ~ brew uninstall python Error: Refusing to uninstall /usr/local/Cellar/python@3.8/3.8.6 because it is required by

Switching Python version installed by Homebrew

混江龙づ霸主 提交于 2021-01-18 04:41:27
问题 I have Python 3.8 and 3.9 installed via Homebrew: ~ brew list | grep python python@3.8 python@3.9 I want to use Python 3.9 as my default one with python3 command. I tried the following: ~ brew switch python 3.9 Error: python does not have a version "3.9" in the Cellar. python's installed versions: 3.8.6 I tried to uninstall Python and reinstall it, but it's used by other packages: ~ brew uninstall python Error: Refusing to uninstall /usr/local/Cellar/python@3.8/3.8.6 because it is required by

【MAC】 命令行解压缩 rar 文件

假装没事ソ 提交于 2021-01-09 08:08:05
  使用Mac解压rar文件很简单,总共分2步。step1:安装解压工具,step2:解压    1.使用Homebrew安装unrar brew install unrar    2.cd到rar文件的目录下,然后在终端输入下列命令 :   unrar x 需解压的文件目录 (不要忘记参数x) unrar x aa.rar   此时 aa.rar 文件与 解压的文件夹在同一目录下。    3. 示例:   以解压123.rar文件为例:   参考文档: MAC 命令行解压 rar 文件 来源: oschina 链接: https://my.oschina.net/u/4295517/blog/3360542

Does simply uninstalling Python 3.9 and installing Python 3.8 again with Homebrew work?

廉价感情. 提交于 2021-01-07 02:39:15
问题 I used Python 3.8.6, installed via Homebrew on my Mac (Mac OS 11.1), and everything was fine. After upgrading Python to 3.9 (and later 3.9.1) with Homebrew, there is an issue with one of the moduls which might be caused by that and I want to go back. Trouble with Python versions seems to be a quite common and there are tons of articles etc. about that, but so far nothing worked for me. pyenv is often recommended, but actually I do not need the 3.9 version at the moment and did not want to

Does simply uninstalling Python 3.9 and installing Python 3.8 again with Homebrew work?

巧了我就是萌 提交于 2021-01-07 02:37:45
问题 I used Python 3.8.6, installed via Homebrew on my Mac (Mac OS 11.1), and everything was fine. After upgrading Python to 3.9 (and later 3.9.1) with Homebrew, there is an issue with one of the moduls which might be caused by that and I want to go back. Trouble with Python versions seems to be a quite common and there are tons of articles etc. about that, but so far nothing worked for me. pyenv is often recommended, but actually I do not need the 3.9 version at the moment and did not want to

The following ICU libraries were not found: — i18n (required)

只愿长相守 提交于 2021-01-05 11:59:49
问题 I have to build miktex source code. I install source code from github they give me link to build it: https://miktex.org/howto/build-mac. I follow the steps given in the link. When I run cmake ../source I got error: INFOfribidi libs: /usr/local/Cellar/fribidi/1.0.5/lib/libfribidi.dylib INFOfribidi incs: /usr/local/Cellar/fribidi/1.0.5/include/fribidi;/usr/local/Cellar/fribidi/1.0.5/include -- The following ICU libraries were not found: -- i18n (required) -- uc (required) CMake Error at /usr

我为什么从macOS迁移到FreeBSD?

浪尽此生 提交于 2021-01-03 11:23:09
Python实战社群 Java实战社群 长按识别下方二维码, 按需求添加 扫码关注添加客服 进Python社群▲ 扫码关注添加客服 进Java社群 ▲ 作者 | antranigv 译者 | 张健欣 策划 | 万佳 来源公众号丨InfoQ(ID:infoqchina) 本文不是一篇如何从 macOS 迁移到 FreeBSD 的技术文档。而是从较高的层次,解释我为什么要从 macOS 迁移到 FreeBSD。 不久前,macOS 还是我的日常工作必备之一。我购买了一台 macbook 笔记本,原因是底层的 BSD Unix 和它漂亮的图形界面。另外,我还有一个 iPhone 手机。但是,我放弃 macOS 也是因为这些相同的原因。 我不想在迁移后马下就写这篇文章。我想慢慢来,每天使用 FreeBSD,看看我是否会怀念 macOS。 这是我 8 个月前的一个推文: 1macOS 的槽点 我们可以这样看。macOS 每年都变得越来越没有 Unix 风格, date(1) 已经过时,在系统启动时,有 100 多 Unix 进程运行,其中大部分对于普通用户是没用的,它没有本地的包管理器(至少还有 MacPorts/homebrew/pkgsrc),而对于一个高级用户,没有合适的文档。你看过 FreeBSD 的手册吗?所有的东西都在里面写得很清楚! 关于漂亮的图形界面部分。你看过最新最棒的

How to manually download brew package for installation?

风格不统一 提交于 2021-01-03 05:56:22
问题 Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such: curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443 Error: An exception occurred within a child process: DownloadError: Failed to download resource "heroku" Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command

How to manually download brew package for installation?

♀尐吖头ヾ 提交于 2021-01-03 05:55:00
问题 Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such: curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443 Error: An exception occurred within a child process: DownloadError: Failed to download resource "heroku" Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command