homebrew

Homebrew: list the packages installed from taps?

吃可爱长大的小学妹 提交于 2019-12-18 11:49:35
问题 Over time, I've installed a number of packages with Homebrew, mostly from the default repo of formulae (homebrew-core), but some from other locations via brew tap . Now I'm putting together some install scripts to make my dev environment more reproducible, and I'm trying to figure out which packages can be installed by a simple brew install and which require a brew tap beforehand. The ability to query brew has proved useful for figuring out which options I used for each package, but not for

Mountain Lion - LibXML & Nokogiri

不羁岁月 提交于 2019-12-18 10:53:07
问题 I've just updated to OS X Mountain Lion and I'm getting the following when working with rails and terminal. WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 I've had a look at other answers to a similar question, but they doesn't seem to stop the warning message from appearing. 回答1: Putting gem 'nokogiri' above gem 'pg' in my Gemfile fixed this for me. My Gemfile didn't have nokogiri in it, but it was a dependency that was in Gemfile.lock, so I put it

Ruby cannot load such file - active_support/core_ext/object/blank

泪湿孤枕 提交于 2019-12-18 10:21:42
问题 I was trying to run brew doctor but system popped up error of /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError) Searched online and another post suggested to just "gem install activesupport" but then I ran into error of: ERROR: Error installing activesupport: i18n requires Ruby version >= 2.3.0. I also tried to rvm install ruby-2.3.0 but the

SHA1 error when using brew install

邮差的信 提交于 2019-12-18 10:21:29
问题 More specifically, I was using homebrew to install MySQL, and I got this error: Error: SHA1 mismatch Expected: f218ed64ce6e7a5d3670acdd6a18e5ed95421d1f Got: 3a57f6f44186e0dba34ef8b8fb4a9047e9e5d8a3 Archive: /Users/rdp/Library/Caches/Homebrew/cmake-2.8.7.bottle.tar.gz (To retry an incomplete download, remove the file above.) 回答1: Everything worked after I ran brew update . 回答2: Incase the brew update fails, try the following cd `brew --prefix` git remote add origin https://github.com/Homebrew

How do I update Homebrew?

為{幸葍}努か 提交于 2019-12-18 10:14:43
问题 When I ran: brew update I got a message saying it initialized an empty repository in /usr/local/.git/ , then I got this error: 回答1: cd /usr/local git status Discard all the changes (unless you actually want to try to commit to Homebrew - you probably don't) git status til it's clean brew update 回答2: Alternatively you could update brew by installing it again. (Think I did this as El Capitan changed something) Note : this is a heavy handed approach that will remove all applications installed

homebrew - how to install older versions

醉酒当歌 提交于 2019-12-18 10:09:04
问题 I'm trying to install memcached with older versions (ex: 1.4.5) but I'm not sure how to do it. brew install memcached installs the latest. I also tried brew install memecached1.4.5 but it didn't work. 回答1: Usually, you can check if multiple versions are available and you can specify the version with @. e.g. brew install package@2.8 $ brew info memcached memcached: stable 1.4.24 High performance, distributed memory object caching system https://memcached.org/ Conflicts with: mysql-cluster

Keg-only homebrew formulas

杀马特。学长 韩版系。学妹 提交于 2019-12-18 10:04:45
问题 Today I installed the curl formula via homebrew , but after installing it (and re-sourcing the shell) i noticed that : % which curl /usr/bin/curl as a matter of fact, the output of brew install curl stated that it was a keg-only formula, and that since curl was already present in OS X, it didn't link it into Homebrew prefix, as that could cause unspecified problems. Then it proceeds stating that Generally there are no consequences of this for you I would like to know: What sorts of problems

How do I install imagemagick with homebrew?

自作多情 提交于 2019-12-18 09:55:20
问题 I'm trying to install Imagemagick on OSX Lion but something is not working as expected. -> brew install imagemagick /usr/local/git/bin/git ==> Cloning https://github.com/adamv/ImageMagick.git Cloning into /Users/klebershimabuku/Library/Caches/Homebrew/imagemagick--git... fatal: https://github.com/adamv/ImageMagick.git/info/refs not found: did you run git update-server-info on the server? Error: Failure while executing: git clone --depth 1 https://github.com/adamv/ImageMagick.git /Users/kleber

Installing Google Protocol Buffers on mac

别来无恙 提交于 2019-12-18 09:54:11
问题 I would like to install the older version of Google Protocol Buffers (protobuf-2.4.1) on mac using Terminal command line. I tried with brew install protobuf , but the latest version 2.5.0 has been installed. Is it possible to install the older version from terminal. Thanks 回答1: There are some issues with building protobuf 2.4.1 from source on a Mac. There is a patch that also has to be applied. All this is contained within the homebrew protobuf241 formula, so I would advise using it. To

Brew install docker does not include docker engine?

霸气de小男生 提交于 2019-12-18 09:54:09
问题 Trying to setup docker from brew, however the engine does not seem to be included in any of the any of the official formulas. brew install docker-machine docker-compose So these only installs the clients? Is there no keg with the engine/daemon? 回答1: Please try running brew install docker This will install the Docker engine, which will require Docker-Machine (+ VirtualBox) to run on the Mac. If you want to install the newer Docker for Mac, which does not require virtualbox, you can install