[erlang-questions] Eunit installation

Edward Stow ed.stow@REDACTED
Tue Dec 9 12:02:02 CET 2008


Hi,

I am a total noob wrt Erlang having just started with the language and
cannot get eunit installed.

I have installed erlang on Ubuntu 8.10 with aptitude.

The versions for Erlang I guess are in the RELEASES file.

$ cat /usr/lib/erlang/releases/RELEASES
[{release,"OTP  APN 181 01","R12B","5.6.3",
          [{kernel,"2.12.3","/usr/lib/erlang/lib/kernel-2.12.3"},
           {stdlib,"1.15.3","/usr/lib/erlang/lib/stdlib-1.15.3"},
           {sasl,"2.1.5.3","/usr/lib/erlang/lib/sasl-2.1.5.3"}],
          permanent}].

eunit is not included in the /usr/lib/erlang/lib directory.

The instructions at the download page state that "[the] easiest way to
correct the problem is to manually copy the eunit.hrl file to the
installation directory." What is the installation directory?
/usr/lib/erlang  ?

I tried to make eunit from source:

$sudo svn export  http://svn.process-one.net/contribs/trunk/eunit eunit
$cd eunit
$sudo make

but have the following messages and errors

edward@REDACTED:~/eunit$ sudo make
make[1]: Entering directory `/home/edward/eunit/src'
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_autoexport.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_striptests.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_tests.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_server.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_proc.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_serial.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_test.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_lib.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_data.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin eunit_tty.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin code_monitor.erl
erlc -pa ../ebin -W -I../include +warn_unused_vars +nowarn_shadow_vars
+warn_unused_import -o../ebin file_monitor.erl
./file_monitor.erl:39: can't find include lib "eunit/include/eunit.hrl"
make[1]: *** [../ebin/file_monitor.beam] Error 1
make[1]: Leaving directory `/home/edward/eunit/src'
make: *** [subdirs] Error 2



Thanks

-- 

Edward



More information about the erlang-questions mailing list