homebrew

How to Install boost via Homebrew?

梦想与她 提交于 2019-12-30 06:02:45
问题 Installing boost failed. ==> Exit Status: 1http://github.com/mxcl/homebrew/blob/master/Library/Formula/boost.rb#L69 ==> Environment HOMEBREW_VERSION: 0.8 HEAD: 97fa532a10613cd314f08b15b06a20b866919689 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_REPOSITORY: /usr/local HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew Hardware: dual-core 64-bit penryn OS X: 10.6.8 Kernel Architecture: i386 Ruby: 1.8.7-174 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework

How to Install boost via Homebrew?

旧时模样 提交于 2019-12-30 06:01:14
问题 Installing boost failed. ==> Exit Status: 1http://github.com/mxcl/homebrew/blob/master/Library/Formula/boost.rb#L69 ==> Environment HOMEBREW_VERSION: 0.8 HEAD: 97fa532a10613cd314f08b15b06a20b866919689 HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_REPOSITORY: /usr/local HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew Hardware: dual-core 64-bit penryn OS X: 10.6.8 Kernel Architecture: i386 Ruby: 1.8.7-174 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework

Using pkg-config with Qt Creator/qmake on Mac OSX

你说的曾经没有我的故事 提交于 2019-12-29 08:32:19
问题 pkg-config doesn't come stantdard with Mac OSX (10.8.4). For my Qt project I wanted to use pkg-config to link in protocol-buffer, so that it would be portable. The very point of choosing Qt was to have a portable app in the first place. However, qmake would not let me use pkg-config. Linking libraries to a QT project using pkg-config output gives a simple recipe that should work. But it doesn't with CONFIG += link_pkgconfig PKGCONFIG += protobuf I'm getting the error Project ERROR: Package

Using pkg-config with Qt Creator/qmake on Mac OSX

馋奶兔 提交于 2019-12-29 08:31:11
问题 pkg-config doesn't come stantdard with Mac OSX (10.8.4). For my Qt project I wanted to use pkg-config to link in protocol-buffer, so that it would be portable. The very point of choosing Qt was to have a portable app in the first place. However, qmake would not let me use pkg-config. Linking libraries to a QT project using pkg-config output gives a simple recipe that should work. But it doesn't with CONFIG += link_pkgconfig PKGCONFIG += protobuf I'm getting the error Project ERROR: Package

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

被刻印的时光 ゝ 提交于 2019-12-29 08:27:19
问题 I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello but then got the following message back in the terminal: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/bin/vapor Reason: image not found zsh: abort vapor new Hello I tried some approaches to fix this like uninstalling and reinstalling openssl via brew but that didn't work . Also tried something I found in the internet but nothing

Sed directory not found when running R with -e flag

房东的猫 提交于 2019-12-29 07:34:07
问题 When I try to run the following command: R --slave --no-save --no-restore -e "print('foo')" I get: /usr/local/bin/R: line 193: /usr/local/Library/ENV/4.3/sed: No such file or directory ERROR: option '-e' requires a non-empty argument Apparently brew recently moved the ENV folder to a new path (see here). I know I can easily symlink the new sed dir to fix the issue but I wanted to know if there is a better workaround / fix (and eventually if this will be fixed in the R source code). 回答1: This

macOS Sierra安装Apache2.4+PHP7.0+MySQL5.7.16

前提是你 提交于 2019-12-29 05:44:41
Mac系统上虽然自带PHP和Apache,但是有时不是我们想要的版本呢。今天我们就在 macOS Sierra(10.12.1) 上安装比较新的版本的PHP版本,也就是 PHP7.0+ 了。本篇博客我们安装的 Apache是2.4的版本 , MySQL5.7.16 。稍后会详细介绍这一过程。 一、安装前的准备 1.安装或更新Homebrew Homebrew 就不做过多赘述了,也不是在博客中第一次提到了,是Mac上不可或缺的包包管理器。下方截图中是我本地使用的brew的版本信息,当然是目前最新的版本。在安装上述相关内容之前,要确保你的brew是最新版本。 关于Mac下Homebrew的安装在此就不做过多赘述了,请自行Google 。 下方首先进行了 brew update 的更新操作,提示我当前的brew是最新的版本。我们可以通过 brew -v 来查看当前的brew版本。如果你对brew使用的不熟的话,可以使用 brew -h 来查看brew的相关命令操作。具体如下所示:    2.Xcode8.2 确保你的Xcode是最新版本,如果你的Xcode是8.2之前的版本的话,在你编译 PHP7.0+ 的时候会提示你“更新Xcode”版本,下方就是在Xcode8.1下编译PHP7.0时报的错误。    所以,要保证你的Xcode是当前最新的版本,下方就是我更新后的Xcode8.2版本。

Could not reliably determine the server's fully qualified domain name for MacBook

纵饮孤独 提交于 2019-12-29 05:22:07
问题 First time got a new MBP 2016. Trying to setup PHP,MySQL & Apache. Started Apache by using command sudo apachectl restart Then installed PHP by brew install php71 --with-httpd24 Also did following changes... # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # DirectoryIndex index.html index.php SetHandler application/x-httpd-php ServerName dev-server Also, updated the same in host file /etc/hosts/ But, whenever I'm trying to Stop/Restart my apache by

libpng version incompatibility in fresh installation of IPython

牧云@^-^@ 提交于 2019-12-29 03:38:06
问题 I used this guide to install the "scientific stack" for Python (OSX 10.9.2, brewed Python 2.7.6, IPython 2.0, matplotlib 1.3.1, libpng 1.6.10). Everything was looking good. However, trying to run a simple plot in IPython's notebook environment with --pylab=inline gives me this error: /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter: Could not create write

Mac安装homebrew

扶醉桌前 提交于 2019-12-28 17:27:32
参考: 链接1换源方法 链接2 最初原创换源1 https://my.oschina.net/shede333/blog/364468 链接3 链接4 链接5 仔细查看以上链接,大多问题都会解决。以下是自己的安装过程和经验。 1、 尝试使用官网安装方式 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 总是会报错(LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54等等),失败。 2、失败后,换源安装 2.1 首先终端输入: curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install 以上是将原网址内容导入到brew_install文件。 然后,在finder中用文本编辑器打开brew_install文件,替换 BREW_REPO = "https://github.com/Homebrew/brew".freeze 为其他源如: BREW_REPO="https://git.coding.net/homebrew/homebrew.git".freeze (本镜像源只镜像了