How to install an older version of scala

后端 未结 5 1050
一向
一向 2021-02-02 09:59

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 b

5条回答
  •  别那么骄傲
    2021-02-02 10:49

    Using brew to install specific version:

    $ brew search scala
    ==> Formulae
    scala                scala@2.10           scala@2.11            scalaenv             
    scalapack            scalariform          scalastyle
    
    ==> Casks
    scala-ide
    

    Make sure you default version in profile

    $echo 'export PATH="/usr/local/opt/scala@2.11/bin:$PATH"' >> ~/.bash_profile
    

提交回复
热议问题