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
Comments
Trackbacks
No trackbacks yetLeave a Reply/Discuss
Developed using djangle

hmm.. nice one!! :)