Hi All,<br><br>I had the same experience at first until I found the following page for building YAWS under CYGWIN on a windows machine. It works for me. I think the Makefile for windows should be fixed to prevent such headaches. 
<br><br><a href="http://bloggablea.wordpress.com/2007/04/21/building-yaws-for-windows/">http://bloggablea.wordpress.com/2007/04/21/building-yaws-for-windows/</a><br><br>Best regards<br><br>Ahmed Al-Issaei<br><br><div><span class="gmail_quote">
On 9/14/07, <b class="gmail_sendername">Bob Cowdery</b> <<a href="mailto:Bob.Cowdery@smartlogic.com">Bob.Cowdery@smartlogic.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ghalib<br><br>Thanks for that. I hope you can resolve it. I don't think I know enough at the moment but I'm learning.<br><br>Bob<br><br>-----Original Message-----<br>From: <a href="mailto:erlang-questions-bounces@erlang.org">
erlang-questions-bounces@erlang.org</a><br>[mailto:<a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@erlang.org</a>]On Behalf Of Ghalib Suleiman<br>Sent: 14 September 2007 12:16<br>To: <a href="mailto:erlang-questions@erlang.org">
erlang-questions@erlang.org</a><br>Subject: Re: [erlang-questions] Yaws, ErlyWeb and Windows.<br><br><br>Hi Bob, Erlyweb does indeed have a bug on Windows where it doesn't<br>seem to be registering components properly (I ran into this last week
<br>myself), thus making it unusable. There's a slight discussion about<br>it on the Erlyweb Google Group - I plan to hunt down the bug when I'm<br>back at work tomorrow, as I don't have access to a Windows machine at
<br>home.<br><br>-Ghalib<br><br>On Sep 13, 2007, at 11:00 AM, Bob Cowdery wrote:<br><br>> Robert<br>><br>> Thanks very much for that. I will have a go when I'm out the woods.<br>> At the moment the pre-built version is working ok.
<br>><br>> However, I wonder, do you use ErlyWeb because I'm having trouble<br>> with it. I posted a message on the forum yesterday but no replies<br>> yet. Essentially I can't get it to generate code for a MySQL table
<br>> and it can't seem to find the controller that it generated anyway.<br>> In fact it dosn't seem think they are controllers and views.<br>><br>> Any help appreciated.<br>><br>> Bob<br>><br>
> -----Original Message-----<br>> From: <a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@erlang.org</a><br>> [mailto:<a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@erlang.org
</a>]On Behalf Of Robert<br>> Raschke<br>> Sent: 11 September 2007 10:36<br>> To: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> Subject: Re: [erlang-questions] Yaws, ErlyWeb and Windows.
<br>><br>><br>>> Bob Cowdery wrote:<br>>>> Hi All<br>>>><br>>>> Can someone give me the picture on Yaws and ErlyWeb under Windows<br>>>> please<br>>><br>>> I'm sorry about that - to my knowledge there is quite a lot
<br>>> of people running yaws under windows. I don't run windows at<br>>> all any longer - and I'll just have to leave it up to the<br>>> yaws/windows community to write e.g. a proper wiki entry on how to do
<br>>> it. I know for sure that it atleast used to work - I made sure it<br>>> worked once, but it might have gone bad.<br>><br>> Here's how I build yaws on Windows:<br>><br>> My source root is $ROOT.
<br>> Unpack yaws-1.68 into $ROOT/lib/yaws.<br>> Have a folder called $ROOT/extra with the files yaws_generated.erl and<br>> yaws.app (although I forget why I need yaws.app):<br>><br>> yaws_generated.erl:<br>
> %%<br>> %---------------------------------------------------------------------<br>> -<br>> %%% File    : yaws_generated.template<br>> %%% Author  : Klacke <<a href="mailto:klacke@bluetail.com">klacke@bluetail.com
</a>><br>> %%% Purpose :<br>> %%% Created : 10 Jun 2002 by Klacke <<a href="mailto:klacke@bluetail.com">klacke@bluetail.com</a>><br>> %%<br>> %---------------------------------------------------------------------
<br>> -<br>><br>> %% generated code from some environment variables<br>> %% especially VARDIR is important since it controls<br>> %% where the --hup and friends<br>><br>> -module(yaws_generated).<br>> -author('
<a href="mailto:klacke@bluetail.com">klacke@bluetail.com</a>').<br>><br>> -compile(export_all).<br>><br>> version() -> "1.68".<br>><br>> vardir() ->  "C:/yaws/var".<br>><br>
> ctldir() -> "C:/yaws/var/run/yaws".<br>><br>> etcdir() -> "C:/yaws/etc".<br>><br>> % (Or whatever you want your defaults to be.)<br>><br>> yaws.app:<br>> {application, yaws, [
<br>>       {description, "yaws WWW server"},<br>>       {vsn, "1.68"},<br>>       {modules, [<br>>               yaws,<br>>               yaws_app,<br>>               yaws_ticker,<br>
>               yaws_config,<br>>               yaws_server,<br>>               yaws_sup,<br>>               yaws_api,<br>>               yaws_log,<br>>               yaws_ls,<br>>               yaws_debug,
<br>>               yaws_compile,<br>>               yaws_ctl,<br>>               yaws_cgi,<br>>               yaws_zlib,<br>>               yaws_generated,<br>>               mime_type_c,<br>>               mime_types,
<br>>               yaws_session_server,<br>>               yaws_404,<br>>               yaws_revproxy,<br>>               yaws_html,<br>>               yaws_log_file_h,<br>>               yaws_rss,<br>>               yaws_dav,
<br>>               yaws_pam,<br>>               json,<br>>               jsonrpc,<br>>               yaws_jsonrpc,<br>>               yaws_xmlrpc,<br>>               haxe,<br>>               yaws_rpc,
<br>>               yaws_soap_srv,<br>>               yaws_soap_lib<br>>       ]},<br>>       {registered, []},<br>>       {mod, {yaws_app, []}},<br>>       {env, []},<br>>       {applications, [<br>>               kernel,
<br>>               stdlib<br>>       ]}<br>> ]}.<br>><br>> And then I run this batch script:<br>><br>> build_yaws.bat:<br>> @echo off<br>> setlocal<br>><br>> copy /Y extra\yaws_generated.erl lib\yaws\src
<br>> cd lib\yaws\src<br>><br>> set ERLC="C:\Program Files\erl5.5.4\bin\erlc"<br>> set ERL="C:\Program Files\erl5.5.4\bin\erl"<br>><br>> set ERLCOPTS=-W -pa .. -I../include -o ../ebin
<br>> set ERLOPTS=-noshell  -pa ../ebin<br>><br>><br>> %ERLC% %ERLCOPTS% yaws.erl<br>> %ERLC% %ERLCOPTS% yaws_app.erl<br>> %ERLC% %ERLCOPTS% yaws_ticker.erl<br>> %ERLC% %ERLCOPTS% yaws_config.erl<br>> %ERLC% %ERLCOPTS% yaws_server.erl
<br>> %ERLC% %ERLCOPTS% yaws_sup.erl<br>> %ERLC% %ERLCOPTS% yaws_api.erl<br>> %ERLC% %ERLCOPTS% yaws_log.erl<br>> %ERLC% %ERLCOPTS% yaws_ls.erl<br>> %ERLC% %ERLCOPTS% yaws_debug.erl<br>> %ERLC% %ERLCOPTS% yaws_compile.erl
<br>> %ERLC% %ERLCOPTS% yaws_ctl.erl<br>> %ERLC% %ERLCOPTS% yaws_cgi.erl<br>> %ERLC% %ERLCOPTS% yaws_zlib.erl<br>> %ERLC% %ERLCOPTS% yaws_generated.erl<br>> %ERLC% %ERLCOPTS% yaws_session_server.erl<br>> %ERLC% %ERLCOPTS% yaws_404.erl
<br>> %ERLC% %ERLCOPTS% yaws_revproxy.erl<br>> %ERLC% %ERLCOPTS% yaws_html.erl<br>> %ERLC% %ERLCOPTS% yaws_log_file_h.erl<br>> %ERLC% %ERLCOPTS% yaws_rss.erl<br>> %ERLC% %ERLCOPTS% yaws_dav.erl<br>> %ERLC% %ERLCOPTS% yaws_pam.erl
<br>> %ERLC% %ERLCOPTS% json.erl<br>> %ERLC% %ERLCOPTS% jsonrpc.erl<br>> %ERLC% %ERLCOPTS% yaws_jsonrpc.erl<br>> %ERLC% %ERLCOPTS% yaws_xmlrpc.erl<br>> %ERLC% %ERLCOPTS% haxe.erl<br>> %ERLC% %ERLCOPTS% yaws_rpc.erl
<br>> %ERLC% %ERLCOPTS% yaws_soap_srv.erl<br>> %ERLC% %ERLCOPTS% yaws_soap_lib.erl<br>><br>> del /F charset.def<br>> echo. > charset.def<br>><br>> %ERLC% %ERLCOPTS% mime_type_c.erl<br>> %ERL% %ERLOPTS% -s mime_type_c compile
<br>> %ERLC% %ERLCOPTS% mime_types.erl<br>><br>> pause<br>> endlocal<br>><br>><br>> I have also made a small attempt at writing a yaws.bat file, but I<br>> haven't used this in a few years:<br>
><br>> @echo off<br>> setlocal<br>><br>> set HOME=C:/yaws<br>> set yawsdir=C:/yaws/erlang/yaws-1.68<br>><br>> set erl=C:\Program Files\erl5.5.4\bin\erl.exe<br>> set werl=C:\Program Files\erl5.5.4\bin\werl.exe
<br>><br>> set debug=<br>> set daemon=<br>> set interactive=<br>> set trace=<br>> set conf=<br>> set runmod=<br>> set sname=<br>> set heart=<br>> set xpath=<br>> set mnesia=<br>> set id=default
<br>> set pdist=<br>> set erlarg=<br>><br>> :NEXTARG<br>> set arg=%1<br>> shift<br>> if "%arg%"=="" goto ENDARGS<br>><br>> if "%arg%"=="-i" goto INTERACT<br>
> if "%arg%"=="--interactive" goto INTERACT<br>><br>> if "%arg%"=="-w" goto WINTERACT<br>> if "%arg%"=="--winteractive" goto WINTERACT<br>><br>> if "%arg%"=="-D" goto DAEMON
<br>> if "%arg%"=="--daemon" goto DAEMON<br>><br>> if "%arg%"=="-d" goto DEBUG<br>> if "%arg%"=="--debug" goto DEBUG<br>><br>> if "%arg%"=="-t" goto TRACETR
<br>> if "%arg%"=="--tracetraf" goto TRACETR<br>><br>> if "%arg%"=="-T" goto TRACEHT<br>> if "%arg%"=="--tracehttp" goto TRACEHT<br>><br>> if "%arg%"=="-I" goto ID
<br>> if "%arg%"=="--id" goto ID<br>><br>> if "%arg%"=="-x" goto TRACEOUT<br>> if "%arg%"=="--traceout" goto TRACEOUT<br>><br>> if "%arg%"=="--trace" goto TRACE
<br>><br>> if "%arg%"=="-M" goto MNESIADIR<br>> if "%arg%"=="--mnesiadir" goto MNESIADIR<br>><br>> if "%arg%"=="-c" goto CONF<br>> if "%arg%"=="--conf" goto CONF
<br>><br>> if "%arg%"=="-pa" goto PA<br>> if "%arg%"=="--pa" goto PA<br>><br>> if "%arg%"=="-r" goto RUNMOD<br>> if "%arg%"=="--runmod" goto RUNMOD
<br>><br>> if "%arg%"=="-h" goto HUP<br>> if "%arg%"=="--hup" goto HUP<br>><br>> if "%arg%"=="-s" goto STOP<br>> if "%arg%"=="--stop" goto STOP
<br>><br>> if "%arg%"=="-ls" goto LS<br>> if "%arg%"=="--ls" goto LS<br>><br>> if "%arg%"=="-S" goto STATUS<br>> if "%arg%"=="--status" goto STATUS
<br>><br>> if "%arg%"=="-load" goto LOAD<br>> if "%arg%"=="--load" goto LOAD<br>><br>> if "%arg%"=="-j" goto CTLTRACE<br>> if "%arg%"=="--ctltrace" goto CTLTRACE
<br>><br>> if "%arg%"=="-v" goto VERSION<br>> if "%arg%"=="--version" goto VERSION<br>><br>> if "%arg%"=="-sname" goto SNAME<br>> if "%arg%"=="--sname" goto SNAME
<br>><br>> if "%arg%"=="-name" goto NAME<br>> if "%arg%"=="--name" goto NAME<br>><br>> if "%arg%"=="-heart" goto HEART<br>> if "%arg%"=="--heart" goto HEART
<br>><br>> if "%arg%"=="-proto_dist" goto PROTO<br>> if "%arg%"=="--proto_dist" goto PROTO<br>><br>> if "%arg%"=="-erlarg" goto ERLARG<br>> if "%arg%"=="--erlarg" goto ERLARG
<br>><br>> if "%arg%"=="-check" goto CHECK<br>> if "%arg%"=="--check" goto CHECK<br>><br>> goto HELP<br>><br>> :INTERACT<br>> set interactive=true<br>> set debug= -yaws debug
<br>> set daemon=<br>> goto NEXTARG<br>><br>> :WINTERACT<br>> set interactive=true<br>> set debug= -yaws debug<br>> set daemon=<br>> set erl=%werl%<br>> goto NEXTARG<br>><br>> :DAEMON<br>> set daemon= -detached
<br>> goto NEXTARG<br>><br>> :DEBUG<br>> set debug= -boot start_sasl -yaws debug<br>> goto NEXTARG<br>><br>> :TRACETR<br>> set trace= -yaws trace traffic<br>> goto NEXTARG<br>><br>> :TRACEHT
<br>> set trace= -yaws trace http<br>> goto NEXTARG<br>><br>> :ID<br>> set id=%1<br>> shift<br>> goto NEXTARG<br>><br>> :TRACEOUT<br>> set traceoutput= -yaws traceoutput<br>> goto NEXTARG<br>
><br>> :TRACE<br>> set traceoutput= -yaws traceoutput<br>> set trace= -yaws trace traffic<br>> goto NEXTARG<br>><br>> :MNESIADIR<br>> set mnesia= -mnesia dir %1 -run mnesia start<br>> shift<br>> goto NEXTARG
<br>><br>> :CONF<br>> set conf= -conf %1<br>> shift<br>> goto NEXTARG<br>><br>> :PA<br>> set xpath= %xpath% -pa %1<br>> shift<br>> goto NEXTARG<br>><br>> :RUNMOD<br>> set runmod= -runmod %1
<br>> shift<br>> goto NEXTARG<br>><br>> :HUP<br>> set ex="%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl hup<br>> goto NEXTARG<br>><br>> :STOP<br>> set ex="%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl stop
<br>> goto NEXTARG<br>><br>> :LS<br>> set ex="%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl ls<br>> goto NEXTARG<br>><br>> :STATUS<br>> set ex="%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl status
<br>> goto NEXTARG<br>><br>> :LOAD<br>> "%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl load %id% %1 %2 %<br>> 3 %4 %5 %6 %7 %8 %9<br>> goto END<br>><br>> :CTLTRACE<br>> set ex="%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws_ctl trace %1
<br>> shift<br>> goto NEXTARG<br>><br>> :VERSION<br>> "%erl%" -noshell -pa "%yawsdir%/ebin" -s yaws printversion<br>> goto END<br>><br>> :SNAME<br>> set sname= -sname %1<br>> shift
<br>> goto NEXTARG<br>><br>> :NAME<br>> set sname= -name %1<br>> shift<br>> goto NEXTARG<br>><br>> :HEART<br>> set heart= -heart<br>> goto NEXTARG<br>><br>> :PROTO<br>> set pdist= -proto_dist %1
<br>> shift<br>> goto NEXTARG<br>><br>> :ERLARG<br>> set erlarg=%erlarg% %1<br>> shift<br>> goto NEXTARG<br>><br>> :CHECK<br>> mkdir "%HOME%/.yaws/"<br>> mkdir "%HOME%/.yaws/%id%"
<br>> "%erl%" -noshell -pa "%yawsdir%/ebin" %xpath% -s yaws_ctl check %id<br>> % %1 %2 %3 %4 %5 %6 %7 %8 %9<br>> goto END<br>><br>> :ENDARGS<br>><br>> if NOT DEFINED ex goto NOEX<br>
> %ex% %id%<br>> goto END<br>> :NOEX<br>><br>> if "%id%"=="" goto NOID<br>> set id=-yaws id %id%<br>> :NOID<br>><br>> set trace=%trace% %traceoutput%<br>><br>> if "%daemon%%interactive%"=="" goto HELP
<br>><br>> set XEC=%daemon% %heart% -pa "%yawsdir%/ebin" %xpath% %sname% %pdist<br>> % %erlarg% %debug% -s yaws %trace% %conf% %runmod% %mnesia% %id%<br>><br>> set HEART_COMMAND=<br>> if "%heart%%daemon%"=="" goto NOHEART
<br>> echo set HEART_COMMAND="%erl%" %XEC%<br>> set HEART_COMMAND="%erl%" %XEC%<br>><br>> :NOHEART<br>> echo "%erl%" %XEC%<br>> "%erl%" %XEC%<br>> goto END<br>>
<br>> :HELP<br>> echo "usage:  "<br>> echo ""<br>><br>> echo "       yaws -i | --interactive         -- interactive (no<br>> daemon) mode"<br>> echo "       yaws -w | --winteractive        -- interactive (werl) "
<br>> echo "       yaws --daemon                   -- daemon mode"<br>><br>> echo ""<br>><br>> echo ""<br>> echo "       Auxilliary flags for the daemon: "<br>> echo "            --id Id          --  Set system id"
<br>> echo "            --debug          --  debug mode "<br>> echo "            --conf File      --  set config file"<br>> echo "            --tracetraf      --  trace traffic"<br>> echo "            --tracehttp      --  trace http traffic"
<br>> echo "            --traceout       --  trace output to stdout"<br>> echo "            --version        --  print version"<br>> echo "            --pa path        --  add load path"
<br>> echo "            --mnesiadir dir  --  start Mnesia in dir"<br>> echo "            --proto_dist Mod     --  use Mod for distrib"<br>> echo "            --sname xxx      --  start with sname xxx"
<br>> echo "            --name xxx       --  start with name xxx"<br>> echo "            --runmod mod     --  call mod:start/0 at startup"<br>> echo "            --heart          --  auto restart yaws if it
<br>> crashes"<br>> echo "            --erlarg X       --  pass argument X to $erl"<br>><br>> echo ""<br>><br>> echo "ctl functions ... "<br>> echo "        yaws --hup [--id ID]       -- hup the daemon, reload
<br>> conf"<br>> echo "        yaws --stop [--id ID]     -- stop the daemon"<br>> echo "        yaws --status [--id ID]    -- query the daemon status"<br>> echo "        yaws --load Modules        -- load modules"
<br>> echo "        yaws --ls                  -- list Yaws nodes and<br>> their status"<br>> echo "        yaws --ctltrace traffic|http    -- toggle trace of<br>> running daemon"<br>> echo "        yaws --check YawsFile [IncDirs] -- test compile File"
<br>><br>> :END<br>> endlocal<br>><br>><br>><br>> Robby<br>><br>> --<br>> r fullstop raschke around tombob fullstop com<br>><br>><br>> _______________________________________________
<br>> erlang-questions mailing list<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br>> _______________________________________________<br>> erlang-questions mailing list<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions">
http://www.erlang.org/mailman/listinfo/erlang-questions</a><br><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org
</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>_______________________________________________<br>erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote>
</div><br>