gpt4 book ai didi

Erlang:Mnesia 在使用 rebar 发布时无法创建模式

转载 作者:行者123 更新时间:2023-12-02 00:07:23 27 4
gpt4 key购买 nike

当我在启动时调用 mnesia:create_schema 时,程序崩溃了。如果我在 ebin 中运行我的程序而不释放它,它可以找到。错误日志如下:

=INFO REPORT==== 3-Jul-2013::09:44:06 ===
application: eddy
exited: {bad_return,
{{eddy_app,start,[normal,[]]},
{'EXIT',
{{badmatch,
{error,
{'EXIT',
{undef,
[{mnesia_backup,open_write,
["/home/cometeor/eddy/rel/eddy/Mnesia.eddy@127.0.0.1/eddy@127.0.0.1137284464686415846847780"],
[]},
{mnesia_bup,do_apply,4,
[{file,"mnesia_bup.erl"},{line,387}]},
{mnesia_bup,make_initial_backup,3,
[{file,"mnesia_bup.erl"},{line,378}]},
{mnesia_bup,create_schema,2,
[{file,"mnesia_bup.erl"},{line,348}]},
{eddy_database,start,0,
[{file,"src/eddy_database.erl"},{line,24}]},
{eddy_app,start,2,[{file,"src/eddy_app.erl"},{line,16}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,274}]}]}}}},
[{eddy_database,start,0,
[{file,"src/eddy_database.erl"},{line,24}]},
{eddy_app,start,2,[{file,"src/eddy_app.erl"},{line,16}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,274}]}]}}}}

最佳答案

已解决。必须添加

{app, mnesia, [{mod_cond, app}]},

到 reltool.config。

关于Erlang:Mnesia 在使用 rebar 发布时无法创建模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17444760/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com