DEV Community

Cover image for Installing anyenv on Mac
Kenta Takeuchi
Kenta Takeuchi

Posted on • Originally published at bmf-tech.com

Installing anyenv on Mac

This article was originally published on bmf-tech.com.

This is the procedure for installing anyenv on Mac. I encountered a few issues, so here are my notes.

Installation

In my environment, I have various things placed in /usr/local/bin/, so I will install anyenv there.

cd /usr/local/bin
git clone https://github.com/riywo/anyenv

Setting the Path

export PATH="/usr/local/bin/anyenv/bin:$PATH"
export ANYENV_ROOT=/usr/local/bin/anyenv
eval "$(anyenv init -)"
Enter fullscreen mode Exit fullscreen mode

It seems that anyenv is designed to be installed directly under the root directory, so if you don't specify ANYENV_ROOT to a specific directory, the anyenv command won't execute correctly. Also, if you forget to write eval "$(anyenv init -)", you may encounter issues where the commands of the installed packages cannot be executed, so be sure not to forget this.

Conclusion

The installation is now complete. You should be able to use various anyenv commands.

Reference

Top comments (0)