<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>direnv-tool-versions on Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/series/direnv-tool-versions/</link>
		<description>Recent content in direnv-tool-versions on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Fri, 06 Jan 2023 20:24:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/series/direnv-tool-versions/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Compiling Ruby 2.7.7 on Ubuntu 22.04</title>
				<link>https://blog.differentpla.net/blog/2023/01/06/compiling-ruby-fails-openssl/</link>
				<pubDate>Fri, 06 Jan 2023 20:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/06/compiling-ruby-fails-openssl/</guid>
				<description>&lt;p&gt;Compiling Ruby 2.7.7 fails with the following error about openssl:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with python 3</title>
				<link>https://blog.differentpla.net/blog/2020/06/12/python3-direnv/</link>
				<pubDate>Fri, 12 Jun 2020 18:15:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/06/12/python3-direnv/</guid>
				<description>&lt;p&gt;By now you should be using Python 3.x. You can integrate it with direnv (2.21 or newer)&#xA;by putting the following in your &lt;code&gt;.envrc&lt;/code&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with ghc</title>
				<link>https://blog.differentpla.net/blog/2020/02/02/ghc-direnv/</link>
				<pubDate>Sun, 02 Feb 2020 15:32:31 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2020/02/02/ghc-direnv/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m reading &amp;ldquo;Practical Haskell&amp;rdquo;, which requires a different version of Haskell than&#xA;Ubuntu installs so I figured I&amp;rsquo;d add another entry to my direnv series.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with ruby-install</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/ruby-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/ruby-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;ruby-install&lt;/code&gt; &amp;ndash; installation instructions &lt;a href=&#34;https://blog.differentpla.net/blog/2019/01/30/ruby-install/&#34;&gt;here&lt;/a&gt; &amp;ndash; add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Ruby with ruby-install</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/ruby-install/</link>
				<pubDate>Wed, 30 Jan 2019 17:40:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/ruby-install/</guid>
				<description>&lt;div class=&#34;callout callout-info&#34;&gt;&#xA;  &lt;div class=&#34;callout-content&#34;&gt;&#xA;    On recent versions of Ubuntu, with older versions of Ruby, you&amp;rsquo;ll get an error about missing openssl. See &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/06/compiling-ruby-fails-openssl/&#34;&gt;this post&lt;/a&gt; for a solution.&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;Install &lt;code&gt;ruby-install&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with python-build</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/python-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/python-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;python-build&lt;/code&gt; &amp;ndash; installation instructions &lt;a href=&#34;https://blog.differentpla.net/blog/2019/01/30/python-build/&#34;&gt;here&lt;/a&gt; &amp;ndash; add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Python with python-build</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/python-build/</link>
				<pubDate>Wed, 30 Jan 2019 17:20:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/python-build/</guid>
				<description>&lt;p&gt;Install &lt;code&gt;pyenv&lt;/code&gt;. We&amp;rsquo;re not going to use it as-is, but it includes the &lt;code&gt;python-build&lt;/code&gt; script that we will use:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Elixir with kiex</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-elixir-with-kiex/</link>
				<pubDate>Wed, 30 Jan 2019 17:12:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-elixir-with-kiex/</guid>
				<description>&lt;p&gt;At Electric Imp, we manage our Elixir versions with kiex.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with nvm</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/nvm-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:12:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/nvm-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;nvm&lt;/code&gt;, add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing kiex</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-kiex/</link>
				<pubDate>Wed, 30 Jan 2019 17:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-kiex/</guid>
				<description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;\curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;Then ensure it&amp;rsquo;s in your path. I copied it to &lt;code&gt;/usr/local/bin&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with kiex</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/integrating-kiex-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:07:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/integrating-kiex-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;kiex&lt;/code&gt;, add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Getting Erlang version</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/erlang-version/</link>
				<pubDate>Wed, 30 Jan 2019 17:05:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/erlang-version/</guid>
				<description>&lt;p&gt;Use this helper function:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;erlang_version() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    erl -eval &amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        {ok, Version} = file:read_file(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                            filename:join(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                [code:root_dir(),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 &amp;#34;releases&amp;#34;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 erlang:system_info(otp_release),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                                 &amp;#34;OTP_VERSION&amp;#34;])),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        io:format(&amp;#34;Erlang/OTP ~s&amp;#34;, [Version]),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        halt().&amp;#39; -noshell&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;div class=&#34;callout callout-warning&#34;&gt;&#xA;  &lt;div class=&#34;callout-content&#34;&gt;&#xA;    Note that this only works when you run &lt;code&gt;erl&lt;/code&gt;; it doesn&amp;rsquo;t work in a released application.&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Installing Erlang with kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-erlang-with-kerl/</link>
				<pubDate>Wed, 30 Jan 2019 17:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-erlang-with-kerl/</guid>
				<description>&lt;p&gt;At Electric Imp, on developer PCs, we manage our Erlang versions with &lt;a href=&#34;https://github.com/yrashk/kerl&#34;&gt;kerl&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-kerl/</link>
				<pubDate>Wed, 30 Jan 2019 17:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-kerl/</guid>
				<description>&lt;h2 id=&#34;ubuntu&#34;&gt;Ubuntu&lt;a href=&#34;#ubuntu&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl&#xA;chmod +x kerl&#xA;sudo mv kerl /usr/local/bin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;a href=&#34;#macos&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;brew install kerl&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<item>
				<title>Integrating direnv with kerl</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/integrating-kerl-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/integrating-kerl-direnv/</guid>
				<description>&lt;p&gt;To integrate &lt;code&gt;direnv&lt;/code&gt; with &lt;code&gt;kerl&lt;/code&gt;, add the following to &lt;code&gt;~/.direnvrc&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Building Erlang: Prerequisites (Ubuntu)</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/erlang-build-prerequisites/</link>
				<pubDate>Wed, 30 Jan 2019 17:02:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/erlang-build-prerequisites/</guid>
				<description>&lt;p&gt;If you want to use &lt;code&gt;kerl&lt;/code&gt; to build your Erlang installation, you&amp;rsquo;re going to&#xA;need some packages installed first.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing direnv</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/installing-direnv/</link>
				<pubDate>Wed, 30 Jan 2019 17:01:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/installing-direnv/</guid>
				<description>&lt;p&gt;From &lt;a href=&#34;https://direnv.net/&#34;&gt;direnv.net&lt;/a&gt;:&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;  &lt;blockquote&gt;&#xA;    &lt;p&gt;&lt;code&gt;direnv&lt;/code&gt; is an environment switcher for the shell.&lt;/p&gt;&#xA;&#xA;  &lt;/blockquote&gt;&#xA;&#xA;&lt;h1 id=&#34;installing-direnv&#34;&gt;Installing direnv&lt;a href=&#34;#installing-direnv&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;ubuntu&#34;&gt;Ubuntu&lt;a href=&#34;#ubuntu&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;direnv&lt;/code&gt; is available as an &lt;a href=&#34;https://packages.ubuntu.com/search?keywords=direnv&amp;amp;searchon=names&amp;amp;suite=all&amp;amp;section=all&#34;&gt;Ubuntu package&lt;/a&gt;, but unless you&amp;rsquo;re on a really recent Ubuntu, it&amp;rsquo;ll be outdated.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using direnv to manage tool versions</title>
				<link>https://blog.differentpla.net/blog/2019/01/30/direnv-tool-versions/</link>
				<pubDate>Wed, 30 Jan 2019 17:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2019/01/30/direnv-tool-versions/</guid>
				<description>&lt;p&gt;At Electric Imp, we use a &lt;a href=&#34;https://blog.differentpla.net/blog/2019/01/30/electricimp-languages/&#34;&gt;variety of different languages&lt;/a&gt;, and each project might be using a different mix of versions.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
