Using direnv to manage tool versions
...
...
From direnv.net:
If you want to use kerl to build your Erlang installation, you’re going to
need some packages installed first.
To integrate direnv with kerl, add the following to ~/.direnvrc:
At Electric Imp, on developer PCs, we manage our Erlang versions with kerl.
Use this helper function:
To integrate direnv with kiex, add the following to ~/.direnvrc:
Then ensure it’s in your path. I copied it to /usr/local/bin:
At Electric Imp, we manage our Elixir versions with kiex.
To integrate direnv with nvm, add the following to ~/.direnvrc:
Install pyenv. We’re not going to use it as-is, but it includes the python-build script that we will use:
To integrate direnv with python-build — installation instructions here — add the following to ~/.direnvrc:
On recent versions of Ubuntu, with older versions of Ruby, you’ll get an error about missing openssl. See this post for a solution.
To integrate direnv with ruby-install — installation instructions here — add the following to ~/.direnvrc:
I’m reading “Practical Haskell”, which requires a different version of Haskell than Ubuntu installs so I figured I’d add another entry to my direnv series.
By now you should be using Python 3.x. You can integrate it with direnv (2.21 or newer)
by putting the following in your .envrc
Compiling Ruby 2.7.7 fails with the following error about openssl: