Linux/Unix知识点PHP经验分享git

brew安装指定版本的软件

2017-02-08  本文已影响15881人  乾九二
1F7D7052E69E7E73B2EFE8069E735526.jpg

安装源


$> brew info thrift
thrift: stable 0.10.0 (bottled), HEAD
Framework for scalable cross-language services development
https://thrift.apache.org/
/usr/local/Cellar/thrift/0.9.3 (95 files, 5.7M) *
  Poured from bottle on 2017-02-08 at 19:52:24
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/thrift.rb
==> Dependencies
Build: bison ✔
Required: boost ✔, openssl ✔
Optional: libevent ✘
==> Requirements
Optional: python ✔
==> Options
--with-erlang
    Install Erlang binding
--with-haskell
    Install Haskell binding
--with-java
    Install Java binding
--with-libevent
    Install nonblocking server libraries
--with-perl
    Install Perl binding
--with-php
    Install PHP binding
--with-python
    Build with python support
--HEAD
    Install HEAD version
==> Caveats
To install Ruby binding:
  gem install thrift

To install PHP extension for e.g. PHP 5.5:
  brew install homebrew/php/php55-thrift
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.10.0/thrift-0.10.0.tar.gz"
sha256 "2289d02de6e8db04cbbabb921aeb62bfe3098c4c83f36eec6c31194301efa10b"
git clone git@github.com:Homebrew/homebrew-core.git
git log ./Formula/thrift.rb | less
git checkout 9d524e4
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.3/thrift-0.9.3.tar.gz"
sha256 "b0740a070ac09adde04d43e852ce4c320564a292f26521c46b78e0641564969e"
# 这里直接指定了 rb 文件,自己尝试了下,发现果然 OK
brew install ./Formula/thrift.rb
上一篇 下一篇

猜你喜欢

热点阅读