[erlang-questions] EUnit install fails

Steven Edwards cureadvocate@REDACTED
Wed Oct 21 20:10:00 CEST 2009

It didn't.

I created the ebin directory and re-ran make.  It got further, but now fails
with this message:

erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_data.erl
./eunit_data.erl:29: can't find include lib "kernel/include/file.hrl"
./eunit_data.erl:337: record file_info undefined
./eunit_data.erl:611: record file_info undefined
make[1]: *** [../ebin/eunit_data.beam] Error 1
make[1]: Leaving directory `/home/steven/eunit/src'
make: *** [subdirs] Error 2

/usr/lib/erlang/lib contains kernel-2.12.5, but no kernel. ./kernel-2.12.5
lacks an include directory.  find / -type f -name file.hrl returns nothing.

Thanks for your help.


On Wed, Oct 21, 2009 at 12:56 PM, Richard Carlsson <
carlsson.richard@REDACTED> wrote:

> Steven Edwards wrote:
>> I cloned the eunit trunk this morning (with git svn clone), cd'd to the
>> eunit directory and ran make--then sudo make.  Both return the following
>> error:
>> ---
>> make[1]: Entering directory `/home/steven/eunit/src'
>> erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
>> +warn_unused_import -o../ebin eunit_autoexport.erl
>> /home/steven/eunit/src/../ebin/eunit_autoexport.bea#: error writing file
>> make[1]: *** [../ebin/eunit_autoexport.beam] Error 1
>> make[1]: Leaving directory `/home/steven/eunit/src'
>> make: *** [subdirs] Error 2
>> ---
>> Should I just try again in a couple days? :)
> Did the git svn clone include the empty ebin directory, and if so,
> did you check the write permissions?
>    /Richard

More information about the erlang-questions mailing list