Erlang/OTP Forums

Author Message

<  Erlang Web mailing list  ~  [Erlangweb-users] erlangweb can't start with yaws.

start2046
Posted: Tue Nov 03, 2009 11:44 am Reply with quote
User Joined: 28 Oct 2009 Posts: 19
Hi all,
I've just tried erlangweb, but unfortunately, the script does't work with yaws.

Step by stepy, I followed the erlangweb wiki: http://wiki.erlang-web.org/Install :
  1. ./bin/compiler.erl yaws
  2. ./bin/start.erl yaws
  3. ./bin/start_interactive yaws  ---- Crash report occured here
While the command ./bin/start_interactive (no yaws argument) can start inets successfully, and I can get the erlangweb-start message from my browser.

From the output, I guess this report will be valuable for this problem:
Quote:
=SUPERVISOR REPORT==== 3-Nov-2009::18:19:00 ===
     Supervisor: {local,yaws_sup_restarts}
     Context:    start_error
     Reason:     {'EXIT',{error,could_not_load_driver}}
     Offender:   [{pid,undefined},
                  {name,yaws_sendfile},
                  {mfa,{yaws_sendfile_compat,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]
I've tested the yaws_sendfile_compat module by calling: yaws_sendfile_compat:start_link()  in the erlang vm, it looks like works.

So has anyone here got this problem? or what can I do next?
If anymore information required, please let me know. btw, any suggestions will be appreciated.

Thanks in advance.
Eric

*******************************************************************************************************
The following is the whole output:
Quote:
Eshell V5.6.5  (abort with ^G)
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.37.0>},
                       {name,alarm_handler},
                       {mfa,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.38.0>},
                       {name,overload},
                       {mfa,{overload,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.36.0>},
                       {name,sasl_safe_sup},
                       {mfa,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.39.0>},
                       {name,release_handler},
                       {mfa,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: sasl
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,ssl_sup}
             started: [{pid,<0.45.0>},
                       {name,ssl_broker_sup},
                       {mfa,{ssl_broker_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,ssl_sup}
             started: [{pid,<0.46.0>},
                       {name,ssl_manager},
                       {mfa,{ssl_manager,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,ssl_sup}
             started: [{pid,<0.47.0>},
                       {name,ssl_connection},
                       {mfa,{ssl_connection_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: ssl
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,crypto_sup}
             started: [{pid,<0.52.0>},
                       {name,crypto_server},
                       {mfa,{crypto_server,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: crypto
          started_at: nonode@nohost
1>
=INFO REPORT==== 3-Nov-2009::19:35:46 ===
e_lang module: error during loading file: "/home/sunny/codes_in_mercurial/erlang-web/config/languages/en.conf", reason:enoent
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,kernel_safe_sup}
             started: [{pid,<0.62.0>},
                       {name,timer_server},
                       {mfa,{timer,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,1000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_sup}
             started: [{pid,<0.68.0>},
                       {name,mnesia_event},
                       {mfa,{mnesia_sup,start_event,[]}},
                       {restart_type,permanent},
                       {shutdown,30000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.70.0>},
                       {name,mnesia_monitor},
                       {mfa,{mnesia_monitor,start,[]}},
                       {restart_type,permanent},
                       {shutdown,3000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.71.0>},
                       {name,mnesia_subscr},
                       {mfa,{mnesia_subscr,start,[]}},
                       {restart_type,permanent},
                       {shutdown,3000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.72.0>},
                       {name,mnesia_locker},
                       {mfa,{mnesia_locker,start,[]}},
                       {restart_type,permanent},
                       {shutdown,3000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.73.0>},
                       {name,mnesia_recover},
                       {mfa,{mnesia_recover,start,[]}},
                       {restart_type,permanent},
                       {shutdown,180000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.74.0>},
                       {name,mnesia_tm},
                       {mfa,{mnesia_tm,start,[]}},
                       {restart_type,permanent},
                       {shutdown,30000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.75.0>},
                       {name,mnesia_checkpoint_sup},
                       {mfa,{mnesia_checkpoint_sup,start,[]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.76.0>},
                       {name,mnesia_snmp_sup},
                       {mfa,{mnesia_snmp_sup,start,[]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.77.0>},
                       {name,mnesia_controller},
                       {mfa,{mnesia_controller,start,[]}},
                       {restart_type,permanent},
                       {shutdown,3000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_kernel_sup}
             started: [{pid,<0.78.0>},
                       {name,mnesia_late_loader},
                       {mfa,{mnesia_late_loader,start,[]}},
                       {restart_type,permanent},
                       {shutdown,3000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,mnesia_sup}
             started: [{pid,<0.69.0>},
                       {name,mnesia_kernel_sup},
                       {mfa,{mnesia_kernel_sup,start,[]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: mnesia
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,eptic}
             started: [{pid,<0.81.0>},
                       {name,e_hook},
                       {mfa,{e_hook,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,eptic}
             started: [{pid,<0.82.0>},
                       {name,e_dict},
                       {mfa,{e_dict,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,eptic}
             started: [{pid,<0.83.0>},
                       {name,e_session},
                       {mfa,{e_session,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,eptic}
             started: [{pid,<0.84.0>},
                       {name,e_component},
                       {mfa,{e_component,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,eptic}
             started: [{pid,<0.85.0>},
                       {name,e_logger},
                       {mfa,{e_logger,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: eptic
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: wpart
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
         application: wparts
          started_at: nonode@nohost
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,yaws_sup}
             started: [{pid,<0.97.0>},
                       {name,yaws_log},
                       {mfa,{yaws_log,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
1>
=INFO REPORT==== 3-Nov-2009::19:35:46 ===
Yaws: Using config file /home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf
1>
=INFO REPORT==== 3-Nov-2009::19:35:46 ===
Ctlfile : /home/sunny/.yaws/yaws/erlangweb_test/CTL
1>
=INFO REPORT==== 3-Nov-2009::19:35:46 ===
Yaws: Listening to 0.0.0.0:8000 for <1> virtual servers:
 - http://localhost:8000 under /home/sunny/codes_in_mercurial/erlang-web/docroot
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,yaws_sup}
             started: [{pid,<0.98.0>},
                       {name,yaws_server},
                       {mfa,
                        {yaws_server,start_link,
                         [{env,false,false,false,
                           {file,
                            "/home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf"},
                           false,false,"default"}]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,yaws_sup_restarts}
             started: [{pid,<0.108.0>},
                       {name,yaws_session_server},
                       {mfa,{yaws_session_server,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,yaws_sup_restarts}
             started: [{pid,<0.110.0>},
                       {name,yaws_rss},
                       {mfa,{yaws_rss,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
1>
=PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
          supervisor: {local,yaws_sup_restarts}
             started: [{pid,<0.111.0>},
                       {name,yaws_event_manager},
                       {mfa,
                           {gen_event,start_link,
                               [{local,yaws_event_manager}]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
1>
=SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 ===
     Supervisor: {local,yaws_sup_restarts}
     Context:    start_error
     Reason:     {'EXIT',{error,could_not_load_driver}}
     Offender:   [{pid,undefined},
                  {name,yaws_sendfile},
                  {mfa,{yaws_sendfile_compat,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

1>
=SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 ===
     Supervisor: {local,yaws_sup}
     Context:    start_error
     Reason:     shutdown
     Offender:   [{pid,undefined},
                  {name,yaws_sup_restarts},
                  {mfa,{yaws_sup_restarts,start_link,[]}},
                  {restart_type,transient},
                  {shutdown,infinity},
                  {child_type,supervisor}]

1>
=CRASH REPORT==== 3-Nov-2009::19:35:46 ===
  crasher:
    pid: <0.94.0>
    registered_name: []
    exception exit: {shutdown,{yaws_app,start,[normal,[]]}}
      in function  application_master:init/4
    initial call: application_master:init/4
    ancestors: [<0.93.0>]
    messages: [{'EXIT',<0.95.0>,normal}]
    links: [<0.93.0>,<0.5.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 233
    stack_size: 23
    reductions: 101
  neighbours:
1>
=INFO REPORT==== 3-Nov-2009::19:35:46 ===
    application: yaws
    exited: {shutdown,{yaws_app,start,[normal,[]]}}
    type: temporary
1>   

Post received from mailinglist
View user's profile Send private message Send e-mail
Guest
Posted: Tue Nov 03, 2009 11:50 am Reply with quote
Guest
Hello Eric,

Yaws is using some shared libraries, such as sendfile or
setuid. Those included in the tarball have been compiled
under 64bit architecture:
$ file setuid_drv.so
setuid_drv.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
dynamically linked, not stripped

The problem is when you try to use them on different architecture.
The easiest solution is to compile Yaws on your own and just replace
lib/yaws-1.85 directory with your one.

----- "Eric Liang" <eric.l.2046@gmail.com> wrote:

> Hi all,
> I've just tried erlangweb, but unfortunately, the script does't work
> with yaws.
>
> Step by stepy, I followed the erlangweb wiki:
> http://wiki.erlang-web.org/Install :
>
> 1. ./bin/compiler.erl yaws
> 2. ./bin/start.erl yaws
> 3. ./bin/start_interactive yaws ---- Crash report occured here
>
> While the command ./bin/start_interactive (no yaws argument) can
> start
> inets successfully, and I can get the erlangweb-start message from my
> browser.
>
> From the output, I guess this report will be valuable for this
> problem:
>
> =SUPERVISOR REPORT==== 3-Nov-2009::18:19:00 ===
> Supervisor: {local,yaws_sup_restarts}
> Context: start_error
> Reason: {'EXIT',{error,could_not_load_driver}}
> Offender: [{pid,undefined},
> {name,yaws_sendfile},
> {mfa,{yaws_sendfile_compat,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
>
> I've tested the yaws_sendfile_compat module by calling:
> yaws_sendfile_compat:start_link() in the erlang vm, it looks like
> works.
>
> So has anyone here got this problem? or what can I do next?
> If anymore information required, please let me know. btw, any
> suggestions will be appreciated.
>
> Thanks in advance.
> Eric
>
> *******************************************************************************************************
> The following is the whole output:
>
> Eshell V5.6.5 (abort with ^G)
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,sasl_safe_sup}
> started: [{pid,<0.37.0>},
> {name,alarm_handler},
> {mfa,{alarm_handler,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,sasl_safe_sup}
> started: [{pid,<0.38.0>},
> {name,overload},
> {mfa,{overload,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,sasl_sup}
> started: [{pid,<0.36.0>},
> {name,sasl_safe_sup},
> {mfa,
> {supervisor,start_link,
>
> [{local,sasl_safe_sup},sasl,safe]}},
> {restart_type,permanent},
> {shutdown,infinity},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,sasl_sup}
> started: [{pid,<0.39.0>},
> {name,release_handler},
> {mfa,{release_handler,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: sasl
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,ssl_sup}
> started: [{pid,<0.45.0>},
> {name,ssl_broker_sup},
> {mfa,{ssl_broker_sup,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,ssl_sup}
> started: [{pid,<0.46.0>},
> {name,ssl_manager},
> {mfa,{ssl_manager,start_link,[]}},
> {restart_type,permanent},
> {shutdown,4000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,ssl_sup}
> started: [{pid,<0.47.0>},
> {name,ssl_connection},
> {mfa,{ssl_connection_sup,start_link,[]}},
> {restart_type,permanent},
> {shutdown,4000},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: ssl
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,crypto_sup}
> started: [{pid,<0.52.0>},
> {name,crypto_server},
> {mfa,{crypto_server,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: crypto
> started_at: nonode@nohost
> 1>
> =INFO REPORT==== 3-Nov-2009::19:35:46 ===
> e_lang module: error during loading file:
>
> "/home/sunny/codes_in_mercurial/erlang-web/config/languages/en.conf",
> reason:enoent
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,kernel_safe_sup}
> started: [{pid,<0.62.0>},
> {name,timer_server},
> {mfa,{timer,start_link,[]}},
> {restart_type,permanent},
> {shutdown,1000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_sup}
> started: [{pid,<0.68.0>},
> {name,mnesia_event},
> {mfa,{mnesia_sup,start_event,[]}},
> {restart_type,permanent},
> {shutdown,30000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.70.0>},
> {name,mnesia_monitor},
> {mfa,{mnesia_monitor,start,[]}},
> {restart_type,permanent},
> {shutdown,3000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.71.0>},
> {name,mnesia_subscr},
> {mfa,{mnesia_subscr,start,[]}},
> {restart_type,permanent},
> {shutdown,3000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.72.0>},
> {name,mnesia_locker},
> {mfa,{mnesia_locker,start,[]}},
> {restart_type,permanent},
> {shutdown,3000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.73.0>},
> {name,mnesia_recover},
> {mfa,{mnesia_recover,start,[]}},
> {restart_type,permanent},
> {shutdown,180000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.74.0>},
> {name,mnesia_tm},
> {mfa,{mnesia_tm,start,[]}},
> {restart_type,permanent},
> {shutdown,30000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.75.0>},
> {name,mnesia_checkpoint_sup},
> {mfa,{mnesia_checkpoint_sup,start,[]}},
> {restart_type,permanent},
> {shutdown,infinity},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.76.0>},
> {name,mnesia_snmp_sup},
> {mfa,{mnesia_snmp_sup,start,[]}},
> {restart_type,permanent},
> {shutdown,infinity},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.77.0>},
> {name,mnesia_controller},
> {mfa,{mnesia_controller,start,[]}},
> {restart_type,permanent},
> {shutdown,3000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_kernel_sup}
> started: [{pid,<0.78.0>},
> {name,mnesia_late_loader},
> {mfa,{mnesia_late_loader,start,[]}},
> {restart_type,permanent},
> {shutdown,3000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,mnesia_sup}
> started: [{pid,<0.69.0>},
> {name,mnesia_kernel_sup},
> {mfa,{mnesia_kernel_sup,start,[]}},
> {restart_type,permanent},
> {shutdown,infinity},
> {child_type,supervisor}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: mnesia
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,eptic}
> started: [{pid,<0.81.0>},
> {name,e_hook},
> {mfa,{e_hook,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,eptic}
> started: [{pid,<0.82.0>},
> {name,e_dict},
> {mfa,{e_dict,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,eptic}
> started: [{pid,<0.83.0>},
> {name,e_session},
> {mfa,{e_session,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,eptic}
> started: [{pid,<0.84.0>},
> {name,e_component},
> {mfa,{e_component,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,eptic}
> started: [{pid,<0.85.0>},
> {name,e_logger},
> {mfa,{e_logger,start_link,[]}},
> {restart_type,permanent},
> {shutdown,2000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: eptic
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: wpart
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> application: wparts
> started_at: nonode@nohost
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,yaws_sup}
> started: [{pid,<0.97.0>},
> {name,yaws_log},
> {mfa,{yaws_log,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> 1>
> =INFO REPORT==== 3-Nov-2009::19:35:46 ===
> Yaws: Using config file
> /home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf
> 1>
> =INFO REPORT==== 3-Nov-2009::19:35:46 ===
> Ctlfile : /home/sunny/.yaws/yaws/erlangweb_test/CTL
> 1>
> =INFO REPORT==== 3-Nov-2009::19:35:46 ===
> Yaws: Listening to 0.0.0.0:8000 for <1> virtual servers:
> - http://localhost:8000 under
> /home/sunny/codes_in_mercurial/erlang-web/docroot
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,yaws_sup}
> started: [{pid,<0.98.0>},
> {name,yaws_server},
> {mfa,
> {yaws_server,start_link,
> [{env,false,false,false,
> {file,
>
> "/home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf"},
> false,false,"default"}]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,yaws_sup_restarts}
> started: [{pid,<0.108.0>},
> {name,yaws_session_server},
> {mfa,{yaws_session_server,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,yaws_sup_restarts}
> started: [{pid,<0.110.0>},
> {name,yaws_rss},
> {mfa,{yaws_rss,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> 1>
> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 ===
> supervisor: {local,yaws_sup_restarts}
> started: [{pid,<0.111.0>},
> {name,yaws_event_manager},
> {mfa,
> {gen_event,start_link,
> [{local,yaws_event_manager}]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
> 1>
> =SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 ===
> Supervisor: {local,yaws_sup_restarts}
> Context: start_error
> Reason: {'EXIT',{error,could_not_load_driver}}
> Offender: [{pid,undefined},
> {name,yaws_sendfile},
> {mfa,{yaws_sendfile_compat,start_link,[]}},
> {restart_type,permanent},
> {shutdown,5000},
> {child_type,worker}]
>
> 1>
> =SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 ===
> Supervisor: {local,yaws_sup}
> Context: start_error
> Reason: shutdown
> Offender: [{pid,undefined},
> {name,yaws_sup_restarts},
> {mfa,{yaws_sup_restarts,start_link,[]}},
> {restart_type,transient},
> {shutdown,infinity},
> {child_type,supervisor}]
>
> 1>
> =CRASH REPORT==== 3-Nov-2009::19:35:46 ===
> crasher:
> pid: <0.94.0>
> registered_name: []
> exception exit: {shutdown,{yaws_app,start,[normal,[]]}}
> in function application_master:init/4
> initial call: application_master:init/4
> ancestors: [<0.93.0>]
> messages: [{'EXIT',<0.95.0>,normal}]
> links: [<0.93.0>,<0.5.0>]
> dictionary: []
> trap_exit: true
> status: running
> heap_size: 233
> stack_size: 23
> reductions: 101
> neighbours:
> 1>
> =INFO REPORT==== 3-Nov-2009::19:35:46 ===
> application: yaws
> exited: {shutdown,{yaws_app,start,[normal,[]]}}
> type: temporary
> 1>

Best regards,
--
Michal Ptaszek
www.erlang-consulting.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist
start2046
Posted: Tue Nov 03, 2009 12:37 pm Reply with quote
User Joined: 28 Oct 2009 Posts: 19
Michal Ptaszek wrote:
Quote:
Hello Eric, Yaws is using some shared libraries, such as sendfile or setuid. Those included in the tarball have been compiled under 64bit architecture: $ file setuid_drv.so setuid_drv.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped The problem is when you try to use them on different architecture. The easiest solution is to compile Yaws on your own and just replace lib/yaws-1.85 directory with your one. [/code]
Thanks Michal for your prompt reply.

I've checked the library file ,it is as you said. But I've already installed yaws in my machine.

Quote:
$yaws -v
yaws 1.80

$ file /usr/lib/erlang/lib/yaws-1.80/priv/lib/setuid_drv.so
/usr/lib/erlang/lib/yaws-1.80/priv/lib/setuid_drv.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
I've tried to copy the setuid_drv.so to ERLANG_WEB_ROOT_DIRECTORY/lib/yaws-1.85/priv/lib/ , it doesn't work.
And I've checked the yaws.conf, it looks like no configuration about how to set the ROOT_DIRECTORY to use the yaws already installed. Do you know how to set this? or I have to get the latest yaws-1.85? TIA.

Quote:
----- "Eric Liang" <eric.l.2046@gmail.com> (eric.l.2046@gmail.com) wrote: [/code]
Quote:
Hi all, I've just tried erlangweb, but unfortunately, the script does't work with yaws. Step by stepy, I followed the erlangweb wiki: http://wiki.erlang-web.org/Install : 1. ./bin/compiler.erl yaws 2. ./bin/start.erl yaws 3. ./bin/start_interactive yaws ---- Crash report occured here While the command ./bin/start_interactive (no yaws argument) can start inets successfully, and I can get the erlangweb-start message from my browser. From the output, I guess this report will be valuable for this problem: =SUPERVISOR REPORT==== 3-Nov-2009::18:19:00 === Supervisor: {local,yaws_sup_restarts} Context: start_error Reason: {'EXIT',{error,could_not_load_driver}} Offender: [{pid,undefined}, {name,yaws_sendfile}, {mfa,{yaws_sendfile_compat,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] I've tested the yaws_sendfile_compat module by calling: yaws_sendfile_compat:start_link() in the erlang vm, it looks like works. So has anyone here got this problem? or what can I do next? If anymore information required, please let me know. btw, any suggestions will be appreciated. Thanks in advance. Eric ******************************************************************************************************* The following is the whole output: Eshell V5.6.5 (abort with ^G) 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,sasl_safe_sup} started: [{pid,<0.37.0>}, {name,alarm_handler}, {mfa,{alarm_handler,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,sasl_safe_sup} started: [{pid,<0.38.0>}, {name,overload}, {mfa,{overload,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,sasl_sup} started: [{pid,<0.36.0>}, {name,sasl_safe_sup}, {mfa, {supervisor,start_link, [{local,sasl_safe_sup},sasl,safe]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,sasl_sup} started: [{pid,<0.39.0>}, {name,release_handler}, {mfa,{release_handler,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: sasl started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,ssl_sup} started: [{pid,<0.45.0>}, {name,ssl_broker_sup}, {mfa,{ssl_broker_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,ssl_sup} started: [{pid,<0.46.0>}, {name,ssl_manager}, {mfa,{ssl_manager,start_link,[]}}, {restart_type,permanent}, {shutdown,4000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,ssl_sup} started: [{pid,<0.47.0>}, {name,ssl_connection}, {mfa,{ssl_connection_sup,start_link,[]}}, {restart_type,permanent}, {shutdown,4000}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: ssl started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,crypto_sup} started: [{pid,<0.52.0>}, {name,crypto_server}, {mfa,{crypto_server,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: crypto started_at: nonode@nohost 1> =INFO REPORT==== 3-Nov-2009::19:35:46 === e_lang module: error during loading file: "/home/sunny/codes_in_mercurial/erlang-web/config/languages/en.conf", reason:enoent 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,kernel_safe_sup} started: [{pid,<0.62.0>}, {name,timer_server}, {mfa,{timer,start_link,[]}}, {restart_type,permanent}, {shutdown,1000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_sup} started: [{pid,<0.68.0>}, {name,mnesia_event}, {mfa,{mnesia_sup,start_event,[]}}, {restart_type,permanent}, {shutdown,30000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.70.0>}, {name,mnesia_monitor}, {mfa,{mnesia_monitor,start,[]}}, {restart_type,permanent}, {shutdown,3000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.71.0>}, {name,mnesia_subscr}, {mfa,{mnesia_subscr,start,[]}}, {restart_type,permanent}, {shutdown,3000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.72.0>}, {name,mnesia_locker}, {mfa,{mnesia_locker,start,[]}}, {restart_type,permanent}, {shutdown,3000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.73.0>}, {name,mnesia_recover}, {mfa,{mnesia_recover,start,[]}}, {restart_type,permanent}, {shutdown,180000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.74.0>}, {name,mnesia_tm}, {mfa,{mnesia_tm,start,[]}}, {restart_type,permanent}, {shutdown,30000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.75.0>}, {name,mnesia_checkpoint_sup}, {mfa,{mnesia_checkpoint_sup,start,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.76.0>}, {name,mnesia_snmp_sup}, {mfa,{mnesia_snmp_sup,start,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.77.0>}, {name,mnesia_controller}, {mfa,{mnesia_controller,start,[]}}, {restart_type,permanent}, {shutdown,3000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_kernel_sup} started: [{pid,<0.78.0>}, {name,mnesia_late_loader}, {mfa,{mnesia_late_loader,start,[]}}, {restart_type,permanent}, {shutdown,3000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,mnesia_sup} started: [{pid,<0.69.0>}, {name,mnesia_kernel_sup}, {mfa,{mnesia_kernel_sup,start,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: mnesia started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,eptic} started: [{pid,<0.81.0>}, {name,e_hook}, {mfa,{e_hook,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,eptic} started: [{pid,<0.82.0>}, {name,e_dict}, {mfa,{e_dict,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,eptic} started: [{pid,<0.83.0>}, {name,e_session}, {mfa,{e_session,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,eptic} started: [{pid,<0.84.0>}, {name,e_component}, {mfa,{e_component,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,eptic} started: [{pid,<0.85.0>}, {name,e_logger}, {mfa,{e_logger,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: eptic started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: wpart started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === application: wparts started_at: nonode@nohost 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,yaws_sup} started: [{pid,<0.97.0>}, {name,yaws_log}, {mfa,{yaws_log,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =INFO REPORT==== 3-Nov-2009::19:35:46 === Yaws: Using config file /home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf 1> =INFO REPORT==== 3-Nov-2009::19:35:46 === Ctlfile : /home/sunny/.yaws/yaws/erlangweb_test/CTL 1> =INFO REPORT==== 3-Nov-2009::19:35:46 === Yaws: Listening to 0.0.0.0:8000 for <1> virtual servers: - http://localhost:8000 under /home/sunny/codes_in_mercurial/erlang-web/docroot 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,yaws_sup} started: [{pid,<0.98.0>}, {name,yaws_server}, {mfa, {yaws_server,start_link, [{env,false,false,false, {file, "/home/sunny/codes_in_mercurial/erlang-web/config/yaws.conf"}, false,false,"default"}]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,yaws_sup_restarts} started: [{pid,<0.108.0>}, {name,yaws_session_server}, {mfa,{yaws_session_server,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,yaws_sup_restarts} started: [{pid,<0.110.0>}, {name,yaws_rss}, {mfa,{yaws_rss,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =PROGRESS REPORT==== 3-Nov-2009::19:35:46 === supervisor: {local,yaws_sup_restarts} started: [{pid,<0.111.0>}, {name,yaws_event_manager}, {mfa, {gen_event,start_link, [{local,yaws_event_manager}]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 === Supervisor: {local,yaws_sup_restarts} Context: start_error Reason: {'EXIT',{error,could_not_load_driver}} Offender: [{pid,undefined}, {name,yaws_sendfile}, {mfa,{yaws_sendfile_compat,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =SUPERVISOR REPORT==== 3-Nov-2009::19:35:46 === Supervisor: {local,yaws_sup} Context: start_error Reason: shutdown Offender: [{pid,undefined}, {name,yaws_sup_restarts}, {mfa,{yaws_sup_restarts,start_link,[]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}] 1> =CRASH REPORT==== 3-Nov-2009::19:35:46 === crasher: pid: <0.94.0> registered_name: [] exception exit: {shutdown,{yaws_app,start,[normal,[]]}} in function application_master:init/4 initial call: application_master:init/4 ancestors: [<0.93.0>] messages: [{'EXIT',<0.95.0>,normal}] links: [<0.93.0>,<0.5.0>] dictionary: [] trap_exit: true status: running heap_size: 233 stack_size: 23 reductions: 101 neighbours: 1> =INFO REPORT==== 3-Nov-2009::19:35:46 === application: yaws exited: {shutdown,{yaws_app,start,[normal,[]]}} type: temporary 1> [/code]
Best regards, [/code]


Post received from mailinglist
View user's profile Send private message Send e-mail
Guest
Posted: Tue Nov 03, 2009 1:21 pm Reply with quote
Guest
Hi,

I had the exact same problem and compiling it for my architecture just worked.


Here is what I did:


$ wget http://yaws.hyber.org/download/yaws-1.85.tar.gz
$ tar xfz yaws-1.85.tar.gz
start2046
Posted: Wed Nov 04, 2009 7:30 am Reply with quote
User Joined: 28 Oct 2009 Posts: 19
Ludovic Kuty wrote:
Quote:
Hi,

I had the exact same problem and compiling it for my architecture just worked.


Here is what I did:


$ wget http://yaws.hyber.org/download/yaws-1.85.tar.gz
$ tar xfz yaws-1.85.tar.gz 
$ cd yaws
$ ./configure
$ make
$ ls ../erlangweb-1.4/lib/yaws-1.85/
$ cd ..
$ cd erlangweb-1.4
$ cd lib/
$ cd yaws-1.85/
$ rm -rf ebin/
$ rm -rf include/
$ rm -rf priv/
$ cp -r ../../../yaws/ebin/ .
$ cp -r ../../../yaws/include .
$ cp -r ../../../yaws/priv .
$ cd ..
$ cd ..
$ bin/start.erl yaws (EXTRA STEP. MAYBE NOT NECESSARY)
$ bin/start_interactive yaws


Eric, I didn't have a previous Yaws installation but compiled it from scratch. Maybe that made a difference compared to your setup.


Hope that helps.


Thanks, Ludovic, it enlightens me.

So I checked the private libraries Michal said before, and found that simply copy all of them looks solved this:
Quote:
$cp /usr/lib/erlang/lib/yaws-1.80/priv/lib/*.so ERLANG_WEB_SOURCE_ROOT/lib/yaws-1.85/priv/lib
This is because all the private libraries in priv directory are architecture specified.
As indicated in the command, the yaws in my machine is not version 1.85 but 1.80.

Since from the source codes of yaws, related yaws_sendfile.erl have changed several times after tag 1.80, and yaws would look up the priv directory by -- ebin/../priv --, I prefer using totally 1.80(the pre-installed version), so I :
Quote:
1 modify the script: ./bin/start_interactive, change the last line to:
Quote:
erl -pa lib/*/ebin -pa /usr/lib/erlang/lib/yaws-1.80/ebin -s e_start start $NODE_TYPE $SERVER $@
2 modify the config file: ./config/yaws.conf, change the ebin_dir and include_dir configration(for sanity):
Quote:
ebin_dir = /usr/lib/erlang/lib/yaws-1.80/ebin
include_dir = /usr/lib/erlang/lib/yaws-1.80/include
I works very well now. Very Happy Thanks for both of you again.

Eric
Quote:




On 3 Nov 2009, at 13:19, Eric Liang wrote:
Quote:
Michal Ptaszek wrote:
Quote:
Hello Eric, Yaws is using some shared libraries, such as sendfile or setuid. Those included in the tarball have been compiled under 64bit architecture: $ file setuid_drv.so setuid_drv.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped The problem is when you try to use them on different architecture. The easiest solution is to compile Yaws on your own and just replace lib/yaws-1.85 directory with your one. [/code]
Thanks Michal for your prompt reply.

I've checked the library file ,it is as you said. But I've already installed yaws in my machine.

Quote:
$yaws -v
yaws 1.80

$ file /usr/lib/erlang/lib/yaws-1.80/priv/lib/setuid_drv.so
/usr/lib/erlang/lib/yaws-1.80/priv/lib/setuid_drv.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
I've tried to copy the setuid_drv.so to ERLANG_WEB_ROOT_DIRECTORY/lib/yaws-1.85/priv/lib/ , it doesn't work.
And I've checked the yaws.conf, it looks like no configuration about how to set the ROOT_DIRECTORY to use the yaws already installed. Do you know how to set this? or I have to get the latest yaws-1.85? TIA.

Quote:
----- "Eric Liang" <eric.l.2046@gmail.com> (eric.l.2046@gmail.com) wrote: [/code]
Quote:
Hi all, I've just tried erlangweb, but unfortunately, the script does't work with yaws. Step by stepy, I followed the erlangweb wiki: http://wiki.erlang-web.org/Install : 1. ./bin/compiler.erl yaws 2. ./bin/start.erl yaws 3. ./bin/start_interactive yaws ---- Crash report occured here While the command ./bin/start_interactive (no yaws argument) can start inets successfully, and I can get the erlangweb-start message from my browser. From the output, I guess this report will be valuable for this problem: =SUPERVISOR REPORT==== 3-Nov-2009::18:19:00 === Supervisor: {local,yaws_sup_restarts} Context: start_error Reason: {'EXIT',{error,could_not_load_driver}} Offender: [{pid,undefined}, {name,yaws_sendfile}, {mfa,{yaws_sendfile_compat,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] I've tested the yaws_sendfile_compat module by calling: yaws_sendfile_compat:start_link() in the erlang vm, it looks like works. So has anyone here got this problem? or what can I do next? If anymore information required, please let me know. btw, any suggestions will be appreciated. Thanks in advance. Eric [/code]
Best regards, [/code]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net (erlangweb-users@lists.sourceforge.net)
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/


------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! Erlangweb-users@lists.sourceforge.net (erlangweb-users@lists.sourceforge.net) https://lists.sourceforge.net/lists/listinfo/erlangweb-users http://www.erlang-web.org/[/code]


Post received from mailinglist
View user's profile Send private message Send e-mail
wuji
Posted: Wed Sep 12, 2012 7:10 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
first heard this story, I think my initial reaction is to be be cheap replica designer *beep* be a little bit in disbelief, and a little bit horrified," said
Charles Sophy, a psychiatrist. "There's a lot of psychological damage that can can jordan 11 concords can be caused."MTV Producer Gabriel Ben-Meir Killed: Two Suspects HeldPolice Arrest Pair
Connection With Killings of Ben-Meir and Another Man.By MICHAEL S. JAMES and and replica designer *beep* and RUSSELL GOLDMANMay 12, 2011 — A man and a woman are
held on suspicion of murder in the shotgun deaths of an MTV MTV cheap replica designer *beep* MTV producer early Sunday morning and another man a week earlier.Jabaar Vincent
and Destiny Young were arrested Wednesday evening in connection with the killings killings replica designer *beep* killings of MTV music coordinator Gabriel Ben-Meir, 30, outside his home in
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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 cannot attach files in this forum
You cannot download files in this forum