diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 4191aa3..d597369 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,7 +13,7 @@ "state": { "type": "markdown", "state": { - "file": "content/tils/predictable_seed_data.md", + "file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md", "mode": "source", "source": false } @@ -85,7 +85,7 @@ "state": { "type": "backlink", "state": { - "file": "content/tils/predictable_seed_data.md", + "file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -112,7 +112,7 @@ "state": { "type": "file-properties", "state": { - "file": "content/tils/predictable_seed_data.md" + "file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md" } } } @@ -135,13 +135,14 @@ }, "active": "23b55eaa334e54e2", "lastOpenFiles": [ + "content/tils/predictable_seed_data.md", + "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md", "_site/tils/predictable_seed_data/index.html", "_site/tils/predictable_seed_data", "_site/images/predictable_data.png", "content/tils/kagi_small_web.md", "content/tils/pdf_obsidian_at_page.md", "content/tils/asdf_direnv.md", - "content/tils/predictable_seed_data.md", "content/til.md", "content/images/predictable_data.png", "content/tils/always_generated_ecto_boolean.md", @@ -161,7 +162,6 @@ "content/tils/til.njk", "_site/til.xml", "_site/tils/always_generated_ecto_boolean/index.html", - "_site/tils/pdf_obsidian_at_page/index.html", "_site/images/til-pdf-page.png", "node_modules/@11ty/eleventy-plugin-syntaxhighlight/README.md", "node_modules/@11ty/eleventy-plugin-syntaxhighlight/test/issue-80/index.md", diff --git a/content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md b/content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md new file mode 100644 index 0000000..ca0958a --- /dev/null +++ b/content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md @@ -0,0 +1,33 @@ +--- +title: Resolving zsh bus error with erlang/elixir on Mac Sonoma with asdf +date: 2023-11-27 +--- +A perfect storm of tooling hit me with a difficult to decipher error this morning `zsh bus error mix`. [Others seem to have had similar woes](https://elixirforum.com/t/bus-error-after-upgrading-to-sonoma-beta/56354/41) and I was able to decipher a clean reproducible solution. + +The tooling needed to run into this issue: + +- Mac upgraded to Sonoma +- Using `asdf` to manage `erlang` and `elixir` +- Using `zsh` + +```sh +# upgrade some system dependencies, and asdf itself +brew update +brew upgrade # mostly to update asdf, can target specifically with `brew upgrade asdf` instead + +# remove existing erlang and elixir installs, reshimming won't cut it so let's start fresh it doesn't take long +asdf plugin-remove erlang +asdf plugin-remove elixir + +# reinstall those plugins +asdf plugin add erlang [https://github.com/asdf-vm/asdf-erlang.git](https://github.com/asdf-vm/asdf-erlang.git) +asdf plugin-add elixir [https://github.com/asdf-vm/asdf-elixir.git](https://github.com/asdf-vm/asdf-elixir.git) + +# now let's install the versions App needs of erlang and elixir +cd ./where-my-repos-are/app +export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac" # recommended step by asdf erlang's readme +asdf install # pulls from app's `.tool-versions` file + +# done! try it out +mix deps.get +``` \ No newline at end of file