Hi Yariv,
  I ran application:start(psql) and it gave me this error:

my   ebin/psql.app looks like this:

{application, psql, [{description, "blog"},
  {vsn, "0.0.2"},
    {modules, []},
    {registered, [psql_sup]},
    {applications, [kernel, stdlib]},
    {mod, {psql, []}},
    {env, [{erlydb_psql, {"localhost", 5432, "postgres", "password",
"blog"}},
             {pools, [{erlydb_psql, 1}]}]}]}.
-------------------------------------------------------------------------------------------------------------
Am I missing something here??

Here's the error:=INFO REPORT==== 15-May-2008::01:07:25 ===
    application: psql
    exited: {bad_return,
                {{psql,start,[normal,[entry,category]]},
                 {'EXIT',
                     {function_clause,
                         [{psql,start,[normal,[entry,category]]},
                          {application_master,start_it_old,4}]}}}}
    type: temporary
{error,{bad_return,{{psql,start,[normal,[entry,category]]},
                    {'EXIT',{function_clause,[{psql,start,

[normal,[entry,category]]},

{application_master,start_it_old,4}]}}}}}

--

On Wed, May 14, 2008 at 11:38 AM, Yariv Sadan <[EMAIL PROTECTED]> wrote:

>
> Looks like you haven't started your psql application. Try calling
> application:start(psql).
>
> On Sat, May 10, 2008 at 3:50 AM, Abhijith <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >  I tried to get the 'blog tutorial' to work with postgres and have
> > been unsuccessful getting it to work.
> >        I followed the instructions on the link below and tried to get
> > the app to run but the compilation is failing.
> >
> http://translate.google.com/translate?u=http%3A%2F%2Fwww.cestari.info%2F2007%2F7%2F25%2Ferlyweb-et-postgres&hl=en&ie=UTF8&sl=fr&tl=en
> >
> > As per the instructions mentioned in the link above, I have placed the
> > start.erl in the root directory of the application.
> >
> > start.erl looks like this
> > ---------------------------------
> >
> > -module (start).
> > -export([boot/0, boot/1]).
> > -define(P, "/home/abhi/blog/").
> >
> > boot() ->
> >    boot(true).
> > boot(false) ->
> >    compile();
> > boot(true) ->
> >    pgsql_start(),
> >    compile().
> > pgsql_start() ->
> >    code:add_pathz(?P ++ "/ebin"),
> >    application:start(psql),
> >    erlydb:start(psql).
> > compile() ->
> >    erlyweb:compile(?P, [{erlydb_driver, psql}]).
> >
> >
> > This is the error the app throws when I compile it in yaws REPL
> >
> > command:  start:boot().
> > error =>
> >
> > debug:erlyweb_compile:382: Compiling Erlang file "blog_app_controller"
> > debug:erlyweb_compile:382: Compiling Erlang file "category"
> > debug:erlyweb_compile:382: Compiling Erlang file "entry_controller"
> > /home/abhi/blog/src/components/entry_controller.erl:8: Warning:
> > variable 'A' is unused
> > /home/abhi/blog/src/components/entry_controller.erl:18: Warning:
> > variable 'A' is unused
> > debug:erlyweb_compile:382: Compiling Erlang file "category_controller"
> > /home/abhi/blog/src/components/category_controller.erl:12: Warning:
> > variable 'A' is unused
> > debug:erlyweb_compile:382: Compiling Erlang file "entry"
> > debug:erlyweb_compile:114: Generating ErlyDB code for models:
> > "entry.erl category.erl "
> > ** exception exit: {noproc,{gen_server,call,[psql_pool,
> > {ref,<0.36.0>}]}}
> >     in function  gen_server:call/2
> >     in call from psql_pool:alloc/1
> >     in call from erlydb_psql:get_metadata/1
> >     in call from erlydb:'-code_gen/4-fun-2-'/4
> >     in call from lists:foldl/3
> >     in call from erlydb:'-code_gen/4-fun-3-'/3
> >     in call from lists:foldl/3
> >     in call from erlydb:code_gen/4
> >
> > Here are the details of the environment
> > --------------------------------------------------------
> > OS                               => sabayon linux
> >  Erlang emulator version => 5.6.1
> > yaws version                 => 1.58
> > erlyweb                        =>  0.7
> >
> > I would really appreciate it if somebody can point me to resources or
> > help me configure erlyweb working with postgres and/or Mnesia
> > ( Preferably both :-> ).
> >
> >
> > Thank You
> > Abhijith
> >
> > >
> >
>
> >
>


-- 
Queer little twists and quirks go into the making of an individual.
To suppress them all and follow clock and calendar and creed until the
individual is lost in the neutral gray of the host is to be less than true
to our inheritance.
Life, that gorgeous quality of life, is not accomplished by following
another man's rules.
It is true we have the same hungers and same thirsts, but they are for
different things and in different ways and in different seasons.
Lay down your own day, follow it to its noon, or you will sit in an outer
hall listening to the chimes but never reaching high enough to strike your
own.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to