Skip to content

Linux instructions don't work for alpine #1814

Open
@jsoref

Description

@jsoref

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

Run the following command in your terminal, following the on-screen instructions.

On the x86-64 architecture:

curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup

Otherwise, on the ARM64 architecture:

curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch

Other ways to install Scala
Pick a specific release

This page contains a comprehensive archive of previous Scala releases.

Current Releases

Current 3.7.x release: 3.7.1
Released on June 4, 2025

https://www.scala-lang.org/download/3.7.1.html

And that last one is a circular loop to this one!

For the curious, it is definitely possible to install scala on alpine.
Hand waving steps:

  1. install java (some hand waving for this step, I used cs which is referenced in bugs above to get it, but you can also use docker run -it --platform linux/arm64 --entrypoint bash eclipse-temurin amongst other things)
  2. curl -o https://github.com/scala/scala3/releases/download/3.7.1/scala3-3.7.1.tar.gz
  3. tar zxf scala3-3.7.1.tar.gz
  4. ./scala3-3.7.1/bin/scala
  5. wait a bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions