-
Notifications
You must be signed in to change notification settings - Fork 0
brew
GingerLi edited this page Apr 29, 2014
·
9 revisions
1 查看 brew 支持哪些版本的 gsl
$ brew versions gsl
1.15 git checkout 164c57f /usr/local/Library/Formula/gsl.rb`
1.14 git checkout 83ed494 /usr/local/Library/Formula/gsl.rb`
1.13 git checkout b0b2584 /usr/local/Library/Formula/gsl.rb`
非常幸运,1.14 包括在内。 如果信息out of date, 通过
brew update
更新 brew
2 进入 brew 所在的git仓库
cd `brew --prefix`
3 复制粘贴刚才 brew versions sql 命令的提示。执行
git checkout 83ed494 /usr/local/Library/Formula/gsl.rb
4 此时安装使用 brew install gsl 会提示错误
Error: gsl-1.15 already installed To install this version, first `brew unlink gsl' 因此需要先取消之前的链接,执行
brew unlink gsl
提示
Unlinking /usr/local/Cellar/gsl/1.15... 16 links removed
5 安装成功
brew install gsl