Scala installation


#1

Hi I am first time user of scala. I am not a java programmer either. I used to program with C.

I am trying to get scala running on a red hat linux host.

So I downloaded sbt and copied it from my pc to the linux host.

But having difficulty installing it.

I am using : https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html

But I cant run this command on our red hat host as it cannot connect to any external site :
https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo

I pasted https://bintray.com/sbt/rpm/rpm on my browser and it downloaded an rpm - but that seems to point to a repo instead of an actual package.

The linux administrator told me that with an actual package I can get it to work.

If so any idea where I can get an actual package?

Appreciate the feedback.


#2

this link:
https://www.scala-sbt.org/download.html

There is a 3 line set of commands for the Linux RPM at the top of the page, starting with curl. That seems to be what you’re looking for.


#3

Do you intend to do development on that linux host? Or more specifically: compile Scala code? Because that will probably be a problem if you don’t have internet access. Sbt downloads all dependencies, including the Scala standard library and the compiler itself, from external sources.
If you only want to run Scala programs that you developed and packaged on your local pc, all you need on the linux host is a JRE.