> Assuming that Erlang and Yaws are correctly installed and configured:
> After unzipping the erlyweb-0.6.2.zip file, I see that there are beam
> files under ebin, but there are also makefiles. Does anything need to
> be compiled or can the beam files just be put somewhere?

The .beam files will probably just work as is. I have a lib/ directory  
in my project root (that's an svn:externals entry, in my case), like  
this (some extra files listed to get your bearings):

start.sh
ebin/*.beam (my beams)
src/*.erl (my source)
src/components/*.{et,erl}
www/style.css
lib/erlyweb/Makefile
lib/erlyweb/ebin/*.beam (the pre-included beams)
lib/erlyweb/src/...

Then I launch erl (or yaws) with start.sh that contains (more or less):

--------
#!/bin/sh
APPDIR=`pwd`
FULLPA="-pa $APPDIR -pa $APPDIR/ebin  -pa $APPDIR/lib/erlyweb/ebin"

erl $FULLPA
--------

If you plan to re-compile the beam files (for instance, because you  
have Erlang R12B that has a better compiler for the things that  
erlyweb does, like returning largely pre-formed IOlists), then you'll  
need to modify (in the structure above) lib/erlyweb/Emakefile and  
change the first line:

{"src/erlyweb/*", [debug_info, {outdir, "ebin"}, {i,"/opt/local/lib/ 
yaws/include"}]}.

Change "/opt/local/lib/yaws/include" to the path to your yaws include  
files (that's the path for a MacPorts install that you won't have to  
change if you're on a Mac and installed Yaws from MacPorts), then do  
"make" in lib/erlyweb/. You may need to remove all of the pre-included  
beams in lib/erlyweb/ebin/ to force it to re-compile if it doesn't  
already.

At least that's what I do. You may choose to set it up differently.


> I seem to
> remember that the 0.2 version came with bundles. What's changed these
> days and are there any gotchyas to look out for?
>
> This is the section that I have previously failed at a couple of
> times, so expect me to need lots of help to get this bit right and
> explained well. Thanks.
>
> Oh, and is there an ETA on the 0.7 release? Will there be many
> differences to allow for in the documentation?
>
> Simon
>
> -- 
> simonpeter.org | simonpeter.com | newlife-upc.org |  
> wisconsindistrictnews.org
>
> 

--~--~---------~--~----~------------~-------~--~----~
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