Question

Instructions to install Scala on Linux are here, but this requires administrator permissions.

I am working in a shared environment without admin access. Can I install Scala?

Était-ce utile?

La solution

Of course, just install it in your home directory. Download the .tgz file from here:

http://www.scala-lang.org/download/

then run tar xzf scala-[version].tgz

That will create a directory with an installation of scala. Set your environment variables accordingly (e.g. $SCALA_HOME to the directory you just uncompressed, and add the bin subdirectory to $PATH)/

Autres conseils

Even better than manual installation would be using some build tool with dependency management, like SBT or Maven with scala-maven-plugin. Sure, you will need Internet connection for them more often if you just used tarball distribution, but if the connection is not a problem then using build tools is much more convenient than manual installation.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top