modcaml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Modcaml] CocanWiki: Camlp4: Uncaught exception: Unix.Unix_error (20


From: Robert Fischer
Subject: Re: [Modcaml] CocanWiki: Camlp4: Uncaught exception: Unix.Unix_error (20 | CstTag21, "connect", "")
Date: Thu, 01 May 2008 14:39:26 -0500
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Yup, it's up and running.

Is it doing anything different from the "psql" defaults?

And what's the empty string in the last element of the (CstTag21,
"connect", "") tuple mean?

~~ Robert.

dev ~/wrk/cocanwiki/dev/trunk: psql
Welcome to psql 8.2.6, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

robert=# \l
        List of databases
   Name    |  Owner   | Encoding
-----------+----------+-----------
 postgres  | postgres | SQL_ASCII
 robert    | postgres | SQL_ASCII
 template0 | postgres | SQL_ASCII
 template1 | postgres | SQL_ASCII
(4 rows)

robert=# \q
dev ~/wrk/cocanwiki/dev/trunk: make
make -C scripts all
make[1]: Entering directory `/home/robert/wrk/cocanwiki/dev/trunk/scripts'
ocamlfind ocamlc -package pcre,extlib,netstring,calendar -I
/home/robert/lib/pgocaml -I /usr/local/godi/lib/ocaml/pkg-lib/csv -I
+pcre -I +extlib -I /usr/local/godi/lib/ocaml/std-lib/apache -I lib -pp
"camlp4o -I +pcre -I +extlib -I /home/robert/lib/pgocaml
/usr/local/godi/lib/ocaml/std-lib/str.cma
/usr/local/godi/lib/ocaml/std-lib/unix.cma
/usr/local/godi/lib/ocaml/std-lib/../pkg-lib/pcre/pcre.cma
/usr/local/godi/lib/ocaml/std-lib/../pkg-lib/extlib/extLib.cma
/usr/local/godi/lib/ocaml/std-lib/../pkg-lib/calendar/calendar.cma
/usr/local/godi/lib/ocaml/pkg-lib/csv/csv.cma pgocaml.cma pa_pgsql.cmo"
 -c lib/cocanwiki_server_settings.ml `ocamlc -where`/apache/apache.cma
File "lib/cocanwiki_server_settings.ml", line 44, characters 6-68:
Camlp4: Uncaught exception: Unix.Unix_error (20 | CstTag21, "connect", "")

Preprocessor error
make[1]: *** [lib/cocanwiki_server_settings.cmo] Error 2
make[1]: Leaving directory `/home/robert/wrk/cocanwiki/dev/trunk/scripts'
make: *** [all] Error 2


~~ Robert.

Richard Jones wrote:
> On Thu, May 01, 2008 at 02:04:47PM -0500, Robert Fischer wrote:
>> Okay, making some progress on compiling this all, but I've encountered a
>>  problem when building CocanWiki itself:
>>
>> dev ~/wrk/cocanwiki/dev/trunk: make
>> make -C scripts all
>> make[1]: Entering directory `/home/robert/wrk/cocanwiki/dev/trunk/scripts'
>> ocamlfind ocamlc -package pcre,extlib,netstring,calendar -I
>> /home/robert/lib/pgocaml -I /usr/local/godi/lib/ocaml/pkg-lib/csv -I
>> +pcre -I +extlib -I /usr/local/godi/lib/ocaml/std-lib/apache -I lib -pp
>> "camlp4o -I +pcre -I +extlib -I /home/robert/lib/pgocaml
>> /usr/local/godi/lib/ocaml/std-lib/str.cma
>> /usr/local/godi/lib/ocaml/std-lib/unix.cma
>> /usr/local/godi/lib/ocaml/std-lib/../pkg-lib/pcre/pcre.cma
>> /usr/local/godi/lib/ocaml/std-lib/../pkg-lib/extlib/extLib.cma
>> /usr/local/godi/lib/ocaml/std-lib/../pkg-lib/calendar/calendar.cma
>> /usr/local/godi/lib/ocaml/pkg-lib/csv/csv.cma pgocaml.cma pa_pgsql.cmo"
>>  -c lib/cocanwiki_server_settings.ml `ocamlc -where`/apache/apache.cma
>> File "lib/cocanwiki_server_settings.ml", line 44, characters 6-68:
>> Camlp4: Uncaught exception: Unix.Unix_error (20 | CstTag21, "connect", "")
>>
>> Preprocessor error
>> make[1]: *** [lib/cocanwiki_server_settings.cmo] Error 2
>> make[1]: Leaving directory `/home/robert/wrk/cocanwiki/dev/trunk/scripts'
>> make: *** [all] Error 2
>>
>> That's a fascinating error, since it looks like it's failing to connect
>>  to a socket or something.  Any help on what it's expecting to find?
> 
> You got a PostgreSQL server running somewhere?
> 
> It needs to be able to access the cocanwiki database while compiling
> (see extensive documentation for PG'OCaml on this subject for why).
> 
> It'll connect to a local database automatically, but otherwise you'll
> need to set the $PGHOST etc. variables (see psql manpage).
> 
> Rich.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]