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 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
