0. Install cygwin with git and make.
1. Install rebar
in cygwin do
export PATH=$PATH:/cygdrive/c/<erlang-install-dir>/bin
e.g. export PATH=$PATH:/cygdrive/c/erl5.10.4/bin
git clone git://github.com/rebar/rebar.git
cd rebar
bootstrap
this will generate rebar and rebar.cmd file.
2. Install LFE
in cygwn do
export PATH=$PATH:/cygdrive/c/<rebar-install-dir>
e.g. export PATH=$PATH:/cygdrive/c/erlang/rebar
git clone --branch develop git://github.com/rvirding/lfe.git
cd lfe
vi Makefile ## change makefile to use rebar.cmd instead of rebar
%s/rebar /rebar.cmd /g
:wq
make
erl -pa /somewhere/lfe/ebin -noshell -s lfe_shell start
Instead of using "erl -pa ..." option, you can copy the whole lfe directory under the <erlang-install-dir>/lib
and use "erl -noshell -s lfe_shell start".
example:
$ pwd
/cygdrive/c/lfe
$ ls
bin ebin Emakefile include Makefile rebar.config test
doc emacs examples LICENSE README.markdown src VERSION
$ erl -pa ebin -noshell -s lfe_shell start
LFE Shell V5.10.4 (abort with ^G)
> (+ 1 2 )
3
> (: lists reverse '(3 2 1))
(1 2 3)
> (halt)
$
lfeshell.bat
set path=%path%;c:\erl5.10.4\bin
erl -pa ebin -noshell -s lfe_shell start
Starting GUI lfe shell
werl -pa \path\to\lfe\ebin
1> lfe_shell:server().
Ref.
https://github.com/rvirding/lfe/wiki/Get-started
https://github.com/rvirding/lfe/blob/develop/doc/lfe_shell.txt
http://stackoverflow.com/questions/4698591/lisp-flavored-erlang-on-windows
http://stackoverflow.com/questions/2835942/how-do-i-install-lfe-on-ubuntu-karmic