homebrew

Cache Brew builds with travis ci

99封情书 提交于 2019-12-20 10:43:56
问题 I have a Travis CI osx build with a brew dependency that has to be built from source. I know that Travis has the cache feature, but it doesn't have any documentation on how to cache brew builds or outputs. Any idea on how to cache a brew package in travis? 回答1: There are 3 separate, loosely related problems here: Cache downloaded bottles Cache locally-built bottles Cache Homebrew metadata You don't necessarily need all three, so follow whichever sections fit your needs. Cache downloaded

pip3: command not found

北城余情 提交于 2019-12-20 10:33:32
问题 I want to install Tensorflow following this instructions. https://www.tensorflow.org/versions/r0.12/get_started/os_setup#pip_installation. But when I try this code on terminal, it returns an error. $ sudo pip3 install --upgrade $TF_BINARY_URL sudo: pip3: command not found So I installed Homebrew and tried to uninstall and reinstall pip-3, but didn't work. MakotonoMacBook-ea:~ makotomiyazaki$ brew uninstall python3-pip Error: No such keg: /usr/local/Cellar/python3-pip MakotonoMacBook-ea:~

Homebrew: Could not symlink, /usr/local/share/man/man7 is not writable

末鹿安然 提交于 2019-12-20 10:25:45
问题 I'm installing LightGBM on OSX, following the installation guide. While installing cmake, Homebrew gives such warning message: Warning: cmake-3.8.1 already installed, it's just not linked. Then I try: $brew link cmake it gives: Linking /usr/local/Cellar/cmake/3.8.1... Error: Could not symlink share/man/man7/cmake-buildsystem.7 /usr/local/share/man/man7 is not writable. 回答1: The proposition of Mark Setchell to use sudo chown -R $(whoami):admin /usr/local/share/man is right. According to the

Python, Brew, and MySQLdb

半世苍凉 提交于 2019-12-20 09:55:40
问题 I have been running python from a brew install. I went to install the mysql_python egg with setup tools (standard install according to mysql_python instructions) and it installed to /usr/local/lib/python2.7/site-packages/. The dependencies processed, etc. Then I went to run python console. I can import other things (e.g. import django; print django.VERSION works) but when I import MySQLdb, I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "

Problems installing Git with Homebrew [duplicate]

蹲街弑〆低调 提交于 2019-12-20 09:30:34
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Problems Upgrading Git with Homebrew I'm very close here -- I think I just need to create a symbolic link, but I'm not sure how (and why this is need). I'm on OSX Lion btw. I've downloaded and installed git using this command. brew install git the response is git-1.7.12 already installed, it's just not linked How do I do this? when I run which git >/usr/bin/git when I run git --version >git version 1.7.4.4 My

Cannot install brew on Mojave with Xcode 10

巧了我就是萌 提交于 2019-12-20 08:53:52
问题 I can not install any brew packages on my mac with the following error info. Installed on my Mac: macOS 10.14 Beta (18A293u) Xcode 9.3 (9E145) Xcode 10.0 beta (10L176w) Type in brew install xxx . The output is: Error: Your Xcode (9.3) is too outdated. Please update to Xcode 10.0 (or delete it). Xcode can be updated from https://developer.apple.com/download/more/ Error: Xcode alone is not sufficient on Mojave. Install the Command Line Tools: xcode-select --install But as I type in xcode-select

RVM equivalent for PHP?

柔情痞子 提交于 2019-12-20 08:21:39
问题 I can't seem to find a way to switch versions of PHP quickly. Is there something equivalent to ruby version manager for php? I need to switch between 5.3 and 5.2 on OS X. 回答1: For PHP alternatives to RVM and rbenv, you have phpbrew, phpenv and php-version. Please be aware that I am the author of php-version so of course I prefer it as I wrote it to scratch my own itch (I wanted something minimal with command completion); however, phpenv is quite good as well. You would do well to use either.

brew update failure while executing git checkout

萝らか妹 提交于 2019-12-20 08:14:47
问题 After an interrupted brew update because of a network issue, Homebrew appears to be broken: $ brew update error: pathspec 'master' did not match any file(s) known to git. Error: Failure while executing: git checkout -q master Looking at the /usr/local Git repository, there's no remote repository. $ cd `brew --prefix` $ git remote -v $ 回答1: Fixed with the following commands: $ cd `brew --prefix` $ git remote add origin https://github.com/Homebrew/homebrew.git $ git fetch origin $ git reset -

brew update failure while executing git checkout

喜夏-厌秋 提交于 2019-12-20 08:14:07
问题 After an interrupted brew update because of a network issue, Homebrew appears to be broken: $ brew update error: pathspec 'master' did not match any file(s) known to git. Error: Failure while executing: git checkout -q master Looking at the /usr/local Git repository, there's no remote repository. $ cd `brew --prefix` $ git remote -v $ 回答1: Fixed with the following commands: $ cd `brew --prefix` $ git remote add origin https://github.com/Homebrew/homebrew.git $ git fetch origin $ git reset -

Macos Hadoop 3.1.1 - Failed to start namenode. java.io.IOException: Could not parse line: “Filesystem 1024-blocks Used Available Capacity Mounted on”

我的梦境 提交于 2019-12-20 07:10:48
问题 I install hadoop 3.1.1 by homebrew on mac os. core-site.xml config as following: <configuration> <property> <name>hadoop.tmp.dir</name> <value>file:///Users/yishuihanxiao/Personal_Home/ws/DB_Data/hadoop/hdfs/tmp</value> <description>A base for other temporary directories.</description> </property> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> </configuration> hdfs-site.xml as following: <configuration> <property> <name>dfs.replication</name> <value>1