Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install an older version of scala

Tags:

scala

I currently had installed scala 2.11.7 but in order to fix this issue, I have to install a older version of scala(2.10.5). When I try to install with brew, I keep getting the following error

Error: No available formula for 2.10.5  

I tried downloading the binaries for scala download page but when I load the SDK and all the libraries in IntelliJ, I just get this error

Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK scala-sdk-2.10.5 

So what is the right way to install an older version of scala and setting the same in intellij

like image 369
Rahul Avatar asked Sep 24 '15 17:09

Rahul


People also ask

Is Scala 2.12 backwards compatible?

So Scala 2.11 => Scala 2.12 is a major release. It's not a minor release! Scala major releases are not backwards compatible. Java goes to extreme lengths to maintain backwards compatibility, so Java code that was built with Java 8 can be run with Java 14.

How do I install a specific version of Scala in IntelliJ?

To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA. Now you can successfully check out from VCS, create, or import Scala projects.

What is current Scala version?

Scala 2.11.0-RC3. Scala 2.11.0-RC1. Scala 2.10.7.

How do I install latest version of Scala?

Install it on your system with the following instructions. Download and execute the Scala installer for Windows based on Coursier, and follow the on-screen instructions. JavaScript is disabled, click the tab relevant for your OS. Follow the documentation from Coursier on how to install and run cs setup .


1 Answers

The following should work for Homebrew 0.9.5:

Install Tapped version of Scala 2.10

brew install homebrew/versions/scala210 

Unlink version of Scala 2.11 (if installed)

brew unlink scala 

Link Tapped version of Scala 2.10

brew link scala210 --force 

Check scala version

scala -version 
like image 100
SilviuC Avatar answered Nov 04 '22 04:11

SilviuC