<div dir="ltr"><div><div><div>Got it to work. I apparently had a few versions of hipe in my Erlang lib dir:<br><br>$ /usr/local/lib/erlang/lib $ ll -ld hipe*<br>drwxr-xr-x 9 root root 4096 Feb 11 2013 hipe-3.10/<br>drwxr-xr-x 9 root root 4096 Mar 1 2013 hipe-3.10.1/<br>
drwxr-xr-x 10 root root 4096 Jul 2 11:31 hipe-3.10.2/<br>drwxr-xr-x 10 root root 4096 Sep 21 17:36 hipe-3.10.2.1/<br><br></div>They must have come from previous erlang installations (compilation from source). The solution was to remove the older versions and leave only the latest one. Maybe relx should be able to handle this?<br>
<br></div>thanks for the responses<br></div><br>Matt<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 September 2013 21:36, Matthew Hegarty <span dir="ltr"><<a href="mailto:mrhegarty@gmail.com" target="_blank">mrhegarty@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>yes it exists. I believe hipe is enabled by default when I compile.<br></div><br></div>
however there is no<br><br> /usr/local/lib/erlang/lib/hipe-3.10/ebin/hipe.beam<br> /usr/local/lib/erlang/lib/hipe-3.10.1/ebin/hipe.beam<br>
<br></div>which is what relx is apparently looking for.<br></div>Do you know where does relx get these paths from?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 September 2013 20:04, Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><div>Did you enable hipe when you compiled? Does /usr/local/lib/erlang/lib/hipe-3.10.2.1/ebin/hipe.beam exist?<span><font color="#888888"><br></font></span></div><span><font color="#888888">
<div> </div>
<div><div>-- <br></div>
<div> Tristan Sloughter<br></div>
<div> <a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a><br></div>
<div> </div>
</div></font></span><div><div>
<div> </div>
<div> </div>
<div>On Thu, Sep 26, 2013, at 12:03 PM, Matthew Hegarty wrote:<br></div>
<blockquote type="cite"><div dir="ltr">hi<br></div>
<div dir="ltr">I compiled Erlang from source (downloaded from <a href="http://erlang.org" target="_blank">erlang.org</a>)<br></div>
<div><div> </div>
<div> </div>
<div><div>On 25 September 2013 17:25, Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span> wrote:<br></div>
<div> </div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I ran into the same thing. I assume you installed Erlang from the Erlang<br></div>
<div>
Solutions repo?<br></div>
<div> </div>
<div>
Install erlang-hipe package. Or remove<br></div>
<div>
/usr/local/lib/erlang/lib/hipe-3.10.2.1 entirely.<br></div>
<div> </div>
<div>
Their packages install a broken hipe app, missing lots of beams, for<br></div>
<div>
some reason. But if you install the hipe package it'll install what is<br></div>
<div>
missing. I told them about this but I haven't heard back.<br></div>
<div> </div>
<div>
--<br></div>
<div>
Tristan Sloughter<br></div>
<div>
<a href="mailto:tsloughter@fastmail.fm" target="_blank">tsloughter@fastmail.fm</a><br></div>
<div> </div>
<div><div> </div>
<div>
On Wed, Sep 25, 2013, at 08:09 AM, Loïc Hoguin wrote:<br></div>
<div>
> Why does it look for hipe at all to begin with?<br></div>
<div>
><br></div>
<div>
> I'll ping tristan about it.<br></div>
<div>
><br></div>
<div>
> On 09/22/2013 10:59 PM, Matthew Hegarty wrote:<br></div>
<div>
> > hi<br></div>
<div>
> > Just starting out so I'm trying to run cowboy's helloworld<br></div>
<div>
> > in cowboy/examples/hello_world, running make fails with:<br></div>
<div>
> ><br></div>
<div>
> > ===> Provider (rlx_prv_discover) failed with: {error,<br></div>
<div>
> > {rlx_app_discovery,<br></div>
<div>
> > [{missing_beam_file,<br></div>
<div>
> > hipe,<br></div>
<div>
> ><br></div>
<div>
> > <<"/usr/local/lib/erlang/lib/hipe-3.10/ebin/hipe.beam">>},<br></div>
<div>
> > {missing_beam_file,<br></div>
<div>
> > hipe,<br></div>
<div>
> ><br></div>
<div>
> > <<"/usr/local/lib/erlang/lib/hipe-3.10.1/ebin/hipe.beam">>}]}}<br></div>
<div>
> ><br></div>
<div>
> > there is no hipe.beam in /usr/local/lib/erlang/lib/hipe-3.10.1/ebin/, it<br></div>
<div>
> > is in /usr/local/lib/erlang/lib/hipe-3.10.2.1/ebin/hipe.beam.<br></div>
<div>
> > I've tried passing the correct dir to relx using --lib-dir but I still<br></div>
<div>
> > get the same error.<br></div>
<div>
> ><br></div>
<div>
> > Any ideas what's going wrong?<br></div>
<div>
> ><br></div>
<div>
> > erl: Erlang R16B02 (erts-5.10.3)<br></div>
<div>
> > relx: 0.0.0+build.275.refca03701<br></div>
<div>
> > rebar: rebar 2.1.0-pre R16B02 20130922_191744 git 2.1.0-pre-46-g78fa8fc<br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> > On 22 September 2013 21:55, Matthew Hegarty <<a href="mailto:mrhegarty@gmail.com" target="_blank">mrhegarty@gmail.com</a><br></div>
<div>
> > <mailto:<a href="mailto:mrhegarty@gmail.com" target="_blank">mrhegarty@gmail.com</a>>> wrote:<br></div>
<div>
> ><br></div>
<div>
> > hi<br></div>
<div>
> > Just starting out so I've got latest versions of apps.<br></div>
<div>
> > in cowboy/examples/hello_world, running make fails with:<br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> ><br></div>
<div>
> > _______________________________________________<br></div>
<div>
> > Extend mailing list<br></div>
<div>
> > <a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br></div>
<div>
> > <a href="http://lists.ninenines.eu:81/listinfo/extend" target="_blank">http://lists.ninenines.eu:81/listinfo/extend</a><br></div>
<div>
> ><br></div>
<div>
><br></div>
<div>
><br></div>
<div>
> --
<br></div>
</div>
<div>> Loïc Hoguin<br></div>
<div> </div>
<div>> Erlang Cowboy<br></div>
<div>
> Nine Nines<br></div>
<div>
> <a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a>
<br></div>
<div><div>> _______________________________________________<br></div>
<div>
> Extend mailing list<br></div>
<div>
> <a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br></div>
<div>
> <a href="http://lists.ninenines.eu:81/listinfo/extend" target="_blank">http://lists.ninenines.eu:81/listinfo/extend</a><br></div>
<div> </div>
<div> </div>
<div>
--
<br></div>
</div>
<div><span><span style="color:rgb(136,136,136)"> Tristan Sloughter</span></span><br></div>
<div><span><span style="color:rgb(136,136,136)">
<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a><br>
</span></span></div>
</blockquote></div>
<div> </div>
</div>
</blockquote></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>