forked from massemanet/distel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.WIN32
45 lines (34 loc) · 1.79 KB
/
INSTALL.WIN32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Distel is compatible with Win32 (tested on 2000 and XP) with Cygwin,
but the installation procedure is more laborious. These instructions
are sufficient but not necessarily optimal - if you know a better way,
please send a note to the mailing list
Step 1: Some random windows hacker admonishes us:
Install Erlang in a directory _without spaces_ in the
path. The default location in "C:\Program Files" won't
work. Having a path without spaces is necessary to use erlc
from cygwin's bash.
But to the rescue jacobg23! (http://code.google.com/u/jacobg23):
You can use Windows short paths (e.g., c:\progra~1\ instead of
c:\Program Files) - so edit your PATH environment variable so
that the path to the erlang executables looks like
c:\progra~1\erl5.5.4 (or whatever) instead. (Ditto for any
config in your .emacs)
Step 2: Edit your PATH environment variable via the System control
panel: remove the quotes from the path to the Erlang
installation.
Step 3: Do a "make".
Step 4: We must now update the ~/.erlang and ~/.emacs files to load
Distel. However, Erlang and Emacs don't use the same algorithm
to find the home directory: Emacs uses the %HOME% environment
variable, and Erlang uses %HOMEDRIVE%\%HOMEPATH%. Both default
to C:\ (as far as I know..)
After figuring out or setting these paths, edit your .erlang
to include (substitute real path):
code:add_pathz("c:/jungerl/lib/distel/ebin").
And update your ~/.emacs to contain:
(add-to-list 'load-path "c:/jungerl/lib/distel/elisp")
(require 'distel)
(distel-setup)
Distel should now work correctly. If you have problems, please send a
note to the mailing list.