**我通过在ubuntu 18中通过snap安装kotlin,但是当我在终端上写kotlin时,会出现
bhaskar@bhaskar-ThinkPad-L430://usr/local/bin$ kotlin
Command 'kotlin' is available in '/snap/bin/kotlin'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
kotlin: command not found**
当我按路径查看时,包含在$ PATH中:
bhaskar@bhaskar-ThinkPad-L430://usr/local/bin$ $PATH
bash: /home/bhaskar/bin:/home/bhaskar/.local/bin:/usr/local/sbin: /usr/local/bin:/home/bhaskar/snap/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
所以请帮助我,谢谢您的支持。
答案 0 :(得分:0)
您的路径似乎包含“ / home / bhaskar / snap / bin”,但是系统正在“ / snap / bin”目录中查找。 (因此它是从根目录而不是从主目录“ / home / bhaskar”搜索的。)
您可以在此处找到几种编辑路径的方法:https://askubuntu.com/questions/60218/how-to-add-a-directory-to-the-path