Reputation: 500
I am trying to start an observer from erlang VM, but it's failing.
iex(1)> :observer.start
** (UndefinedFunctionError) function :wx_object.start/3 is undefined (module :wx_object is not available)
:wx_object.start(:observer_wx, [], [])
observer_wx.erl:68: :observer_wx.start/0
Which libraries I am missing here?
For Ubuntu its sudo apt-get install erlang-observer
What is corresonding for Mac?
Upvotes: 3
Views: 1832
Reputation: 84
You have to uninstall erlang and install wxmac, after that install erlang again.
asdf uninstall erlang <VERSION>
brew install wxmac
asdf install erlang <VERSION>
Upvotes: -1
Reputation: 3968
Just for completeness, in case you are using MacPorts like I am, the following command fixed the error above for me:
sudo port install erlang +hipe +ssl +odbc +wxwidgets
Upvotes: 2
Reputation: 703
You have to upgrade wxmac
for Erlang/OTP 20:
brew update
brew upgrade wxmac
Upvotes: 3