5

My relx configuration

{release,{socket,"0.1.0"}}.
{extend_start_script,true}.

My .app file

{application,socket,
         [{description,[]},
          {vsn,"1"},
          {registered,[]},
          {applications,[kernel,stdlib,cowboy]},
          {mod,{socket,[]}},
          {env,[{http_port,8080}]},
          {modules,[socket_app,socket_socket_handler,socket_sup]}]}.

After compiling the application using rebar I run relx from my terminal and the following is the output that I get

===> Starting relx build process ...

===> Resolving OTP Applications from directories:

    /home/akshat/Desktop/socket/ebin

   /home/akshat/Desktop/socket/deps

  /usr/lib/erlang/lib

===> Missing beam file hipe <<"/usr/lib/erlang/lib/hipe-3.10.2/ebin/hipe.beam">>

===> Resolving available OTP Releases from directories:

     /home/akshat/Desktop/socket/ebin

     /home/akshat/Desktop/socket/deps

     /usr/lib/erlang/lib

No releases have been specified in the system!

I don't understand this message from relx. Does it not create the release for me?

How do I install hipe?

Update

After doing a fresh install of erlang I no longer get hipe error message. But rebar still says no releases have been specified by the system.

4

2 回答 2

3

在进入 rebar3 项目的根目录并运行命令之前rebar3 compile,我遇到了完全相同的问题。rebar3 release它工作完美。

$ > ls
enter code here
chatx   rebar3
$ > cd chatx/
$ > rebar3 compile
    ===> Verifying dependencies...
    ===> Compiling chatx
$ > rebar3 release
    ===> Verifying dependencies...
    ===> Compiling chatx
    ===> Starting relx build process ...
    ===> Resolving OTP Applications from directories:

      /Users/studio/erlang/chatx/_build/default/lib
      /Users/studio/erlang/chatx/apps
      /Users/studio/kerl/20.2/lib

    ===> Resolved chatx-0.1.0
    ===> Dev mode enabled, release will be symlinked
    ===> release successfully created!
于 2018-08-02T20:19:22.853 回答
2

得到这个工作。重新安装 erlang 消除了第一个问题,即 hipe 错误消息。relx 是什么意思

系统未指定任何版本

是我没有指定一个应用程序来组装发布。我的理解是,由于我只有一个应用程序,我不需要明确指定它。所以我的 relx.config 文件现在看起来像

{release,{socket,"0.1.0"},[socket]}.
{extend_start_script,true}.

这有效,我现在在我的 _rel 文件夹中有一个版本。

于 2013-11-03T19:41:18.157 回答