I use coursier to set up the environment of Scala using command ./cs setup in Ubuntu 20.04 LTS. It was said that all the requirements were installed. However, when I use command scala -version to check whether the installation succeeded, it shown that Command 'scala' not found. The result of command. Reboot didn't work. So please help me to slove this problem! Thanks!
Information: An ECS with Ubuntu 20.04 LTS, user is not the root.
I had the same issue, coursier did modify my
.bash_profileto include:But that didn't work for me.
I had to edit the
.bashrcand on the last line add:You will have to run
bashor logout and back in for it to take effect.