<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Thank you! <span style="line-height: 1.7;">I made a mistake in Emakefile - outdir is written as "ourdir". So the beam are exported to the root directory for that module when I do "erl -make".</span></div><div style="position:relative;zoom:1"><br></div><div style="position:relative;zoom:1">--<br><div>hao</div><br><br> <div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2015-12-19 14:41:41, "Kenneth Lakin" <kennethlakin@gmail.com> wrote:
>On 12/18/2015 08:27 PM, Hao wrote:
>> Hi
>>
>> I tried the erlcount example. when I downloaded the source code from
>> website http://learnyousomeerlang.com/
>> Then when I run, I had a bad_return, any idea why?
>>
>> -----------
>> [jusfeel@localhost learn-you-some-erlang]$ erl -env ERL_LIBS "."
>
>It looks like erlang doesn't know where to find the .beam files for the
>ppool application. You can tell Erlang to search additional directories
>for .beam files with the -pa command line option.
>
>Try this:
>
>$ cd learn-you-some-erlang/ppool-1.0
>$ erlang -pa ebin/
>
>Then do
>
>application:start(ppool).
>
>in the Erlang shell.
>
>If that gives the same error, do
>
>make:all().
>
>then try application:start(ppool). again.
>
>
>
>
>
</pre></div>