erlang,mnesia and Windows

Jens Peder Terjesen (ETO) <>
Fri Aug 24 16:10:13 CEST 2001


Hi.

Could it be that you should use \ (backslash) instead of / (slash)
as directory delimiter?

Jens

-----Original Message-----
From: Torbjorn Tornkvist [mailto:]
Sent: 24. august 2001 13:20
To: 
Subject: erlang,mnesia and Windows



Hi,

I'm trying to get Mnesia going under Windows.
>From a cygwin rxvt/tcsh I get the following:
-------------
> erl -mnesia dir d:/cygwin/home/tobbe/tmp
Eshell V5.0.2  (abort with ^G)
1> init:get_arguments().
[{root,["D:\\ERL50~1.2"]},
 {progname,["erl"]},
 {mnesia,["dir","d:/cygwin/home/tobbe/tmp"]},
 {home,["C:\\WINDOWS"]}]
2> application:start(mnesia).

=ERROR REPORT==== 24-Aug-2001::11:25:02 ===
application_controller: syntax error before: '/': d:/cygwin/home/tobbe/tmp
{error,{bad_environment_value,"d:/cygwin/home/tobbe/tmp"}}
---------------

But ls/0 works fine (tmp is empty):
---------------
3> ls("d:/cygwin/home/tobbe/tmp").
ok
---------------

And here is another example:
------------------
4> file:open("/cygwin/home/tobbe/tmp/heja",[write]).
{ok,<0.47.0>}
5> 
   <Ctrl-c>
> ls tmp
heja
> erl -mnesia dir /cygwin/home/tobbe/tmp
Eshell V5.0.2  (abort with ^G)
1> application:start(mnesia).
{error,{bad_environment_value,"/cygwin/home/tobbe/tmp"}}

=ERROR REPORT==== 24-Aug-2001::11:58:53 ===
application_controller: syntax error before: '/': /cygwin/home/tobbe/tmp
--------------------

Ideas anyone ?

Cheers /Tobbe



More information about the erlang-questions mailing list