Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command not found #108

Closed
zoelabbb opened this issue Jan 27, 2024 · 2 comments
Closed

command not found #108

zoelabbb opened this issue Jan 27, 2024 · 2 comments

Comments

@zoelabbb
Copy link

Hai, I install afrog using go and after finish install, I’m tryin to run using command afrog. And then like this :

zsh: command not found: afrog

Please, help me to solve this problem. Thank you

@zan8in
Copy link
Owner

zan8in commented Jan 28, 2024

As the ~/go/bin directory is not set in the environment variables, you can resolve the issue by following these steps:

  1. Search for the directory where 'afrog' is located using the command:
find / -name afrog

for example, if the result is /root/go/bin/afrog.

  1. Add /root/go/bin to the environment variables.

Bash Sell:

echo 'export PATH=$PATH:/root/go/bin' >> ~/.bashrc
source ~/.bashrc

Zsh Shell:

echo 'export PATH=$PATH:/root/go/bin' >> ~/.zshrc
source ~/.zshrc

@zoelabbb
Copy link
Author

Thank you in advance @zan8in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants