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.
For those on OSX I found that I had to change the directory that coursier had automatically added to the PATH in my .bash_profile:
export PATH="$PATH:/Users/username/Library/Application Support/Coursier/bin"
to
export PATH="$PATH:/Users/username/Library/Application\ Support/Coursier/bin"
Basically add the backslash in. Then run
source .bash_profile
to reload the profile.