| Author |
Message |
|
| Guest |
Posted: Fri Sep 21, 2007 1:37 am |
|
|
|
Guest
|
Hi, I am just starting with Yaws and Erlang so please forgive me if
this is an obvious problem. I am running on MacOS X, if that matters.
I have Erlang shell running and everything them seems OK in that
regard. I installed Yaws with the local set up and it installed the
the config in my ~ folder as well as the shell file in ~\bin. All
seems good and the server starts up with no errors with the defaults.
The only thing which other Mac OS X users may want to note is that I
had to change the IP address from 0.0.0.0 to 127.0.0.1 as the 0's
entry would not resolve. I had run into this before with other
things, I am to understand that 0.0.0.0 will resolve to localhost on
many systems, but not all (an exception that appears to include Mac
OS X). The default configuration for local setup also put a second
entry for g5.local with a working directory as /tmp (the 0.0.0.0 one
had the www examples as its working directory) this is a correct
entry for my development machine as well but confused me as to why
the same machine would have two host entry (seems like a bug).
Perhaps it appeared as a different machine or something? In any event
the 0.0.0.0 thing just seemed like something that might just be a
heads up to other Mac developers as its easy to fix from the config.
The problem I am having is that I am able to connect to the server
but for example the arg.yaws example simply shows me the Erlang code
in line, as if its not being interpreted. As I said, I am new to both
Erlang and Yaws, so I may have missed a step or something. I am
continuing to try and figure it out, if I find a solution before
anyone from this list can tell me what might be an obvious mistake I
will post it here. Very excited about Erlang development as a C/C++
systems programmer for going on 20 years, and having been working
with PHP for a couple or so but have been running into some walls
with resources as my sites # of connected users go up. Erlang appears
at least so far to provide an elegant solution over spawning OS
threads for keeping the resources the minimum, as well as other
benefits
Regards,
Adam
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 21, 2007 7:47 am |
|
|
|
Guest
|
Adam Hall wrote:
>
> The only thing which other Mac OS X users may want to note is that I
> had to change the IP address from 0.0.0.0 to 127.0.0.1 as the 0's
> entry would not resolve. I had run into this before with other
> things, I am to understand that 0.0.0.0 will resolve to localhost on
> many systems, but not all (an exception that appears to include Mac
> OS X). The default configuration for local setup also put a second
> entry for g5.local with a working directory as /tmp (the 0.0.0.0 one
> had the www examples as its working directory) this is a correct
> entry for my development machine as well but confused me as to why
> the same machine would have two host entry (seems like a bug).
> Perhaps it appeared as a different machine or something? In any event
> the 0.0.0.0 thing just seemed like something that might just be a
> heads up to other Mac developers as its easy to fix from the config.
>
I'm pretty sure (like very very sure) that bind to 0.0.0.0
works the same on macosx as on other unices.
as in:
Eshell V5.5.5 (abort with ^G)
1> gen_tcp:listen(7777, [{ip, {0,0,0,0}}]).
{ok,#Port<0.103>}
2> gen_tcp:listen(7778, [{ip, {127,0,0,1}}]).
{ok,#Port<0.105>}
Thus binding to 0.0.0.0 just means that we bind
to all interfaces on the host. Normal.
> The problem I am having is that I am able to connect to the server
> but for example the arg.yaws example simply shows me the Erlang code
> in line, as if its not being interpreted.
This occurs if you have
dav = true
on the server
If you to a normal
# make install
# sudo yaws -i
(or sudo yaws -i --config /path/to/install/etc/yaws.conf)
The system should come up, if it doesn't it's wrong.
The "sudo" part is necessary since the default yaws.conf
use priviliged ports, if you change 80-->8000 and 443-->4433
you don't need the sudo to run the default installation.
> As I said, I am new to both
> Erlang and Yaws, so I may have missed a step or something. I am
> continuing to try and figure it out, if I find a solution before
> anyone from this list can tell me what might be an obvious mistake I
> will post it here. Very excited about Erlang development as a C/C++
> systems programmer for going on 20 years,
Good luck an welcome.
--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 21, 2007 11:41 am |
|
|
|
Guest
|
On Sep 20, 2007, at 8:36 PM, Adam Hall wrote:
> <snip>
> The problem I am having is that I am able to connect to the server
> but for example the arg.yaws example simply shows me the Erlang code
> in line, as if its not being interpreted. As I said, I am new to both
> Erlang and Yaws, so I may have missed a step or something. I am
> continuing to try and figure it out, if I find a solution before
> anyone from this list can tell me what might be an obvious mistake I
> will post it here. Very excited about Erlang development as a C/C++
> systems programmer for going on 20 years, and having been working
> with PHP for a couple or so but have been running into some walls
> with resources as my sites # of connected users go up. Erlang appears
> at least so far to provide an elegant solution over spawning OS
> threads for keeping the resources the minimum, as well as other
> benefits
I had the same problem where my .yaws files would just burp out the
code and not the results on my Mac. It turned out to be that I had
bad end of lines and that confused Yaws. As soon as I fixed the end
of lines to be the Mac rather than Windows sort, everything worked
just fine. (I think that the bad end of lines came from copying code
examples out of PDF files rather than typing it in.)
Hope this helps.
Simon
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|