Running new_mochiweb.erl with cygwin

19 views
Skip to first unread message

Sameer Gupta

unread,
Nov 9, 2009, 7:56:19 PM11/9/09
to MochiWeb
Hello,

I have installed erlang on windows and I am trying to run
new_mochiweb.erl. I see this error. I am new to both erlang &
mochiweb. Can somebody explain what this error is about and how to get
around it?

Before running new_mochiweb.erl, I compiled the mochiweb using
mochiweb/make.

My cygwin bash output:

Sam@Sam-PC ~/mochiweb-read-only
$ ./scripts/new_mochiweb.erl myapp ../.
./myapp/
./myapp/support/
include.mk
start.sh
start-dev.sh
./myapp/src/
skel_web.erl
skel_sup.erl
skel_deps.erl
skel_app.erl
skel.hrl
skel.erl
skel.app
Makefile
./myapp/priv/
./myapp/priv/www/
index.html
Makefile
./myapp/include/
./myapp/ebin/
skel_web.beam
skel_sup.beam
skel_deps.beam
skel_app.beam
skel.beam
skel.app
./myapp/doc/
skel_web.html
skel_sup.html
skel_deps.html
skel_app.html
skel.html
./myapp/deps/
escript: exception error: no match of right hand side value
{error,enotsup}
in function mochiweb_skel:skelcopy/2
in call from erl_eval:do_apply/5
in call from erl_eval:expr/5
in call from erl_eval:local_func/5
in call from escript:interpret/3
in call from escript:start/1
in call from init:start_it/1
in call from init:start_em/1

Sam@Sam-PC ~/mochiweb-read-only
$

Thanks.

Best
Sameer

Bob Ippolito

unread,
Nov 9, 2009, 9:25:02 PM11/9/09
to moch...@googlegroups.com
On Mon, Nov 9, 2009 at 4:56 PM, Sameer Gupta <guptas...@gmail.com> wrote:
>
> I have installed erlang on windows and I am trying to run
> new_mochiweb.erl. I see this error. I am new to both erlang &
> mochiweb. Can somebody explain what this error is about and how to get
> around it?

Nobody on the mochiweb team uses Windows for Erlang development. Mac
OS X, FreeBSD and Linux are known to work. {error,enotsup} sounds like
it's trying to do something unsupported (my guess is the symbolic link
in deps).

-bob

Sameer Gupta

unread,
Nov 9, 2009, 11:59:05 PM11/9/09
to MochiWeb
Thanks, Bob.

Can you tell me which Linux distro I should download so that I can
continue to get support from the community? And from where to
download? The main purpose is to run Erlang and Mochiweb.

I think, I will be running this as virtual machine. Not sure.

Thanks.

Best
Sameer

On Nov 10, 7:25 am, Bob Ippolito <b...@redivi.com> wrote:

Bob Ippolito

unread,
Nov 10, 2009, 12:17:03 PM11/10/09
to moch...@googlegroups.com
We currently use CentOS, but we have used Ubuntu in the past. Debian
or anything else should work just fine. The only unsupported platform
really is Windows, any sufficiently unix-like OS should have no
problems.
Reply all
Reply to author
Forward
0 new messages