EUnit install fails

View: New views
4 Messages — Rating Filter:   Alert me  

EUnit install fails

by Steven Edwards-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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? :)

Thanks,

Steven

Re: EUnit install fails

by Kevin A. Smith-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did the build create an ebin directory in the path indicated? Whenever  
I get that error it means erlc is trying to write to a non-existent  
path.

--Kevin
On Oct 21, 2009, at 12:00 PM, 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? :)
>
> Thanks,
>
> Steven


________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org


Parent Message unknown Re: EUnit install fails

by Steven Edwards-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Steven


On Wed, Oct 21, 2009 at 12:56 PM, Richard Carlsson <
carlsson.richard@...> 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
>

Parent Message unknown Re: EUnit install fails

by Steven Edwards-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just got it working--I had to install erlang-dev for make to finish
successfully.

Thanks again!

Steven

On Wed, Oct 21, 2009 at 4:15 PM, Richard Carlsson <
carlsson.richard@...> wrote:

> Steven Edwards wrote:
>
>> ---
>> 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.
>>
>
> That looks like a broken installation to me.
>
>    /Richard
>
> PS. The include_lib directive strips the version number
> from the actual path when it is searching for files,
> so "kernel/include" matches kernel-2.12.5/include.
>