Why does relx not generate a release?

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 the armature, I run relx from my terminal, and the next result is

===> Starting the relx build process ...

===> Allow OTP applications from directories:

    /home/akshat/Desktop/socket/ebin

   /home/akshat/Desktop/socket/deps

  /usr/lib/erlang/lib

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

===> Allow available OTP releases from directories:

     /home/akshat/Desktop/socket/ebin

     /home/akshat/Desktop/socket/deps

     /usr/lib/erlang/lib

The system does not indicate any releases!

I do not understand this message from relx. Doesn't that create a release for me?

How to install hipe?

Update

After completing a new erlang installation, I no longer receive an error message. But rebar still says no releases were set by the system.

+4
1

. erlang , , . relx

, . , , , . relx.config

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

, _rel.

+2

All Articles