Scala is a relatively modern high-level language that supports object-oriented programming and functional programming capabilities. It is a general purpose language which is very much similar to Java. Scala basically stands for scalable language. To use this programming language with the Linux operating system, you must have its compiler installed on your system. In this tutorial, we will go through the procedure of installing the Scala compiler on a Linux Mint 20.02 system.
Steps for Installing Scala Compiler on Linux Mint 20.02:
For installing the Scala compiler on a Linux Mint 20.02 system, you will have to proceed as we have explained in the steps below:
Step # 1: Check if Java is installed on your Linux Mint 20.02 Machine:
Before you proceed with the installation of the Scala compiler on your Linux Mint 20.02 system, you must have Java 1.8 or higher installed on your system. You can confirm that by executing the command that follows:
$ java --version
You can verify from the image shown below that we have the relevant version of Java already installed on our target system.
Step # 2: Install the Scala Compiler on Linux Mint 20.02:
Now, for installing the Scala compiler on your system, you have to run the command stated below:
$ sudo apt-get install scala
The installation of Scala will begin soon after you will type this command in your terminal followed by hitting the Enter key. However, during the installation, you still will have to provide your consent by hitting the “Y” character so that your installation process can keep running smoothly.
After the completion of the installation process of the Scala compiler on your system, you will see a similar output as shown in the following image:
Step # 3: Confirm the Installation of the Scala Compiler on Linux Mint 20.02:
Finally, it is the time to confirm if the Scala compiler has been successfully installed on our Linux Mint 20.02 machine or not. For that, we will check its version with the command shown below:
$ scalac –version
The version of the Scala compiler shown in the following image confirms that the Scala compiler has been installed successfully on our target Linux Mint 20.02 system.
By using this method, you can conveniently install the Scala compiler on your Linux Mint 20.02 machine. After installing this compiler, you will be all set to write codes using the Scala programming language.
If you want to install GCC compiler on Ubuntu 20.04, visit this post.