can't run kotlin in ubuntu [duplicate]
This question already has an answer here:
Installing Kotlin securely, with package signatures, auto-update etc
3 answers
How to add a directory to the PATH?
17 answers
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**
when i see by path by snap is included in $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
help me to run my kotlin in ubuntu 18.
18.04
marked as duplicate by karel, Kulfy, Charles Green, Elder Geek, George Udosen 17 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Installing Kotlin securely, with package signatures, auto-update etc
3 answers
How to add a directory to the PATH?
17 answers
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**
when i see by path by snap is included in $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
help me to run my kotlin in ubuntu 18.
18.04
marked as duplicate by karel, Kulfy, Charles Green, Elder Geek, George Udosen 17 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
how to do that please tell me.
– Bhaskar arya
yesterday
1
@Kulfy if yousource ~/.bashrc
afterexport PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit~/.bashrc
and add the new directory to the path there orexport PATH="/snap/bin:$PATH"
. Not both.
– terdon♦
yesterday
add a comment |
This question already has an answer here:
Installing Kotlin securely, with package signatures, auto-update etc
3 answers
How to add a directory to the PATH?
17 answers
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**
when i see by path by snap is included in $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
help me to run my kotlin in ubuntu 18.
18.04
This question already has an answer here:
Installing Kotlin securely, with package signatures, auto-update etc
3 answers
How to add a directory to the PATH?
17 answers
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**
when i see by path by snap is included in $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
help me to run my kotlin in ubuntu 18.
This question already has an answer here:
Installing Kotlin securely, with package signatures, auto-update etc
3 answers
How to add a directory to the PATH?
17 answers
18.04
18.04
asked yesterday
Bhaskar arya
13
13
marked as duplicate by karel, Kulfy, Charles Green, Elder Geek, George Udosen 17 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Kulfy, Charles Green, Elder Geek, George Udosen 17 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
how to do that please tell me.
– Bhaskar arya
yesterday
1
@Kulfy if yousource ~/.bashrc
afterexport PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit~/.bashrc
and add the new directory to the path there orexport PATH="/snap/bin:$PATH"
. Not both.
– terdon♦
yesterday
add a comment |
how to do that please tell me.
– Bhaskar arya
yesterday
1
@Kulfy if yousource ~/.bashrc
afterexport PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit~/.bashrc
and add the new directory to the path there orexport PATH="/snap/bin:$PATH"
. Not both.
– terdon♦
yesterday
how to do that please tell me.
– Bhaskar arya
yesterday
how to do that please tell me.
– Bhaskar arya
yesterday
1
1
@Kulfy if you
source ~/.bashrc
after export PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit ~/.bashrc
and add the new directory to the path there or export PATH="/snap/bin:$PATH"
. Not both.– terdon♦
yesterday
@Kulfy if you
source ~/.bashrc
after export PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit ~/.bashrc
and add the new directory to the path there or export PATH="/snap/bin:$PATH"
. Not both.– terdon♦
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
how to do that please tell me.
– Bhaskar arya
yesterday
1
@Kulfy if you
source ~/.bashrc
afterexport PATH="/snap/bin:$PATH"
, it won't work since when you re-read bashrc, you will overwrite the PATH again. Either edit~/.bashrc
and add the new directory to the path there orexport PATH="/snap/bin:$PATH"
. Not both.– terdon♦
yesterday