Unable to start mochiweb

147 views
Skip to first unread message

NavaTux

unread,
Mar 9, 2010, 11:24:30 AM3/9/10
to MochiWeb
Hi friends,

In my Ubntu hardy i installed erlang/otp,mochiweb using
subversion,then i just wanna to start mochiweb,by following these

// after installed mochiweb gone to the /skel dir

navtux @ navtux-desktop:~/mochiweb$ cd /home/navtux/mochiweb/priv/skel

// In the /skel dir i found /.start.sh so i run

navtux @ navtux-desktop:~/mochiweb/priv/skel$ ./start.sh

//then it displayed the below

Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0]
[kernel-poll:false]

=PROGRESS REPORT==== 9-Mar-2010::17:28:06 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.34.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 9-Mar-2010::17:28:06 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.35.0>},
{name,overload},
{mfa,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 9-Mar-2010::17:28:06 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.33.0>},
{name,sasl_safe_sup},
{mfa,
{supervisor,
start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]

=PROGRESS REPORT==== 9-Mar-2010::17:28:06 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.36.0>},
{name,release_handler},
{mfa,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 9-Mar-2010::17:28:06 ===
application: sasl
started_at: nonode <at> nohost
{"init terminating in do_boot",{undef,[{skel,start,[]},{init,start_it,
1},{init,start_em,1}]}}
init terminating in do_boot ()

navtux @ navtux-desktop:~/mochiweb/priv/skel$

after that what i need to do? after doing the above i entered
localhost:8000 in my browser but nothing happened,just error shown
i don't know what happened the above? please explain?
then how to start mochiweb?what is the problem actually?

where i have to install mochiweb? whether i can install any directory
in ubuntu?or not?i installed in my home directory"navtux"


when i gave a command make the error was shown,:

navtux@navtux-desktop:~/mochiweb$ make
(cd src;make all)
make[1]: Entering directory `/home/navtux/mochiweb/src'
erlc -W -I ../include +debug_info -o ../ebin mochifmt.erl
./mochifmt.erl:372: can't find include lib "eunit/include/eunit.hrl"
make[1]: *** [../ebin/mochifmt.beam] Error 1
make[1]: Leaving directory `/home/navtux/mochiweb/src'
make: *** [all] Error 2

why this error happened?here what goes wrong?
if i wanna to change port no means where i have to change it?

Bob Ippolito

unread,
Mar 9, 2010, 11:31:45 AM3/9/10
to moch...@googlegroups.com
You don't start mochiweb, you build a server using mochiweb and start
that. You're trying to start the project skeleton which will not work.

Perhaps you should find a higher level framework to use in order to
build your app. Frankly speaking, mochiweb isn't a great tool for new
users to Erlang.

> --
> You received this message because you are subscribed to the Google Groups "MochiWeb" group.
> To post to this group, send email to moch...@googlegroups.com.
> To unsubscribe from this group, send email to mochiweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mochiweb?hl=en.
>
>

NavaTux

unread,
Mar 9, 2010, 11:34:03 AM3/9/10
to MochiWeb
Just i wanna to test the one developed application using mochiweb,the
application was already developed i wanna to run it,help me to start
the mochiweb server

Kunthar

unread,
Mar 9, 2010, 11:35:06 AM3/9/10
to moch...@googlegroups.com

Steve Davis

unread,
Mar 9, 2010, 9:05:36 PM3/9/10
to MochiWeb
Hi Nava,

Surely if that's all what you want to (wanna?) do, then you should be
able to run:

application:start(myapp).

As Bob, said, a fully developed app should kick off the mochiweb
server for you.

If this is not the case, then you'll need to provide a bit more detail
if you need assistance.

Best,
Steve


On Mar 9, 10:34 am, NavaTux <navaneetha...@gmail.com> wrote:
> Just i wanna to test the one developed application using mochiweb,the
> application was already developed i wanna to run it,help me to start

> the mochiweb server ...

NavaTux

unread,
Mar 12, 2010, 4:20:22 AM3/12/10
to MochiWeb
sure friend, I started my work freshly In my fresh jaunty i followed
the tutorial http://wiki.github.com/erlang/otp/installation ,Nice one
just i installed erlang 12 Version then i tried to install OTP13 but
failed to make,then when i install OTP11 was fine,then i tried to
start mochiweb was not good but nitrogen was started fine,nitrogen
works..

just here what i wanna ask,

SOme fuss between erlang12 version with
OTP13 version??

Is nitrogen make better performance?Is
mochiweb preinstalled with nitrogen?

Is any way to build mochiweb concurrently
with nitrogen??

Reply all
Reply to author
Forward
0 new messages