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.
- sudo yum install scala
- sudo curl -O http://mirror.us.leaseweb.net/fedora/linux/development/rawhide/x86_64/os/Packages/j/jline2-2.5-5.fc17.noarch.rpm
- sudo curl -O http://mirror.us.leaseweb.net/fedora/linux/development/rawhide/x86_64/os/Packages/s/scala-2.9.1-3.fc17.noarch.rpm
- sudo yum install jline2-2.5-5.fc17.noarch.rpm scala-2.9.1-3.fc17.noarch.rpm
- 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/@’
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!