由于不同開源軟體對 erlang 版本的選取有所不同,可能會存在需要多 erlang 版本的情況。目前已知
riak requires erlang r15b01. note: don't use erlang version r15b02 or r15b03, for the moment, as it causes an error with riak-admin status commands.
開源元件組目前選取的版本為 otp_src_17.0.tar.gz 。
安裝指令
<a href="http://my.oschina.net/moooofly/blog/342039#">?</a>
1
2
3
4
<code>wget http:</code><code>//erlang</code><code>.org</code><code>/download/otp_src_17</code><code>.0.</code><code>tar</code><code>.gz</code>
<code>tar</code> <code>zxvf otp_src_17.0.</code><code>tar</code><code>.gz</code>
<code>cd</code> <code>otp_src_17.0</code>
<code>.</code><code>/configure</code> <code>--with-ssl &&</code><code>make</code> <code>&&</code><code>make</code> <code>install</code>
在大多數 erlang 應用中 crypto 庫都是必須的,是以在 configure 的時候最好使用 --with-ssl 否則後續會遇到麻煩。
另外如果希望能夠通過 appmon 檢視 erlang 的程序監督結構資訊,則需要先成功安裝 wxwidgets 後再安裝 erlang 。
可能遇到的問題:
1.在 linux 下編譯 windows 上挂在過來的檔案時會出現下面的錯誤,未進行解決。
<code>setuid</code><code>/gid</code> <code>script is writable by world.</code>
據說是因為權限問題。
2.在成功源碼安裝了 erlang 之後,進入 erlang shell 後執行 crypto:start() ,若傳回 ok 則表示一切正常。若出現
<code>{error, {load_failed,</code><code>"failed to load nif library: '/usr/local/lib/erlang/lib/crypto-2.0/priv/lib/crypto.so: undefined symbol: enif_make_new_binary'"</code><code>}}</code>