Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-general] Re: appWeb error with modules

Expand Messages
  • Rod Whitby
    In that case we might have to patch the source code to search /opt/lib for the modules ... ... [Non-text portions of this message have been removed]
    Message 1 of 8 , Aug 30 2:25 AM
    • 0 Attachment
      In that case we might have to patch the source code to search /opt/lib for
      the modules ...

      On 8/30/05, Matt McNeill <matt_mcneill@...> wrote:
      >
      > Aahh..
      >
      > appweb loads the modules dynamically and does not use rpath... I suspect
      > this is at the root of the problem - funny though, because I don't have
      > a development environment on my slug and the ipkg worked fine.
      >
      > I'll take this up with the appweb developers and see what can be done.
      >
      > Matt
      >
      > Rod Whitby wrote:
      > > On 8/30/05, spartacus <spartacus_ny@...> wrote:
      > >
      > >>Looks like executing following commands solved the problem. However,
      > >>if I remember correctly, there is supposed to be a better way doing
      > >>this, since use of LD_LIBRARY_PATH is not recommended due to
      > >>performance issues.
      > >>
      > >># LD_LIBRARY_PATH=/opt/lib
      > >># EXPORT LD_LIBRARY_PATH
      > >
      > >
      > > If a package requires LD_LIBRARY_PATH to be set, then it hasn't been
      > > compiled properly. The Optware build system sets rpath to do this
      > > automatically.
      > > -- Rod
      > >
      >
      >
      > spartacus wrote:
      > > Thx. I did comment out the libcapiModule line. Now, I am receiving the
      > > error below. ipkg status shows that appWeb depends on openssl and
      > > php-embed applications which I have installed. Versions are 0.9.7d-4
      > > and 5.0.4-1 respectively. I can comment out the php lie to however, I
      > > would like to be able to utilize php. Is it possible that I am missing
      > > some common package that may be needed for appWeb to function?
      > >
      > > default:2 main Configuration for Mbedthis AppWeb
      > > default:2 main --------------------------------------------
      > > default:2 main Host: LKG0FDD28
      > > default:2 main CPU: armv5b
      > > default:2 main OS: LINUX
      > > default:2 main Version: 2.0.3.6 <http://2.0.3.6/>
      > > default:2 main BuildType: RELEASE
      > > default:2 main Started at: Sun Aug 28 08:40:30 2005
      > > default:2 main Log rotation count: 0
      > > default:2 main --------------------------------------------
      > > default:2 main Set log level for all modules to 2
      > > default:2 main Document Root for LKGOFDD28:7777:
      > > "/opt/var/appWeb/web"
      > > default:2 main Module search path:
      > > "/opt/lib"
      > > default:2 main Activating module (Loadable) admin
      > > default:2 main Activating module (Loadable) auth
      > > default:2 main Activating module (Loadable) cgi
      > > default:2 main Activating module (Loadable) copy
      > > default:2 main Activating module (Loadable) egi
      > > default:2 main Activating module (Loadable) esp
      > > default:1 main Error: Can't load /opt/lib/libphp5Module.so
      > > Reason: "libphp5.so: cannot open shared object file: No such file or
      > > directory"
      > > default:1 main Error: Bad directive "LoadModule" at line 79 in
      > > /opt/var/appWeb/appWeb.conf
      > > default:1 main Error: Can't configure server using
      > > /opt/var/appWeb/appWeb.conf
      > > default:1 main Error: Can't configure the server, exiting.
      > >
      > > --- In nslu2-general@yahoogroups.com, Matt
      > McNeill <matt_mcneill@h...>
      > > wrote:
      > >
      > >>Try commenting out the LoadModule directives for libcapiModule and see
      > >>if it starts.
      > >>
      > >>My appWeb.conf file looks like the following and is running fine on
      > >>unslung 5.5.
      > >>
      > >>--8<--
      > >>
      > >>#
      > >># DLL / Dynamic Shared Object (DSO) support. If the modules has been
      > >># statically linked into AppWeb, these directive will be ignored.
      > >>#
      > >>LoadModulePath /opt/lib
      > >>LoadModule admin libadminModule
      > >>LoadModule auth libauthModule
      > >>LoadModule cgi libcgiModule
      > >>LoadModule copy libcopyModule
      > >>LoadModule egi libegiModule
      > >>LoadModule esp libespModule
      > >>LoadModule capi libcapiModule
      > >># LoadModule compat libcompatModule
      > >># LoadModule php4 libphp4Module
      > >>LoadModule php5 libphp5Module
      > >>LoadModule ssl libsslModule
      > >># LoadModule matrixSsl libmatrixSslModule
      > >>LoadModule openSsl libopenSslModule
      > >>
      > >>#
      > >># Map handlers to file extensions. If the extension is ommitted, the
      > >># handler itself will determine if a match to a given URL occurs. For
      > >># example: authHandler is always run on all URLs. Handler matching
      > >># to extensions occurs after the URL is descaped but before aliases
      > >># are applied.
      > >>#
      > >># AddHandler adminHandler
      > >>AddHandler authHandler
      > >>AddHandler egiHandler .egi
      > >>
      > >>#
      > >># For Scripts, such as your Perl scripts make sure that you have
      > >># "#!/PerlPath" as the first line. This works on Windows as well.
      > >># The .bat and .cmd extensions are really only for Windows.
      > >>#
      > >>AddHandler cgiHandler .cgi .cgi-nph .bat .cmd .pl .py
      > >>AddHandler espHandler .esp .asp
      > >># AddHandler php4Handler .php
      > >>AddHandler php5Handler .php
      > >>AddHandler copyHandler
      > >>
      > >>--8<--
      > >>
      > >>See if this helps,
      > >>
      > >>Matt
      > >>
      > >>
      > >>spartacus wrote:
      > >>
      > >>>Hi, I'm pretty new to NSLU2 and Linux but managed to install unslung
      > >>>5.5, ssl, ssh, and nano packages without a problem. However couldn't
      > >>>get appWeb to run. Followed the wiki about appweb and changed
      > >>>servername but not port number. ps command doesn't list appWeb and
      > >>>error log shows following:
      > >>> default:2 main Set log level for all modules to 2
      > >>> default:2 main Document Root for LKGOFDD28:7777:
      > >>> "/opt/var/appWeb/web"
      > >>> default:2 main Module search path:
      > >>> "/opt/lib"
      > >>> default:2 main Activating module (Loadable) admin
      > >>> default:2 main Activating module (Loadable) auth
      > >>> default:2 main Activating module (Loadable) cgi
      > >>> default:2 main Activating module (Loadable) copy
      > >>> default:2 main Activating module (Loadable) egi
      > >>> default:2 main Activating module (Loadable) esp
      > >>> default:1 main Error: Can't load /opt/lib/libcapiModule.so
      > >>>Reason: "libespModule.so: cannot open shared object file: No such file
      > >>>or directory"
      > >>> default:1 main Error: Bad directive "LoadModule" at line 76 in
      > >>>/opt/var/appWeb/appWeb.conf
      > >>> default:1 main Error: Can't configure server using
      > >>>/opt/var/appWeb/appWeb.conf
      > >>> default:1 main Error: Can't configure the server, exiting.
      > >>>I checked and found both directory and the files exist. Did searched
      > >>>the wiki and googled, didn't find any meaningful results. Appreciate
      > >>>any suggestions.
      > >>>Okan
      >
      >
      > ------------------------------
      > YAHOO! GROUPS LINKS
      >
      >
      > - Visit your group "nslu2-general<http://groups.yahoo.com/group/nslu2-general>"
      > on the web.
      > - To unsubscribe from this group, send an email to:
      > nslu2-general-unsubscribe@yahoogroups.com<nslu2-general-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      > Service <http://docs.yahoo.com/info/terms/>.
      >
      >
      > ------------------------------
      >


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.