homebrew

Can a Homebrew formula accept options with values for `install`, like `--foo=bar`?

人走茶凉 提交于 2019-12-21 20:33:55
问题 I know that a Homebrew formula can check Boolean options ( --with-foo , --without-bar ) passed to brew install . Can brew install accept options with values, like --foo=/path/to/bar ? 回答1: It turns out you can use ARGV.value . e.g. option "with-bin-path=", "Path for binary path" # ... binpath = ARGV.value("with-bin-path") See https://github.com/Homebrew/brew/issues/1803 来源: https://stackoverflow.com/questions/22564690/can-a-homebrew-formula-accept-options-with-values-for-install-like-foo-bar

Brew downgrade formula to previous version (opencv3/3.0.0) on mac el capitan

北城以北 提交于 2019-12-21 17:50:57
问题 I am on mac and used brew to install opencv3. I was having opencv3/3.0.0 . Today, I updated it and got version 3.1.0_1. However, this update is breaking everything and when I try to use VideoCapture to read frames and use waitKey function it breaks by causing following: 2016-02-26 23:25:16.846 tracking[99869:1026824] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x7fab5a601240' So,

'openssl/conf.h' file not found error on MacOS Sierra

左心房为你撑大大i 提交于 2019-12-21 12:39:48
问题 I am working on a C++ project which uses boost asio. Trying to build the libraries that use Asia, I am getting the following error /usr/local/include/boost/asio/ssl/detail/openssl_types.hpp:19:10: fatal error: 'openssl/conf.h' file not found #include <openssl/conf.h> Looking of solutions here & here, I tried brew install openssl brew link openssl --force xcode-select --install But didn't help. Doing the following also doesn't seem to work export C_INCLUDE_PATH=/usr/local/include export CPLUS

Get cmake and home-brew to work together

▼魔方 西西 提交于 2019-12-21 12:18:16
问题 When I install libraries with homebrew cmake can't seem to find them. Is there a simple way to fix this for an arbitrary library installed with brew. 回答1: Default By default brew's libraries installed to /usr/local/lib folder: > ls /usr/local/lib/liblzma.dylib /usr/local/lib/liblzma.dylib@ Check that this path exists in CMAKE_SYSTEM_PREFIX_PATH variable. In this case find is trivial: message("system: ${CMAKE_SYSTEM_PREFIX_PATH}") find_library(LZMA_LIBRARY lzma) message("lzma: ${LZMA_LIBRARY}"

Symbol not found: _sqlite3_enable_load_extension - sqlite installed via homebrew

早过忘川 提交于 2019-12-21 11:31:34
问题 Symptom: In my Django app, when I call from pysqlite2._sqlite import * I get the traceback Symbol not found: _sqlite3_enable_load_extension when Background: I've installed python using homebrew (python 2.7.13), which auto installed sqlite I am running macOS 10.12.3 with Command Line Tools macOS 10.12, Xcode 8.2.1 I've installed pysqlite using pip (pysqlite 2.8.3) I have tried brew uninstall sqlite and brew uninstall python and reinstalling Adding these to my .bash_profile export PATH="$(brew

HomeBrew Mac change Python Path

南笙酒味 提交于 2019-12-21 09:26:37
问题 I am trying to install PyQT and I used PyQT. Is has been installed using home brew. But When I try to import it, python can't. I get the following warning in Home brew. I am new to Mac and can't figure out how to change the python path. Any help would be great. For non-homebrew python (2.x), you need to amend your PYTHONPATH like so: export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH 回答1: You should edit ~/.bash_profile (create the file if it does not exist) to set the

How to install Python 3.3 (not 3.4) on OS X with Homebrew?

跟風遠走 提交于 2019-12-21 09:15:14
问题 If you install python3 through Homebrew it installs the latest version by default, which I did. But I want 3.3 instead of 3.4. How can I replace it with 3.3 specifically using Homebrew? I want to try Django with Python 3 but I'm just learning Django so I want to use the latest stable version, currently 1.6, which is compatible with up to Python 3.3. I want to use it with Python 3, so it has to be 3.3. Django 1.7 is Py3.4 compatible but I don't want to mess with that 'til it's stable... on OS

brew install - permission denied (after chown -R `whoami` )

佐手、 提交于 2019-12-21 08:59:08
问题 $ brew install fontconfig Error: Permission denied - /Library/Caches/Homebrew/Formula/fontconfig.brewing $ sudo chown -R `whoami` /usr/local $ brew install fontconfig Error: Permission denied - /Library/Caches/Homebrew/Formula/fontconfig.brewing Not sure where to go from here. Ran brew doctor to fix some existing issues, but can't seem to get past this. 回答1: trojanfoe 's answer helped. There was a permission issue with the Library/Logs folder that I wasn't assigned to, but somehow the Library

Still getting “Unable to load realm info from SCDynamicStore” after bug fix

混江龙づ霸主 提交于 2019-12-21 07:41:05
问题 I installed Hadoop and Pig using brew install hadoop and brew install pig . I read here that you will to get Unable to load realm info from SCDynamicStore error message unless you add: export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk" to your hadoop-env.sh file, which I have. However, when I run hadoop namenode -format , I still see: java[1548:1703] Unable to load realm info from SCDynamicStore amongst the outputs. Anyone know why I

Homebrew on Mac Os 10.10 or 10.11 is not working

别等时光非礼了梦想. 提交于 2019-12-21 07:08:06
问题 After installed Homebrew, when I run any brew *** , I keep getting this error: Homebrew requires Leopard or higher. For Tiger support, see: https://github.com/mistydemeo/tigerbrew My Env: Mac OS 10.10(Yosemite) I checked the brew.rb source, it has: if MACOS and MACOS_VERSION < 10.5 abort <<-EOABORT.undent Homebrew requires Leopard or higher. For Tiger support, see: http://github.com/sceaga/homebrew/tree/tiger EOABORT end I have no idea why the Yosemite will trigger this version check. 回答1: