1.首先添加p1_mysql的網址列表:flatmap()rebar.config.script文件的功能,
CfgDeps = lists:flatmap(
fun({mysql, true}) ->
[{p1_mysql, ".*", {git, "git://github.com/processone/mysql"}}];
({pgsql, true}) ->
[{p1_pgsql, ".*", {git, "git://github.com/processone/pgsql"}}];
({pam, true}) ->`enter code here`
[{p1_pam, ".*", {git, "git://github.com/processone/epam"}}];
({zlib, true}) ->
[{p1_zlib, ".*", {git, "git://github.com/processone/zlib"}}];
({stun, true}) ->
[{p1_stun, ".*", {git, "git://github.com/processone/stun"}}];
({json, true}) ->
[{jiffy, ".*", {git, "git://github.com/davisp/jiffy"}}];
({iconv, true}) ->
[{p1_iconv, ".*", {git, "git://github.com/processone/eiconv"}}];
({http, true}) ->
[{ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse"}},
{lhttpc, ".*", {git, "git://github.com/esl/lhttpc"}}];
({lager, true}) ->
[{lager, ".*", {git, "git://github.com/basho/lager"}}];
({lager, false}) ->
[{p1_logger, ".*", {git, "git://github.com/processone/p1_logger"}}];
(_) ->
[]`enter code here`
end, Cfg)
2.After添加網址列表:flatmap功能,添加一個命名爲p1_mysql文件夾deps文件夾中的ejabberd-13.10並放置從github.com/processone/mysql鏈接下載的文件。並在編譯ejabberd之後在p1_mysql文件夾中創建梁文件的ebin目錄。
3.然後通過發佈./rebar get-deps來運行ejabberd-13.10,然後編譯(make),並通過make install來安裝beam文件。
4.現在啓動ejabberd服務器。
請將您的錯誤信息格式化爲可讀性,方法與看到ti相同。 –
只是一般性評論@BABUK:如果你回答自己的問題,發佈答案而不是編輯問題會好得多。對於可能有相同問題的人來說,更清楚的是如何解決問題,並且獲得更多積分!接受你自己的答案是完全合理的...... – sanmiguel