:observer.start() broken after updating wxWidgets

:observer's color scheme was off for Dark Mode on Big Sur, so I googled and followed the steps here to fix it.

Afterwards when running iex I started getting:

>iex /usr/local/Cellar/elixir/1.11.3/bin/elixir: line 230: exec: erl: not found

I then ran brew reinstall elixir

Running iex now worked, however :observer.start() didn’t.

Any ideas?

>iex
Erlang/OTP 23 [erts-11.1.6] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]

Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :observer.start()

18:44:04.539 [error] WX Failed loading 'wxe_driver'@'/usr/local/Cellar/erlang/23.2.2/lib/erlang/lib/wx-1.9.2/priv'

{:error,
 {{:load_driver,
   'dlopen(/usr/local/Cellar/erlang/23.2.2/lib/erlang/lib/wx-1.9.2/priv/wxe_driver.so, 2): Library not loaded: /usr/local/opt/wxmac/lib/libwx_osx_cocoau_stc-3.0.dylib\n  Referenced from: /usr/local/Cellar/erlang/23.2.2/lib/erlang/lib/wx-1.9.2/priv/wxe_driver.so\n  Reason: image not found'},
  [
    {:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]},
    {:wx, :new, 1, [file: 'wx.erl', line: 115]},
    {:observer_wx, :init, 1, [file: 'observer_wx.erl', line: 107]},
    {:wx_object, :init_it, 6, [file: 'wx_object.erl', line: 404]},
    {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}
  ]}}
1 Like

Discovered asdf while troubleshooting. Reinstalled erlang, elixir using asdf and it seems to be working now.

1 Like