From: Bill R. <bil...@ya...> - 2008-05-20 02:01:05
|
That's good to hear. There is one change that I forgot to mention, which you might consider out of scope I added more distinctive verbiage to the (5?) different "expected directory at line X" messages to make diagnosing problems quicker. I found it helpful, but if you think it's not appropriate, please remove it. BTW, ssl:start() does not crash. >set path=c:\erl5.6.2;%path% >erl Eshell V5.6.2 (abort with ^G) 1> ssl:start(). ok 2> I am aware of how difficult it is to debug a problem long distance, but at this point I can barely read Erlang. So any help would be appreciated. I only plan to develop on Windows, so it's not critical, but I would like to put forth a reasonable effort at a readme file. Thanks ----- Original Message ---- From: Claes Wikstrom <kl...@ta...> To: Bill Robertson <bil...@ya...> Cc: yaws <erl...@li...> Sent: Monday, May 19, 2008 5:45:07 PM Subject: Re: [Erlyaws-list] cygwin install patch (complete) Bill Robertson wrote: > Here it is. I can get yaws to run ok except for SSL. Thanks - patch looks good - applied. /klacke |
From: Bill R. <bil...@ya...> - 2008-05-22 03:07:47
|
Claes Wikström wrote: > > If you post your cygwin readme I'll see if can take a look at the ssl > problem. > > /klacke > I haven't been able to get to this in the last couple of days, so here it is. The is only the first draft. I plan to edit/improve, so suggestions are welcome. The focus was on somebody who uses windows, but may not be familiar with cygwin and/or unix, and is not an idiot. readme.win32 Yaws on Windows (YOW!) To install. You must have cygwin installed. This should include perl, autoconf and make. There may be other packages that are required. It is very useful to have your cygwin bin (c:\cygwin\bin) directories in your path. This allows you to run cygwin commands from a regular cmd propmt. Erlang must be installed and in your path. I find it useful to ignore the default location for erlang, and place it in a directory that does not have spaces in it. e.g. C:\erl5.6.2 It is less annoying if you do much scripting. Extract the yaws archive, e.g. > tar -xzf yaws-1.76.tar.gz Change to the newly created directory, start bash and run configure. I recommend you select something other than the default prefix, because you probably don't want YAWS in your cygwin directories. e.g. > cd yaws-1.76 > bash > ./configure --prefix=/cygdrive/c/erl_stuff/yaws If you're unfamiliar with cygwin, /cygdrive/c/ is the usual way to say c:\. --prefix is configure's standard way of specifying the install directory when installing something via. autoconf. After running configure. You will see a bunch of "checking..." lines. Then it will create the config.status and the include.mk files. After that you will want to build the system with make. > make It should complete without errors. After than, install it. > make install This will create a directory that you specified in configure, and install yaws there. In our example, this will be c:\erlstuff\yaws. Go to that directory and edit yaws.conf in the etc directory. First, is a section like this. <server localhost> port = 80 listen = 0.0.0.0 docroot = /tmp dir_listings = true <auth> realm = foobar dir = / user = foo:bar user = baz:bar </auth> </server> If you have content that you would like to serve up, switch the docroot to that directory, otherwise just comment out or delete this section. There is also a section like this. <server foo> port = 443 docroot = c:/bill/erl/yaws/var/yaws/www listen = 0.0.0.0 dir_listings = true <ssl> keyfile = c:/bill/erl/yaws/etc/yaws-key.pem certfile = c:/bill/erl/yaws/etc/yaws-cert.pem </ssl> </server> SSL ?? Untested: erlang in a directory with spaces in the name (e.g. "Program Files" make local_install |
From: Claes W. <kl...@ta...> - 2008-05-22 11:26:33
|
> > readme.win32 > Brilliant - I checked in the README at the toplevel. Thanks - /klacke |
From: Claes W. <kl...@ta...> - 2008-05-20 08:34:31
|
Bill Robertson wrote: > > There is one change that I forgot to mention, which you might consider out of scope I added more distinctive verbiage to the (5?) different "expected directory at line X" messages to make diagnosing problems quicker. I found it helpful, but if you think it's not appropriate, please remove it. > Ok, > > I am aware of how difficult it is to debug a problem long distance, but at this point I can barely read Erlang. So any help would be appreciated. I only plan to develop on Windows, so it's not critical, but I would like to put forth a reasonable effort at a readme file. > If you post your cygwin readme I'll see if can take a look at the ssl problem. /klacke |