2017-09-14 15 views
1

我想從erlang虛擬機啓動一個觀察者,但它失敗了。如何在Mac上安裝erlang觀察器?

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 

我在這裏缺少哪些庫?

對於Ubuntu其sudo apt-get install erlang-observer什麼是Mac的對應?

+0

你試試這個https://gist.github.com/alfredbaudisch/68b99e84c058c82dc264 – GavinBrelstaff

+0

您是如何安裝二郎? 'brew install erlang'我從來沒有遇到過這個問題。 – Dogbert

+0

@Dogbert我試着安裝erlang的brew安裝elixir –

回答

2

您必須升級wxmac的二郎山/ OTP 20:

brew update 
brew upgrade wxmac 
+0

我已經安裝了wxmac 3.0.3.1_1。儘管如此,它拋出了同樣的錯誤。 –

+0

對不起,我沒有正確地讀你的問題。我最近有:observer.start崩潰,這有助於。 – narrowtux

+0

看看這個問題,因爲它有相同的錯誤信息https://stackoverflow.com/questions/37213282/undefined-function-wx-object-start-3 – narrowtux