homebrew

Homebrew cask option not recognized?

瘦欲@ 提交于 2019-12-10 13:24:28
问题 I am following an online resource for installing two Mac utilities http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/ Here is the pertinent section: Install both Karabiner and Seil. (Here again, if you use Homebrew Cask, you can do this with $ brew cask install karabiner and $ brew cask install seil But the cask option is not recognized? 06:51:35/shared $brew cask install seil Error: Unknown command: cask Then, just for laughs I tried the command

Unable to install PHP 7 with Homebrew on macOS Sierra

情到浓时终转凉″ 提交于 2019-12-10 13:22:18
问题 I'm trying to setup Laravel's Valet which, as a dependency, requires PHP 7. When I try to install PHP 7 with Homebrew I get the following error: Configuring SAPI modules checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/sbin

Cannot compile any C++ programs; error: unknown type name 'uint8_t'

青春壹個敷衍的年華 提交于 2019-12-10 12:37:11
问题 EDIT2: The problem was NOT a simple typographical error . I made a typo in the logs below, which I corrected, but the problem was still there. EDIT: I mistakenly ran with gcc instead of g++, once, after attempting below. The problem was there before with g++ and it is there now. I am currently on a MacOS High Sierra box. I recently moved a lot of files from a MacBook Air to this machine, including what I assume were all of Xcode's junk. Now, when I try to compile a very simple C++ program:

Error importing gtk with python on OS X

*爱你&永不变心* 提交于 2019-12-10 11:58:57
问题 I've just installed pygtk through Homebrew(awesome tool) as well as its dependences (including gtk+); the thing is when I try to import gtk on the python interpreter it throws an ImportError, which don't happens when importing pygtk or any other module into the interpreter, I can't figure out what's wrong. :S 回答1: After clarification from the OP, the original answer does not describe his problem… although I think it's related, and it may help other people, so I will leave it. But first, the

Why is the Git version I install with Homebrew different from the version on the website?

霸气de小男生 提交于 2019-12-10 11:17:14
问题 When I installed Git with Homebrew it shows as version 1.8.5.2 but on the website the download is for 2.0.1. Why is Homebrew installing a different version of Git? 回答1: Make sure the pre-installed git path ( /usr/bin/git ) isn't before the one installed by brew ( /usr/local/bin/git ). Check if /usr/local/bin/git --version returns the expected version. Or /usr/local/git/bin/git --version . See more at: "Homebrew installation of git won't take precedence over system version (in /usr/bin/)" "How

ERROR watchman--no-pretty get-sockname when run npm start

微笑、不失礼 提交于 2019-12-10 10:37:28
问题 i know this error has been solved. I followed everything uninstall then reinstall. update and upgrade. run npm r -g watchman ... but all fail when try to run npm start I suspect because my LaunchAgents on macbook has been interrupted. this is what I get when run ls -ld ~/Library/LaunchAgents lrwxr-xr-x 1 infacq staff 46 Aug 16 11:03 /Users/infacq/Library/LaunchAgents -> /usr/local/opt/mysql/homebrew.mxcl.mysql.plist anyone experience this? 回答1: I think you need to: rm /Users/infacq/Library

Composer install fails with bus error: 10

风格不统一 提交于 2019-12-10 10:16:08
问题 I'm trying to install composer with: curl -sS https://getcomposer.org/installer | php This fails with the error message: Bus error: 10 I also tried php -r "readfile('https://getcomposer.org/installer');" | php which gives the same error. I'm on OSX 10.10.3 and PHP 5.6 installed with homebrew. Any ideas? 回答1: That was a nasty one. I actually checked all sorts of things until I discovered that xdebug forces all php scripts to stop in PhpStorm debugger. Disablling the debugger in PhpStorm

data directory “/usr/local/var/postgres” has wrong ownership

谁都会走 提交于 2019-12-10 10:12:56
问题 When I put postgres -D /usr/local/var/postgres in terminal, I get this back: FATAL: data directory "/usr/local/var/postgres" has wrong ownership HINT: The server must be started by the user that owns the data directory. How could I fix with that? Thanks~ 回答1: Check the what the owner is of that dir by doing ls -l /usr/local/var/ | grep postgres You should see something like -rw-r--r-- 1 postgresuser postgresuser 285659 Sep 1 18:05 postgres Assuming it's "postgresuser", then run your database

How can I install Elasticsearch 5.3.1 with homebrew

吃可爱长大的小学妹 提交于 2019-12-10 09:37:12
问题 I have previously install elasticsearch 5.3.1 on my Mac using homebrew. The latest elasticsearch on homebrew is now 5.5.0, so any new team members running the brew install would pick up that version. I noticed I have some index migration issue from elasticsearch 5.3.1 to 5.5.0, see Delete all elasticsearch indices directly without curl Since we will be using Amazon elasticsearch service with is on 5.3, can we lock onto a specific version of elasticsearch (say 5.3.1) when we homebrew install?

Homebrew recompile from edited source code

牧云@^-^@ 提交于 2019-12-10 08:48:23
问题 Is there a way to to recompile from an edited source code via homebrew? I did a change on the source user.hpp of Boost which I now want to recompile Boost with. I tried --build-from-source and --enable-bar but neither works, saying that it is already installed. The only way I can recompile is by reinstall but that simply overwrites the source code I changed. Any idea? 回答1: First option Download the archive, edit the files, and zip the archive as homebrew does (same name and format). If you