It looks like the Yaws arg has changed. The Yaws version that's
compatible with ErlyWeb 0.6.2 is Yaws 1.68. If you want to use Yaws
1.73, you would have to build ErlyWeb yourself.

To build ErlyWeb, edit the Emakefile in the ErlyWeb root directory to
make sure the first line points at your Yaws include directory. Then
type 'make'.

Let me know if you encounter more problems.

Yariv

On Oct 12, 1:25 pm, Richard <[EMAIL PROTECTED]> wrote:
> Greetings.  I'm a new user trying to get my head around the ErlyWeb
> (0.6.2) framework, as it sounds like exactly the elegant development
> environment that I've been looking for.
>
> After reading the replies to someone else with a similar problem, I've
> upgraded to the latest Erlang (R11B-5) and YAWS 1.73.  I'm barely
> competent doing Linux program installs, so deviating from the regular
> distribution and installing these was a bit daunting for me (I'm not
> 100% sure it's all perfect, but it does seem to all work now) ;-)
>
> I'm able to get partway through Yariv's tutorial:
> yaws -i>erlyweb:create_app("music", "/home/richard/apps").
>
> info:erlyweb_util:39: creating "/home/richard/apps/music"
> info:erlyweb_util:39: creating "/home/richard/apps/music/src"
> info:erlyweb_util:39: creating "/home/richard/apps/music/src/
> components"
> info:erlyweb_util:39: creating "/home/richard/apps/music/www"
> info:erlyweb_util:39: creating "/home/richard/apps/music/ebin"
> info:erlyweb_util:70: creating "/home/richard/apps/music/src/
> components/html_container_view.et"
> info:erlyweb_util:70: creating "/home/richard/apps/music/src/
> components/html_container_controller.erl"
> info:erlyweb_util:70: creating "/home/richard/apps/music/src/
> music_app_controller.erl"
> info:erlyweb_util:70: creating "/home/richard/apps/music/www/
> index.html"
> info:erlyweb_util:70: creating "/home/richard/apps/music/www/
> style.css"
>
> Notice I didn't get a '/apps/music/src/music_app_view.et' file.  I
> don't know if this means anything.
>
> I edit the yaws.conf file:
> <server flere-imsaho>
>         port = 80
>         listen = 0.0.0.0
>         docroot = /home/richard/apps/music/www
>         appmods = <"/music", erlyweb>
> <opaque>
>  appname = music
> </opaque>
> </server>
>
> {note, I've tried putting the "/music" within quotes and without.}
> Finally, I do a >yaws:restart().
>
> I get the "Welcome to 'music', your new ErlyWeb app." screen if I
> browsehttp://localhost
> However if I usehttp://localhost/music, like in the example, it
> crashes with:
> ERROR erlang  code  crashed:
>  File: appmod:0
> Reason: {{badrecord,arg},
>          [{yaws_arg,opaque,1},
>           {erlyweb,get_app_name,1},
>           {erlyweb,out,1},
>           {yaws_server,deliver_dyn_part,8},
>           {yaws_server,aloop,3},
>           {yaws_server,acceptor0,2},
>           {proc_lib,init_p,5}]}
> Req: {http_request,'GET',{abs_path,"/music"},{1,1}}
>
> Can someone help me get over this hurdle?
>
> Much appreciated,
> Richard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to