如何使用自制软件在Mac上安装Solr?

bma*_*ets 14 macos homebrew solr osx-mavericks

在我的自制软件中,我只能访问solr 4.9.0,但它已从repo中删除,所以我看到404错误:

bmalets:~ bmalets$ brew install solr
==> Downloading http://www.apache.org/dyn/closer.cgi?path=lucene/solr/4.9.0/solr-4.9.0.tgz
==> Best Mirror http://apache.ip-connect.vn.ua/lucene/solr/4.9.0/solr-4.9.0.tgz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "solr"
Download failed: http://apache.ip-connect.vn.ua/lucene/solr/4.9.0/solr-4.9.0.tgz
Run Code Online (Sandbox Code Playgroud)

现在solr 4.10.0版本已经可以使用了,但brew看不到它...因为在每个turtorial for solr我都看到'在1st-run brew install solr'.我不希望将来更新/升级有问题...如何在我的mac上安装brew来安装新的Solr版本?

ps Homebrew 0.9.5,OS_X 10.9.5

小智 34

运行

brew update 
Run Code Online (Sandbox Code Playgroud)

然后

brew install solr
Run Code Online (Sandbox Code Playgroud)

为我修复了这个错误


bma*_*ets 14

  • 运行brew edit solr以编辑solr公式
  • 使用v4.10.0的公式替换版本4.9.0的旧公式
  • brew install solr
  • solr start