Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How install Solr on mac using homebrew?

In my homebrew I have access only to solr 4.9.0, but it was deleted from repo, so I see 404 error:

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

Now solr 4.10.0 version are already avialable, but brew don't see it... Because in every turtorial for solr I see 'at 1st - run brew install solr'. And I don't want to have a problems with updating/upgrading in future... How can I setup brew to install fresh Solr version on my mac?

p.s. Homebrew 0.9.5, OS_X 10.9.5

like image 546
bmalets Avatar asked Sep 23 '14 12:09

bmalets


2 Answers

Running

brew update 

and then

brew install solr

fixed this error for me

like image 93
user3404455 Avatar answered Sep 20 '22 04:09

user3404455


  • run brew edit solr to edit solr formula
  • replace old formula for version 4.9.0 with formula for v4.10.0
  • run brew install solr
  • run solr start
like image 42
bmalets Avatar answered Sep 22 '22 04:09

bmalets