[erlang-questions] Yaws, ErlyWeb and Windows.
Bob Cowdery
Bob.Cowdery@REDACTED
Tue Sep 11 14:23:33 CEST 2007
Thanks Jan,
So many different ways. Before trying this I tried CEAN. It seems to work! I might be on my way.
Bob
-----Original Message-----
From: Jan Jacobs [mailto:hpjcon@REDACTED]
Sent: 10 September 2007 23:12
To: Bob Cowdery
Subject: Re: [erlang-questions] Yaws, ErlyWeb and Windows.
Hi Bob,
I agree on the official way it was hit and miss for me to before I got it
started.
Step 1
If you have a pre-compiled version of YAWS you need to copy it in the lib
directory of the your erlang runtime.
C:\pack\erl5.5.5\lib\yaws-1.68\
Step 2
Create a yaws config file for yaws and place it in the following directory
C:\pack\erl5.5.5\lib\yaws-1.68\ebin\
Step 3
Start a runtime in the following direcoty
C:\pack\erl5.5.5\lib\yaws-1.68\ebin>erl
Step 4
Start yaws
application:start(yaws).
Step 5
Open explore and navigate to http://127.0.0.1:8001/
This should open the YAWS documentation. simular to the web site. This
indicates that yaws is working.
The steps in the other email is to compile yaws on a windows platfrom. It is
steps from me when I update erlang runtimes or yaws versions.
If you need more information on it I will exlain it in more detail.
Cheers
Jan
----- Original Message -----
From: "Bob Cowdery" <Bob.Cowdery@REDACTED>
To: "Jan Jacobs" <hpjcon@REDACTED>
Cc: "Erlang-Questions (E-mail)" <erlang-questions@REDACTED>
Sent: Monday, September 10, 2007 11:20 PM
Subject: RE: [erlang-questions] Yaws, ErlyWeb and Windows.
Hi Jan
Thanks for the response. I'm probably being really thick here but I don't
have that much experience with the way these extensions are added to erlang.
I didn't really understand much of what you said. The first reply you sent
some files, unfortunately yaws.app was blocked. Your first email suggested
it should just run so I copied yaws from the repository (which was
pre-built) into lib, but how do I start yaws?
I'm about to start on a management console for my project and
yaws/erlyweb/mnesia is a preferable approach but I also have a good set of
Java API's to my erlang core and Java/Spring/MySQL is another approach. I
don't know how much pain I will have to go through to get yaws etc working
and build up enough knowledge to use it effectively. The fact that there was
little response does worry me. The project needs to run on Windows, Linux
and OSX but I develop on Windows because that's where I am most of the time.
Sorry to ramble on, just thinking aloud. I'm sure it does work (in fact it
does because the repository version runs in the special erl runtime) but
right now I see a few individuals that have managed to get things working in
their very individual ways. It would be 'nice' to have one official way that
is properly explained and works.
If you could explain in a little more detail what each step does and how to
perform it, it would be greatly appreciated.
Thanks
Bob
-----Original Message-----
From: Jan Jacobs [mailto:hpjcon@REDACTED]
Sent: 09 September 2007 21:30
To: Bob Cowdery
Subject: Re: [erlang-questions] Yaws, ErlyWeb and Windows.
Hi Bob
I have been using YAWS on the Windows platfrom for all my projects and
applications and it works well.
Here is a short list of steps to get yaws to comiple on a Windows box:
Compiling YAWS for Win32
------------------------------
1 Copy yaws-X.XX into lib directory of Erlang
2 Create the following files using the templates in the src direcory of YAWS
- yaws_vsn.erl
- yaws_generated.erl
3 Create the mime_types.erl file from mime_type_c.erl
- Create a file charset.def in the src directory of YAWS
- Compile mime_type_c.erl
- Use the compiled mime_type_c:compile(). to generage mime_types.erl
4 Create yaws.app file
5 Create an Emakefile
I hope this helps.
Cheers
Jan Jacobs
www.econsys.co.za
----- Original Message -----
From: "Bob Cowdery" <Bob.Cowdery@REDACTED>
To: "Erlang-Questions (E-mail)" <erlang-questions@REDACTED>
Sent: Sunday, September 09, 2007 8:00 PM
Subject: [erlang-questions] Yaws, ErlyWeb and Windows.
>
> Hi All
>
> Can someone give me the picture on Yaws and ErlyWeb under Windows please.
> Firstly I've failed pretty dismally to get Yaws working on Windows. I
> compiled and run it on Linux no problem. I found some info on building
> under cygwin and also some batch files to compile natively but both fail
> me right now. I did download the erlang repository (Erlang-Projects.Org)
> and that runs up Yaws fine but it seems to use some tricks to do it and I
> can't see how to just copy the Yaws directory and use it with my existing
> erlang system.
>
> If you have successfully got Yaws working what route did you use - I'd
> rather not run it under cygwin because nothing else in my erlang systems
> need to and I don't see why Yaws should be diferent.
>
> I've also read some posts that suggest ErlyWeb does not work under
> Windows. Does anyone know of any issues?
>
> Thanks for any help.
>
> Bob
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.10/995 - Release Date:
> 2007/09/08 01:24 PM
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007/09/09
10:17 AM
More information about the erlang-questions
mailing list