homebrew

No module named yaml (brew broke my python, again)

£可爱£侵袭症+ 提交于 2020-01-11 12:00:31
问题 homebrew has again broken python for about third time. Im now having issues getting dependencies to work again. At this point I am unable to install yaml . Collecting yaml Could not find a version that satisfies the requirement yaml (from versions: ) No matching distribution found for yaml Some other suggestions have said to try pyaml , which again simply tries to import yaml and fails Traceback (most recent call last): File "script.py", line 13, in <module> import pyaml File "/~/virtualenv

Can I use Homebrew to install the latest AWS EB CLI?

微笑、不失礼 提交于 2020-01-11 09:18:14
问题 Homebrew appears to install an older version (unsupported) of the AWS EB tools. Is there a way to get Homebrew to install the current ones? (I'm new to Homebrew.) 回答1: Homebrew relies on volunteers to keep the formulas updated. If you notice an outdated formula, please submit a bug or pull request. 回答2: I can confirm that brew install awscli works well on macOS Sierra. 来源: https://stackoverflow.com/questions/27747455/can-i-use-homebrew-to-install-the-latest-aws-eb-cli

Mac使用brew安装mysql进行修改密码

六眼飞鱼酱① 提交于 2020-01-11 06:40:01
一、使用homebrew安装mysql服务 如果已经存在ruby,直接执行以下命令进行Homebrew安装。若没有,详细步骤参见 Homebrew 官网。 $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor 确认brew在正常工作。 brew update 更新包。 brew install mysql 安装mysql。 二、若安装时没有设置密码登录默认是免密登录的需要进行修改了密码 注:本人找了大量的教程都没有成功手动实用Navicat修改还不行,因为密码设置是进行加密的所以 1、安装好mysql后查看mysql版本信息,是否正常显示,以判断mysql是否安装成功。 如下图 打开终端输入 mysql -version 正常显示版本信息表示安装成功 我安装的8.0: 2,输入mysql -uroot -p 回车后会出现enter password:如果在安装mysql的过程中有设置密码,即输入密码, 否则直接按回车键。会出现welcome to the .......表示登录mysql数据库成功,如下图: 3,进入mysql数据库后可进行密码修改操作,在终端命令行 输入:a> ALTER USER 'root'

Library not loaded error (libidn.11.dylib) when trying to install Homebrew

蓝咒 提交于 2020-01-11 06:32:05
问题 Trying to install Homebrew on Lion. When I do: /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" I get this error: dyld: Library not loaded: /opt/local/lib/libidn.11.dylib Referenced from: /usr/local/bin/curl Reason: image not found I had MacPorts installed previously but uninstalled it and completely removed /opt/local I also removed /opt/local from my PATH Any idea why this error is happening? 回答1: You built and installed curl into /usr/local/bin , but it linked against

Change php.ini location

对着背影说爱祢 提交于 2020-01-10 13:16:34
问题 Is it possible to change the location of php.ini to be used by Apache? When I did php -i | grep 'Configuration File' , the result is: Path => /usr/local/etc Loaded Configuration File => /usr/local/etc/php.ini But the result of phpinfo() is Configuration File (php.ini) Path : /etc I can copy over php.ini from /usr/local/etc/ to /etc/ , but is it possible to change the php.ini folder? I installed PHP using homebrew and I am using OS X Snow Leopard. 回答1: PHP uses different .ini files when

开发函数计算的正确姿势——使用交互模式安装依赖

独自空忆成欢 提交于 2020-01-10 10:49:50
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 前言 首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute) : 函数计算 是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。 Fun : Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API 网关、日志服务等资源。它通过一个资源配置文件(template.yml),协助您进行开发、构建、部署操作。Fun 的更多文档 参考 。 备注: 本文介绍的技巧需要 Fun 版本大于等于 3.0.0-beta.1 。 依赖工具 本项目是在 MacOS 下开发的,涉及到的工具是平台无关的,对于 Linux 和 Windows 桌面系统应该也同样适用。在开始本例之前请确保如下工具已经正确的安装,更新到最新版本,并进行正确的配置。 Docker Fun Fun 和 Fcli 工具依赖于 docker 来模拟本地环境。 对于 MacOS 用户可以使用 homebrew 进行安装: brew cask install docker brew tap vangie/formula brew

“Unlinked kegs in your Cellar”. How do I remove them?

偶尔善良 提交于 2020-01-10 08:19:27
问题 After installing and uninstalling some programs through brew and brew cask , now I get brew doctor saying "unlinked kegs in your Cellar". It suggests to link them, to avoid build trouble with later brews, but instead I'd rather delete them, as they're leftovers from brew programs or formulas that I don't use anymore. How or where do I remove these? (I don't even know what a keg, or the Cellar, is) 回答1: Run: brew remove packageName for each unlinked package. 回答2: 2018 Update $ brew link --help

MAC OS系统替换homebrew使用阿里云或中科大的镜像源

会有一股神秘感。 提交于 2020-01-09 23:38:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 阿里云镜像 # 替换brew.git: cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git: cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git # 应用生效 brew update -v # 替换homebrew-bottles(最好保存到配置文件): export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles 中科大镜像 cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask" git remote

How to get rid of STRICT SQL mode in MySQL

≯℡__Kan透↙ 提交于 2020-01-09 19:21:27
问题 This is a follow up to this question MYSQL incorrect DATETIME format How to get rid of STRICT_TRANS_TABLES once and for all? mysql --help reports the following configs: Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf $ ls /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf ls: /Users/pain/.my.cnf: No such file or directory ls: /etc/mysql/my.cnf: No such file or directory ls: /usr/local/etc/my.cnf: No

How to get rid of STRICT SQL mode in MySQL

巧了我就是萌 提交于 2020-01-09 19:20:45
问题 This is a follow up to this question MYSQL incorrect DATETIME format How to get rid of STRICT_TRANS_TABLES once and for all? mysql --help reports the following configs: Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf $ ls /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf ls: /Users/pain/.my.cnf: No such file or directory ls: /etc/mysql/my.cnf: No such file or directory ls: /usr/local/etc/my.cnf: No