sonoma issue fix til
This commit is contained in:
parent
51fc7759e4
commit
7e7fe6d9e7
2 changed files with 38 additions and 5 deletions
10
.obsidian/workspace.json
vendored
10
.obsidian/workspace.json
vendored
|
@ -13,7 +13,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "content/tils/predictable_seed_data.md",
|
"file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "content/tils/predictable_seed_data.md",
|
"file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "file-properties",
|
"type": "file-properties",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "content/tils/predictable_seed_data.md"
|
"file": "content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,13 +135,14 @@
|
||||||
},
|
},
|
||||||
"active": "23b55eaa334e54e2",
|
"active": "23b55eaa334e54e2",
|
||||||
"lastOpenFiles": [
|
"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/index.html",
|
||||||
"_site/tils/predictable_seed_data",
|
"_site/tils/predictable_seed_data",
|
||||||
"_site/images/predictable_data.png",
|
"_site/images/predictable_data.png",
|
||||||
"content/tils/kagi_small_web.md",
|
"content/tils/kagi_small_web.md",
|
||||||
"content/tils/pdf_obsidian_at_page.md",
|
"content/tils/pdf_obsidian_at_page.md",
|
||||||
"content/tils/asdf_direnv.md",
|
"content/tils/asdf_direnv.md",
|
||||||
"content/tils/predictable_seed_data.md",
|
|
||||||
"content/til.md",
|
"content/til.md",
|
||||||
"content/images/predictable_data.png",
|
"content/images/predictable_data.png",
|
||||||
"content/tils/always_generated_ecto_boolean.md",
|
"content/tils/always_generated_ecto_boolean.md",
|
||||||
|
@ -161,7 +162,6 @@
|
||||||
"content/tils/til.njk",
|
"content/tils/til.njk",
|
||||||
"_site/til.xml",
|
"_site/til.xml",
|
||||||
"_site/tils/always_generated_ecto_boolean/index.html",
|
"_site/tils/always_generated_ecto_boolean/index.html",
|
||||||
"_site/tils/pdf_obsidian_at_page/index.html",
|
|
||||||
"_site/images/til-pdf-page.png",
|
"_site/images/til-pdf-page.png",
|
||||||
"node_modules/@11ty/eleventy-plugin-syntaxhighlight/README.md",
|
"node_modules/@11ty/eleventy-plugin-syntaxhighlight/README.md",
|
||||||
"node_modules/@11ty/eleventy-plugin-syntaxhighlight/test/issue-80/index.md",
|
"node_modules/@11ty/eleventy-plugin-syntaxhighlight/test/issue-80/index.md",
|
||||||
|
|
33
content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md
Normal file
33
content/tils/mac_sonoma_zsh_asdf_erlang_elixir.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue