Scala 2.9.1 on Fedora 16

yum install scala on Fedora will grab all the dependencies, including a JVM, but its a pretty old scala.

Luckily it is pretty easy to install scala-2.9.1 by snagging it from rawhide, but just the RPMS only get you so far. Fedora seems to be changing their JAVA_HOME in 17. A little hack, and you are off and running.

  1. sudo yum install scala
  2. sudo curl -O
  3. sudo curl -O
  4. sudo yum install jline2-2.5-5.fc17.noarch.rpm scala-2.9.1-3.fc17.noarch.rpm
  5. rpm -ql scala | grep bin | xargs sudo perl -pi.orig -e ‘s@JAVA_HOME=/usr/lib/jvm/java-1.6.0/@JAVA_HOME=/usr/lib/jvm/jre-1.6.0/@’


1 thought on “Scala 2.9.1 on Fedora 16”

  1. I know the title says, “Fedora 16”, but could you give me some code that works for Fedora 14? When running this, I get

    Error: Package: jline2-2.5-5.fc17.noarch (/jline2-2.5-5.fc17.noarch)
    Requires: jansi
    Error: Package: scala-2.9.1-3.fc17.noarch (/scala-2.9.1-3.fc17.noarch)
    Requires: /usr/share/java/jansi.jar

    Searching manually in Yum for “jansi” doesn’t turn up anything.

    Thanks for this!

Comments are closed.