homebrew

Adding IMAP to PHP 7.2 on OSX

此生再无相见时 提交于 2019-12-05 03:45:20
I'm using PHP 7.2 on OS X El Capitan, installed using Homebrew (of course). Now I'd like to use some IMAP functions from PHP's IMAP extension, but no matter what I search for, I can't find a way to add the extension on OSX. Some things I've tried... I have, of course, tried the most commonly recommended approach: $ brew reinstall php --with-imap Yet this fails, returning: Warning: php: this formula has no --with-imap option so it will be ignored! Another method, which I found mentioned in passing, also fails: $ brew install php72-imap Error: No available formula with the name "php72-imap" ==>

openssl/ssl.h not found but installed with homebrew

 ̄綄美尐妖づ 提交于 2019-12-05 03:00:44
I am working on a C++ project on my Mac running El Capitan and I get this error even after installing openssl with Homebrew: g++ -Wall -g -std=c++11 -I../libSocket/src -I../libData/src -c src/fsslhandler.cpp -o obj/fsslhandler.o In file included from src/fsslhandler.cpp:1: In file included from src/fsslhandler.h:8: ../libSocket/src/sslsocket.h:6:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^ 1 error generated. make: *** [obj/fsslhandler.o] Error 1 After searching for a solution I found one which does not work : brew link openssl --force In order to make it work, I

Mac OS X: Installed and linked gcc 6.2 with Homebrew, but gcc --version still says 4.9.2

耗尽温柔 提交于 2019-12-05 02:18:55
问题 On OS X 10.11.6, I installed gcc 6.2.0 using homebrew. It lives over in usr/local/Cellar/gcc/6.2.0/bin. After getting it to link (it didn't do this automagically), I cd there and try the solution from this other thread to create an alias ln -s gcc-6 gcc then gcc --version gives me cc (GCC) 4.9.2 20141029 (prerelease) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR

Git cloning error: 'fatal: multiple updates for … ref not allowed'

我的梦境 提交于 2019-12-05 01:41:25
I'm getting an error when trying to git clone a repository: git clone https://github.com/laradock/laradock.git Cloning into 'laradock'... remote: Enumerating objects: 8606, done. remote: Total 8606 (delta 0), reused 0 (delta 0), pack-reused 8606 Receiving objects: 100% (8606/8606), 8.09 MiB | 6.92 MiB/s, done. Resolving deltas: 100% (4551/4551), done. fatal: multiple updates for ref 'refs/remotes/origin/LaraDock-ToolBox' not allowed This is happening for any repo I try to clone. I am running git version 2.21.0 installed via homebrew . Has anyone else encoutered this issue? Not really sure

MacOS: How to downgrade homebrew Python?

跟風遠走 提交于 2019-12-05 01:09:09
I'm running MacOS Sierra 10.12.4 and I've realized that homebrew python was upgraded to version 2.7.13. How can I switch back to 2.7.10? First, it's generally considered bad practice to rely on system python for user land code if you can avoid it. You need to assume that system utilities require a specific version of system python, and your user land code may then be locked to that python version forever, which is not wise (unless you're writing system utilities, in which case just use /bin/python, but then you wouldn't be asking this question...). Secondly, I am unclear why you need 2.7.10

MacOS下安装MongoDB数据库

杀马特。学长 韩版系。学妹 提交于 2019-12-05 00:45:34
官方链接: Install MongoDB Community Edition on macOS 推荐大家使用 Homebrew 安装 ##1.更新 Homebrew’s 包版本 brew update 2.安装MongoDB brew install mongodb 休息片刻,等他安装完就好了 默认安装在/usr/local/Cellar/mongodb/4.0.4_1(我的版本)目录下 安装好了,还需要配置一下,否则是无法正常启动服务的 ##3.配置mongodb ####a.创建一个db目录,用于mongodb写数据 mkdir -p /data/db 如果出现 permission denied ,加上 sudo 命令: sudo mkdir -p /data/db ####b.给 /data/db 文件夹赋予权限 sudo chown id -u /data/db 如果出现 "illegal user name" 的错误提示,这时我们可以查看当前的 username 并赋予权限: $ whoami username $ sudo chown username /data/db ####c.配置mongodb环境变量 1.打开.zshrc 文件 vim ~/.zshrc 添加mongodb的安装目标到path中 export PATH=/usr/local/Cellar

Homebrew in OS X 10.9.2: Error: SHA256 mismatch

喜欢而已 提交于 2019-12-05 00:23:58
问题 brew install php55 ==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror ######################################################################## 100.0% Error: SHA256 mismatch Expected: 60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96 Actual: 0d9438c2557db5809f4232148ca1567516e7ece9bf8726853ceac4a111cb8690 Archive: /Library/Caches/Homebrew/php55-5.5.11 To retry an incomplete download, remove the file above. I tried brew cleanup && brew update but not

Error message for virtualenvwrapper on OS X Lion

拜拜、爱过 提交于 2019-12-04 23:36:51
I've used homebrew to install python on a new Mac Lion installation, and have been trying to install virtualenv and virtualenvwrapper with pip, but when I start a new terminal session, I get this traceback: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.hook_loader virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

Managing multiple Python versions on OSX

孤者浪人 提交于 2019-12-04 21:59:06
What's the best way to manage multiple Python installations (long-term) if I've already installed Python 3 via brew? In the past Python versions were installed here, there, and everywhere, because I used different tools to install various updates. As you can imagine, this eventually became a problem. I once was in a situation where a package used in one of my projects only worked with Python 3.4, but I had recently updated to 3.6. My code no longer ran, and I had to scour the system for Python 3.4 to actually fire up the project. It was a huge PITA. I recently wiped my computer and would like

直播技术总结(一)流媒体服务器搭建,进行推流

喜你入骨 提交于 2019-12-04 21:20:20
转载请把头部出处链接和尾部二维码一起转载,本文出自逆流的鱼yuiop: http://blog.csdn.net/hejjunlin/article/details/54425531 前言:直播技术,近年来,相当火,先且不说Codec部分,那它到底复杂么? 服务端推流,客户端进行拉流,两者结合,变成直播,应该说如何优化直播的实时性中的问题,才是复杂部分,如网络原因,如视频卡顿等。今天介绍直播技术总结中流媒体服务器搭建,进行推流,用Mac搭建nginx+rtmp服务器。 简介 nginx是非常优秀的开源服务器,用它来做hls或者rtmp流媒体服务器是非常不错的选择。 步骤安装 1、安装Homebrow Homebrew简称brew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,可以说Homebrew就是mac下的apt-get、yum神器 ,因为Mac 本身也是基于unix内核的。 /usr/bin/ruby -e " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) " 安装Homebrow中 安装Homebrow好了,如下: 2、安装Nginx服务器 增加对 nginx 的扩展;也就是从github上下载,home