Thanks for your small tutorial on CEAN+YAWS :)<br>When I've tried to do the same and used dynamic code in index.yaws instead of your static one I'v got an error:<br><pre>Dynamic compile error: p:/tmp/yaws/index.yaws:3:<br>
can't find include file "p:/PRG/CEAN/erlang/erts-5.5.2/windows/lib/yaws-1.65/include/yaws_api.hrl"<br>generated file at: p:/tmp/yaws/m2.erl<br></pre>
So YAWS from CEAN genarates a platform-specific include instead of a generic variant (which I have in p:/PRG/CEAN/erlang/lib/yaws-1.65/include/yaws_api.hrl ).<br>I seems to me that the problem here is very similar to the problem I had with toolbar module on Kubuntu (BTW on Windows I installed it with CEAN and received:
<br>25> toolbar:start(). <br>** exited: {startup_timeout,toolbar} **)<br><br>Do you have any thoughts how to solve these issues?<br><br>BR,<br>Kirill<br><br><div><span class="gmail_quote">On 11/27/06, <b class="gmail_sendername">
Torbjorn Tornkvist</b> <<a href="mailto:tobbe@tornkvist.org">tobbe@tornkvist.org</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;">
<br>Excellente !!<br><br>And here is a short session showing how to quickly deploy Yaws.<br><br>---------------------------------------------------------------------<br>cean # ./start.sh<br>Erlang (BEAM) emulator version
5.5.2 [source] [async-threads:0] [hipe]<br>[kernel-poll:false]<br><br>Eshell V5.5.2 (abort with ^G)<br>1> cean:install(yaws).<br>+ compiler<br>md5=<<110,234,169,104,95,149,68,50,43,241,10,196,247,222,157,126>>
<br>+ fd_server<br>md5=<<20,226,169,70,190,39,130,177,126,27,19,202,27,102,139,161>><br>+ inets md5=<<19,105,15,109,40,101,51,109,135,112,237,103,3,222,24,177>><br>+ mnesia md5=<<148,166,102,84,120,129,104,128,77,254,79,176,144,36,61,138>>
<br>+ ssl md5=<<177,107,178,165,217,252,116,88,130,146,29,132,216,7,109,65>><br>+ tools md5=<<192,165,89,32,255,13,131,179,97,92,37,255,139,20,171,179>><br>+ xmerl md5=<<162,71,177,169,168,89,150,167,41,136,16,142,95,229,185,226>>
<br>+ xmlrpc md5=<<221,141,193,136,115,42,102,157,76,121,251,167,2,255,64,47>><br>+ yaws md5=<<"\b??+????\b?\tdW?Le">><br>ok<br><br>2> file:make_dir("/tmp/abc").<br>ok<br><br>
3> file:write_file("/tmp/abc/index.yaws", <<"hello world">>).<br>ok<br><br>4> inet:i().<br>Port Module Recv Sent Owner Local Address Foreign Address State<br>Port Module Recv Sent Owner Local Address Foreign Address State
<br>ok<br><br>5><br>GL=[{trace,false},{tmpdir,"/tmp"},{flags,[{auth_log,false},{copy_errlog,false}]}].<br>[{trace,false},{tmpdir,"/tmp"},{flags,[{auth_log,false},{copy_errlog,false}]}]<br><br>6> SL=[{port,8000},{dir_listings, true},{flags,[{access_log,false}]}].
<br>[{port,8000},{dir_listings,true},{flags,[{access_log,false}]}]<br><br>7> yaws:start_embedded("/tmp/abc", SL, GL).<br><br>=INFO REPORT==== 27-Nov-2006::09:44:05 ===<br>Yaws: Listening to <a href="http://127.0.0.1:8000">
127.0.0.1:8000</a> for servers<br> - <a href="http://localhost:8000">http://localhost:8000</a> under /tmp/abc<br>ok<br><br>8> inet:i().<br>Port Module Recv Sent Owner Local Address Foreign Address State<br>87 inet_tcp 0 0 <
0.49.0> localhost:8000 *:* ACCEPTING<br>Port Module Recv Sent Owner Local Address Foreign Address State<br>ok<br>-----------------------------------------------------------------------<br><br>Now, point your browser to:
<a href="http://localhost:8000/">http://localhost:8000/</a><br><br>Cheers, Tobbe<br>(nb: you also got mnesia,ssl,xmerl,xmlrpc,fd_server...etc...very nice!<br><br><br>Christophe Romain wrote:<br>> Hello<br>><br>> The Comprehensive Erlang Archive Network is available for testing.
<br>> CEAN aims to be a central place to find erlang packaged code.<br>><br>> It now includes 193 binary packages, available for 17 platforms,<br>> using R11B-2.<br>> Packages are installed using erlang command line: administration is
<br>> the same regardless of the host system. Multi-host shared<br>> installation is possible: you can build your USB key running your<br>> Erlang application on windows, mac, linux using REPOS repository.<br>>
<br>> All information is on web site <a href="http://cean.process-one.net">http://cean.process-one.net</a><br>><br>> We are actually working on:<br>> - packages classification into categories (if you have any
<br>> suggestion, you're welcome).<br>> - package finder improvement (keywords combination, usage of<br>> description, etc...)<br>> - debian packages generation<br>><br>> We did not test the whole repository, some packages may be broken.
<br>> Any help would be appreciated !<br>> - package description checking<br>> - package testing<br>> - finding missing packages<br>><br>> A build script is almost ready to allow people to build archives from
<br>> a package description file. Then, archives could be integrated to CEAN.<br>> This will be released on the site at <a href="http://cean.process-one.net/">http://cean.process-one.net/</a><br>> contrib/ as soon as tests and documentation will be finished.
<br>><br>> Known issue:<br>> ejabberd available only on MacOS X, Linux x86, Windows<br>> erl_cgi available only on MacOS X PowerPC, Linux x86<br>> gtkNode available only on MacOS X PowerPC, Linux x86<br>> OpenBSD-x86 and SunOS-Sparc are available with R11B-0 in production
<br>> distribution only<br>><br>><br>> Best Regards.<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></blockquote></div><br>