homebrew

How can I fix brew-installed MariaDB that hangs on `mysql.server stop` and doesn’t stop?

扶醉桌前 提交于 2020-03-03 07:36:40
问题 This question is not a duplicate of mariadb server: I can't stop the server with `mysql.server stop`. I don’t want to run MariaDB at boot so brew services isn’t an option. MariaDB version is 10.4.11-MariaDB . 回答1: Think I found the culprit. Having a look at the source code of mysql.server ( cat /usr/local/bin/mysql.server ), I discovered that running mysql.server start runs mysqld_safe as me ( whoami ) which is what I expected. Now, I also discovered that running mysql.server stop runs a su

React Native iOS环境搭建

倖福魔咒の 提交于 2020-03-02 06:49:57
感觉React Native会越来越多的公司开始研究、使用。所以周六也抽空搭建了iOS的开发环境,以便以后利用空闲的时间能够学习一下。 废话不多说了,下面简单的列出步骤吧。 1. 安装Homebrew Homebrew主要用于安装后面需要安装的watchman、flow 打开MAC的终端,输入如下命令: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 经过漫长的等待后,安装完成。执行 brew doctor 命令。这是homebrew 完成后必须做的一件事,检查homebrew 各模块是否正常 2. 安装nvm和nodejs nvm是用于nodejs版本管理的工具,用于安装nodejs。 对于nvm应该可以使用brew直接安装,但是我没有用这个安装,读者可以自己使用如下命令试试: brew install nvm 我使用的另一种方式,在终端中输入如下的命令: brew install node . 该命令执行后,自动装好node和npm 这个用于安装nodejs和npm。npm用于nodejs包依赖管理的工具。 3. 安装watchman watchman是用于监听文件变化的工具,应该是用于监听文件变化,然后界面做出响应。执行如下命令: brew

react native 安装

☆樱花仙子☆ 提交于 2020-03-02 06:29:06
http://blog.csdn.net/xu_fu/article/details/48571941 http://www.csdn.net/article/2015-09-24/2825787-react-native Last login: Wed May 11 21:38:13 on console zcldeMacBook-Air:~ zcl$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ;==> This script will install: /usr/local/bin/brew /usr/local/Library/... /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 ==> The following directories will be made group writable: /usr/local/. /usr/local/bin ==> The following

how to uninstall pyenv(installed by homebrew) on Mac

不问归期 提交于 2020-03-02 04:54:28
问题 I used to install pyenv by homebrew to manage versions of python, but now, I want to use anaconda.But I don't know how to uninstall pyenv.Please tell me. 回答1: To completely uninstall pyenv, perform step (1) and then remove its root directory. This will delete all Python versions that were installed under $(pyenv root)/versions/ directory: rm -rf $(pyenv root) If you’ve installed pyenv using a package manager, as a final step perform the pyenv package removal. For instance, for Homebrew: brew

socat使用指南:1:概要说明

放肆的年华 提交于 2020-03-01 10:41:19
socat是一个网络相关命令行工具,它名称的来源SOcket CAT,功能类似于netcat,比netcat有一定程度的功能增强。这篇文章介绍一下socat的概要信息和安装方法。 概要信息 socat的概要信息如下表所示: 项目 说明 官网 http://www.dest-unreach.org/socat 开源/闭源 开源 源码管理地址 http://www.dest-unreach.org/socat/download/ License类别 Mozilla Public License 2.0 开发语言 C 操作系统支持 跨平台,支持多种操作系统,比如Linux, Mac OS X, Windows等 当前稳定版本 1.7.3.4 (2020/01/05) 安装方法 操作系统 安装命令 CentOS/RHEL yum install socat Ubuntu apt-get install socat MacOS brew install socat 以MacOS安装为例,安装日志如下所示: liumiaocn:~ liumiao$ brew install socat Updating Homebrew... ^C ==> Downloading https://homebrew.bintray.com/bottles/socat-1.7.3.3_1.catalina

aws cli: ERROR:root:code for hash md5 was not found

一曲冷凌霜 提交于 2020-02-29 20:27:46
问题 When trying to run the AWS CLI, I am getting this error: aws ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError(

安装 Python3且与系统 Python2共存

亡梦爱人 提交于 2020-02-29 11:48:38
Mac OSX本身系统自带Python2.7,但 不建议直接使用、删除和更改,因为可能有些程序是需要依赖系统自带的python 2.*,盲目修改后可能会导致系统产生未知错误。 所以建议在 不修改系统的python条件下 搭建Python双版本环境。 Mac OSX在系统自带的python之外,可以 安装Python2.7和Python3.5/3.6版本 ,并且双版本兼容。 安装步骤参照: MAC OSX 正確地同時安裝 PYTHON 2.7 和 PYTHON3 【步骤也同步粘贴到了 本文下方,防止原文链接失效】 安装步骤 主要就这几个步骤而已,不会太困难的(或许有些你本来就装好了) Step 1 安装Xcode Step 2 安装套件管理工具Homebrew Step 3 安装Python Step 4 设定路径$PATH(不跟系统Python 打架) Step 5 完成啰!确认安装结果~ Step 1 安装Xcode 可以到App Store搜寻Xcode并安装安装好了之后就把Xcode打开~第一次开启的时候会需要同意他的License Agreement之类的东西。然后到terminal输入来安装Xcode command line tool: xcode-select--install 安装Xcode 就到此结束啰,要进入下一个步骤了! Step 2安装套件管理工具:

Problems installing applesimutils using Homebrew

北城以北 提交于 2020-02-29 00:01:42
问题 When trying to run the following commands: brew tap wix/brew brew install applesimutils my homebrew fails with the following: Warning: Some installed formulae are not readable: applesimutils: /usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:4: syntax error, unexpected <<, expecting keyword_end <<<<<<< HEAD ^ /usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:17: syntax error, unexpected ===, expecting keyword_end ======= ^ /usr/local/Homebrew/Library/Taps

No php.ini with brew

点点圈 提交于 2020-02-28 00:02:08
问题 I installed PHP7 with brew and it said: The php.ini file can be found in: /usr/local/etc/php/7.0/php.ini but I don't see anything there. So I confirmed it with php-fpm -i : Configuration File (php.ini) Path => /usr/local/etc/php/7.0 Loaded Configuration File => (none) Scan this dir for additional .ini files => /usr/local/etc/php/7.0/conf.d I think for this reason I'm unable to run PHP scripts, how do I fix it? 回答1: I have the same issue. Someone has already created an issue for this: https:/

mac使用brew命令安装java8sdk提示Cask 'java8' is unavailable的解决方案

て烟熏妆下的殇ゞ 提交于 2020-02-27 17:46:24
之前在mac上安装java8sdk的时候,使用的命令为: brew cask install homebrew/cask-versions/java8 今天使用同样的命令在mac上安装java8sdk,去提示发生如下错误: Error: Cask 'java8' is unavailable: '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/java8.rb' does not exist. 原因是brew安装java8sdk的命令发生了变化。使用如下命令,即可正确安装: brew cask install homebrew/cask-versions/adoptopenjdk8 参考文档: https://stackoverflow.com/questions/55834845/unable-to-install-java8-with-homebrew 来源: CSDN 作者: 爱思考的实践者 链接: https://blog.csdn.net/chinawangfei/article/details/104536313