Scala on OpenBSD

I've always wanted to sort of learn JVM-based functional+OO scripting language so thought that now would be a good time to learn Scala. However, it wasn't available in OpenBSD ports. The following are the steps needed to get it up and running -

1. Download Scala from http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.final.tgz

2. tar zxf scala-2.9.0.final.tgz

3. Install jdk: pkg_add -vi jdk.

Also, make sure bash is installed: cd /usr/ports/shells/bash, sudo make install.

4. Add full path to the bin in your PATH environment variable (for e.g. ksh/bash) in your ~/.profile or ~/.bashrc (ksh/bash respectively):

export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/jdk-1.7.0/bin:.

5. Go to the dir you installed scala:

[~/scala-2.9.0.final/bin] $ ./scala
Welcome to Scala version 2.9.0.final (OpenJDK Client VM, Java 1.7.0-internal).
Type in expressions to have them evaluated.
Type :help for more information.

scala> println("howdy sathi!")
howdy sathi!

scala>

All done. Happy Scala'ing! :)


Jotted by ishwor May 15, 2011
Bookmark and Share

Comments

sadina on Sept. 12, 2011 writes:

hmm.. nice one!! :)
Sadina on Sept. 12, 2011 writes:

hmm ... nice on!! :)
scalaUser on Sept. 10, 2011 writes:

Thanks for sharing this.

Trackbacks

No trackbacks yet

Leave a Reply/Discuss







Spam Prevention: To post your comment without previewing it you need to complete the captcha below, type the words you see or hear into the box below. This helps stop spam from being posted to the site.
A Django site. Powered by Python.
Developed using djangle