When the download completed, unpack and move it to your user home folder. For example, "/Users/your_user/". Once you moved it to the user's home folder, now create or modify your ".profile" files in your home folder. Open the Terminal and use Vim or Nano to add the line below to the end of file.
export PATH="/Users/your_user/scala/bin:$PATH"Save and close the modified file. Now apply the changes using this command.
source .profileClose the Terminal and reopen it to check the result. To verify whether the Scala working well, in the Terminal type in “Scala” and you should see the output like the quote below.
iMac-my:~ ogonbat$ scala
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
Via cingusoft.posterous.
0 comments: on "Install Scala on MAC OS X ( LION )"
Post a Comment