Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Loadtest gatling.io knowledge => Topic started by: golfreeze on มกราคม 19, 2016, 03:40:15 PM

Title: scala install on mac and exit from scala console ครับผม
Post by: golfreeze on มกราคม 19, 2016, 03:40:15 PM
1. Download scala-X.XX.tgz from the http://www.scala-lang.org/download (http://www.scala-lang.org/download)

2. Unzip the archive and rename a folder in “scala”.
When you browse the scala directory you can find there folders: bin, doc, examples, … etc.

3. Move the scala folder to /usr/local/share/
#cp -rp scala /usr/local/share/.

4. ทำการ export scala path ตาม readme ครับผม
#vi /Users/your_user/.bash_profile
แอดเพิ่ม PATH ดังนี้
export SCALA_HOME=/usr/local/share/scala
export PATH=$SCALA_HOME/bin:$PATH

5. ทำการ run update
$source .bash_profile

เราก็สามารถเข้า console scala ได้ครับตามนี้
$scala

เวลาจะออกจาก console scala ในส่วนของ version 2.10 ขึ้นไป จะออกโดย
scala> sys.exit

 ;)