homebrew

How can I Enable Webp support in php GD library in MAC

落花浮王杯 提交于 2020-02-24 13:59:07
问题 I have installed PHP PHP 7.2.0beta3 using homebrew. The phpinfo shows that the webmp support is enabled, But when i try to convert an image using a wrapper class it shows this error: Uncaught Error: Call to undefined function imagewebp() in /Users/rakibtg/Projects/PHP-ImageToWebp/ImageToWebp.php:37 Stack trace ... How I can enable webp support as well in macOS using homebrew php installed environment? 回答1: Try the following: brew reinstall php72 --with-webp Or, failing that, try: brew rm

关于homebrew使用时遇到的问题: Error: Could not symlink bin/gdb/usr/local/bin is not writable.

瘦欲@ 提交于 2020-02-22 23:37:58
# 关于homebrew使用时遇到的问题: Error: Could not symlink bin/gdb/usr/local/bin is not writable. 这是我在给我的Mac电脑安装GDB的时候遇到的问题: 我的Mac使用homebrew管理,于是我使用 brew install gdb 命令直接安装gdb,结果如下: 我在 stackoverflow 找到了发生的类似情况,经过阅读判断,找到了一下两种解决办法: 如图,直接输入命令: 命令内容: sudo chown -R `whoami`:admin /usr/local/bin 如图,为了谨慎起见,使用 homebrew doctor 进行检测,根据其反馈来进行操作: 我认为应该使用第二中方法比较好,于是我在终端输入 homebrew doctor ,稍作等待得到检测结果: 如划红线部分所示,与我遇到的问题相符合,运行其解决方案: sudo chown -R $(whoami) /usr/local/bin 在此时再link一下我的GDB: brew link gdb 结果如下: Already linked: /usr/local/Cellar/gdb/8.0.1 再测试一下GDB: gdb 结果如下: 成功. 那么问题的原因是什么呢? 问题出现在我之前安装OpenSSL时使用了 sudo make

记录一下在Mac安装nginx

你说的曾经没有我的故事 提交于 2020-02-22 13:53:01
安装之前可以看一看自己的机器上是否已安装,在命令行输入ps -ef | grep nginx,出现: 0 21608 1 0 3:27PM ?? 0:00.00 nginx: master process nginx -2 21609 21608 0 3:27PM ?? 0:00.00 nginx: worker process 501 21611 13581 0 3:28PM ttys001 0:00.00 grep nginx 没装的话就只有最后一行了 先安装brew,运行 brew -v 检查, 安装好了的话会有类似显示: Homebrew 2.2.6 Homebrew/homebrew-core (git revision 6bc24; last commit 2020-02-20) 此时我的机器上还什么都没有,网上找了下安装过程: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) brew install nginx 不过不幸的是ruby这行运行就报错了: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation 百度到了解决方法(摘自 CSDN博主

Can't update Python from 3.6 to 3.7 in MacOS

谁说胖子不能爱 提交于 2020-02-22 07:01:00
问题 I have tried several commands to update python 3.6 to python 3.7 in homebrew on MacOS. I have tried (as administrator user): brew update This claimed to install python 3.7 brew upgrade brew link python3 brew link --overwrite python3 brew unlink python && brew link python brew switch python 3.7.0 brew switch python 3.7.5 Cleaning /usr/local/Cellar/python/3.7.5 24 links created for /usr/local/Cellar/python/3.7.5 After all those attempts, I still get this: python3 --version Python 3.6.5 Can

Can't update Python from 3.6 to 3.7 in MacOS

 ̄綄美尐妖づ 提交于 2020-02-22 07:00:31
问题 I have tried several commands to update python 3.6 to python 3.7 in homebrew on MacOS. I have tried (as administrator user): brew update This claimed to install python 3.7 brew upgrade brew link python3 brew link --overwrite python3 brew unlink python && brew link python brew switch python 3.7.0 brew switch python 3.7.5 Cleaning /usr/local/Cellar/python/3.7.5 24 links created for /usr/local/Cellar/python/3.7.5 After all those attempts, I still get this: python3 --version Python 3.6.5 Can

Homebrew介绍和使用

…衆ロ難τιáo~ 提交于 2020-02-22 00:52:04
Homebrew介绍和使用 一、Homebrew是什么 Homebrew Homebrew是一款Mac OS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷。 援引官方的一句话:又提示缺少套件啦?别担心,Homebrew 随时守候。Homebrew —— OS X 不可或缺的套件管理器。 二、Homebrew安装 要求 Intel CPU OS X 10.9 or higher Xcode命令行工具 $ xcode-select --install 支持shell (sh或者bash) 安装和卸载 安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )" 卸载 $ cd brew --prefix $ rm -rf Cellar $ brew prune $ rm git ls-files $ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions $ rm -rf .git $ rm -rf ~/Library/Caches

Mac 配置 React Native 环境

那年仲夏 提交于 2020-02-17 07:31:47
OSX系统,这里假定你是iOS开发人员 Homebrew 是需要的,只有安装了Homebrew才能继续安装watchman和flow 安装 Node.js 4.0 或者更新的版本。 使用 Homebrew 来安装 nvm 或者参考 它的安装指南 。接着运行 nvm install node && nvm alias default node , 它可以让您安装最新版本的 Node.js 并设置您的终端,所以你可以通过键入 node 来运行它。使用 Nvm 可以让您安装多个版本的 Node.js 并且在它们之间轻松切换。 brew 安装 watchman 。我们推荐您安装 watchman , 否则您可能在点击一个节点文件的时候出现错误。 brew 安装 flow 。如果您想使用 flow .   *建议定期运行 brew update && brew upgrade 来使您的应用程序保持最新状态。 以上是极客学院wiki对官网的翻译: React Native 中文文档 - 极客学院 自己采取方法:首先安装 Homebrew ,然后安装 Cakebrew ,在Cakebrew中安装想要安装的Formula,具体如图: 安装完成后打开终端Terminal,这时候使用官方Demo命令: $ npm install -g react-native-cli 会提示 提示我们需要管理员权限

macOS下通过adb安装apk到android手机

岁酱吖の 提交于 2020-02-16 21:29:39
homebrew是macOS的一个包管理工具 1、安装homebrew ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” 2、安装adb brew cask install android-platform-tools 3、运行adb adb devices 指令安装apk到android手机 (1)手机连接usb,并打开USB调试 (2)下载apk到mac上 (3)终端安装 安装指令如下: 首次安装:adb install xxx/xxx/xxx(apk路径)【拖动apk至终端即可获取apk路径】 覆盖安装:adb install -r xxx/xxx/xxx(apk路径) 参考 https://www.jianshu.com/p/69ba21b2996c https://www.cnblogs.com/mini-monkey/p/11556506.html 来源: CSDN 作者: weixin_g632637774 链接: https://blog.csdn.net/glw0223/article/details/104343462

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443

泄露秘密 提交于 2020-02-16 18:35:23
安装nvm的时候, ➜ ~ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash 错误提示 curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443 输入命令,移除代理 git config --global --unset http.proxy 在安装就好了 然后本根没有好,更换brew的源 找到mac的Homebrew目录,我的是/usr/local/Homebrew目录 git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update    curl: (35) LibreSSL SSL_connect: SSL

Mac下利用brew安装Intellij IDEA

大城市里の小女人 提交于 2020-02-16 09:41:08
最近在Mac下搭建开发环境,因为Eclipse在使用上总感觉不如Intellij发展的好,正好趁机学习一下,因为需要激活IDEA才能使用,所以需要下载license server 首先安装一下Brew,Homebrew,Homebrew简称brew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,可以说Homebrew就是mac下的apt-get、yum神器 Homebrew安装 Homebrew的安装非常简单,打开终端复制、粘贴以下命令运行 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装Brew后运行安装upx对下载的LicenseServer进行的执行程序进行脱壳 /*--> */ /*--> */ IntelliJIDEALicenseServer_darwin_amd64 brew install upx 运行 upx -d IntelliJIDEALicenseServer_darwin_amd64 脱壳后文件会自动覆盖原文件,此时再运行 ./IntelliJIDEALicenseServer_darwin_amd64 & 就可以启动licenseserver,然后安装官网下载的Intellij