Skip to content

Instantly share code, notes, and snippets.

@cuber
Created April 25, 2014 15:07
Show Gist options
  • Save cuber/11292869 to your computer and use it in GitHub Desktop.
Save cuber/11292869 to your computer and use it in GitHub Desktop.
How To install Scala 2.10 with homebrew
# you should checkout to the history version of scala.rb
cd /path/to/homebrew (default is /usr/local)
git checkout d64edec425df44918c58b6b021ffef2628242248 Library/Formula/scala.rb
brew info scala # you will see the 2.10 version
brew install scala
# after install, turn back to the master version
brew checkout master Library/Formula/scala.rb
# you can install both 2.10 & 2.11, brew switch can easily switch to any specific version
brew switch scala 2.10
brew switch scala 2.11
@kenbod
Copy link

kenbod commented Nov 11, 2016

I found a solution here: https://github.com/ofishel/hb-scala-2.10.4

brew install homebrew/versions/scala210
brew unlink scala
brew link scala210 --force

@fan-mingchun
Copy link

brew install homebrew/versions/scala210 would install 2.10.6. I just try

@JosephMRally
Copy link

this no longer works with brew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment