私はMac64bit、CapitanにErLangをインストールしようとしましたが、私はbrewを使ってインストールしようとしましたが、observer.startを実行しようとすると未定義関数:wx_object.start/3
** (UndefinedFunctionError) undefined function :wx_object.start/3 (module :wx_object is not available)
:wx_object.start(:observer_wx, [], [])
observer_wx.erl:72: :observer_wx.start/0
また、erlangソリューションを使用してerLang otp 18.3をインストールしようとしましたが、同じエラーが発生しました。
EDIT
私はErlangのシェルから直接オブザーバを起動しようとした場合:醸造先で
^CiMac:~ Apple$ erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V7.3 (abort with ^G)
1> observer:start().
** exception error: undefined function wx_object:start/3
in function observer_wx:start/0 (observer_wx.erl, line 72)
EDIT2
iMac:~ Apple$ brew info erlang
erlang: stable 18.3 (bottled), HEAD
Programming language for highly scalable real-time systems
https://www.erlang.org/
/usr/local/Cellar/erlang/18.3 (7,489 files, 273.8M)
Poured from bottle on 2016-05-13 at 12:24:59
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/erlang.rb
==> Dependencies
Build: autoconf ✔, automake ✔, libtool ✔
Required: openssl ✔
Recommended: wxmac ✔
Optional: fop ✘
==> Options
--with-dirty-schedulers
Enable experimental dirty schedulers
--with-fop
Build with fop support
--with-native-libs
Enable native library compilation
--without-docs
Do not install documentation
--without-hipe
Disable building hipe; fails on various OS X systems
--without-wxmac
Build without wxmac support
--HEAD
Install HEAD version
==> Caveats
Man pages can be found in:
/usr/local/opt/erlang/lib/erlang/man
Access them with `erl -man`, or add this directory to MANPATH.
iMac:~ Apple$ which erl
/opt/local/bin/erl
ERLは、次のとおりです。 は/ usr /local/Cellar/erlang/18.3 しかし、どのerl i S:私は/usr/local/Cellar/erlang/18.3/bin/erl
オブザーバが動作します開始した場合/opt/local/lib/erlang/bin/erl
を指す は/ opt/local/binに/ ERL !多くの..に
ErlangにはWxWidgetsがありません。 'brew info erlang'を試してみると、インストールされているバージョンと' wxmac'の依存関係がインストールされているかどうかが表示されます。実際にあなたは正しいエルを始めていると確信していますか?醸造したものは? (コンソールの "erl"は予想されるパスを出力していますか?) –
ありがとう!、brew infoは私が別のパスを参照していることを示しました。編集2を参照してください。 – simo
ソースからErlangをコンパイルするとwxWidgets、crypto、 Erlangを完全に取得する最も簡単な方法は、Erlang Solutionsサイトのパッケージを使用することです:https://www.erlang-solutions.com/resources/download.htmlエンタープライズパッケージ(彼らはボルケン)をインストールしないでくださいが、標準パッケージ時間を節約します。 – tkowal