Skip to content

Instantly share code, notes, and snippets.

@hanxue
Created January 22, 2015 03:38
Show Gist options
  • Select an option

  • Save hanxue/539d56a8cb1d5441c92e to your computer and use it in GitHub Desktop.

Select an option

Save hanxue/539d56a8cb1d5441c92e to your computer and use it in GitHub Desktop.
Homebrew upgrade ruby with flags not working
$ brew upgrade ruby --with-libffi --with-gdbm --with-gmp --with-doc
==> Upgrading 1 outdated package, with result:
ruby 2.2.0
==> Upgrading ruby
==> Installing dependencies for ruby: libyaml, openssl
==> Installing ruby dependency: libyaml
==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
######################################################################## 100.0%
==> Downloading https://bitbucket.org/xi/libyaml/commits/2b9156756423e967cfd09a6
######################################################################## 100.0%
==> Patching
patching file src/scanner.c
==> ./configure --prefix=/usr/local/Cellar/libyaml/0.1.6_1
==> make install
🍺 /usr/local/Cellar/libyaml/0.1.6_1: 7 files, 584K, built in 20 seconds
==> Installing ruby dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0
######################################################################## 100.0%
==> Pouring openssl-1.0.1l.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
🍺 /usr/local/Cellar/openssl/1.0.1l: 431 files, 15M
==> Installing ruby
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/ruby-2.2.0.
######################################################################## 100.0%
==> Pouring ruby-2.2.0.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/ruby/2.2.0: 1080 files, 21M
Lees-MacBook-Pro:Github hanxue$ brew info ruby
ruby: stable 2.2.0 (bottled), HEAD
https://www.ruby-lang.org/
/usr/local/Cellar/ruby/2.0.0-p247 (14953 files, 81M)
Built from source with: --with-tcltk, --with-doc, --universal
/usr/local/Cellar/ruby/2.1.0 (949 files, 20M)
Built from source
/usr/local/Cellar/ruby/2.1.2 (929 files, 19M)
Poured from bottle
/usr/local/Cellar/ruby/2.1.4 (14644 files, 82M)
Built from source with: --with-libffi, --with-gdbm, --with-gmp, --with-doc
/usr/local/Cellar/ruby/2.2.0 (1080 files, 21M) *
Poured from bottle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment