'command 'scala' not found after set up by coursier
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.
Solution 1:[1]
I had the same issue, coursier did modify my .bash_profile
to include:
# >>> coursier install directory >>>
export PATH="$PATH:/home/james/.local/share/coursier/bin"
# <<< coursier install directory <<<
But that didn't work for me.
I had to edit the .bashrc
and on the last line add:
export PATH="$PATH:$HOME/.local/share/coursier/bin"
You will have to run bash
or logout and back in for it to take effect.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | James Becwar |