This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fw: guile // guile-pg (postgress) // apache (cgi-bin)



Jacob J. A. Koot (Jos)
----- Original Message -----
From: David Pirotte <david@altosw.be>
Newsgroups: comp.lang.scheme
Sent: Monday, August 21, 2000 1:11 AM
Subject: guile // guile-pg (postgress) // apache (cgi-bin)


> Hi,
>
> ;; --
>
> I am unable to post messsages to the guile list, due to anti spaming
> "rules" that my internet provider (AT&T) appears to still not respect.
>
> So, can someone who can please forward this to guile@sourceware.cygnus.com
> for me, thanks a lot.
>
> ;; --
>
> I am trying to write a cgi scripts in guile (trying to), loading the
> guile-pg module:
>
> ;; ----- a sample.scm script -------
> #!/usr/local/bin/guile -s
> !#
>
> ;; cgi-bin/html/apache protocol requests this
> (display "Content-Type: text/html\n\n")
>
> (use-modules (ice-9 regex))
> ==> (use-modules (database postgres))
>
> ...
>
>
> The loading of the database module can not take place, here is the apache
> message:
>
> ERROR: In procedure dynamic-link:
> ERROR: libpq.so.2.1: cannot open shared object file: No such file or
directory
>
> In fact, the dynamic-link command  in postgres.scm is
>
> (dynamic-link "libpostgres.so")
>
>
> Now:
>
> libpostgres.so is in /usr/local/lib
> libpq.so.2.1 is in /usr/local/pgsql/lib
>
> My env variables:
>
> LD_LIBRARY_PATH=/usr/lib:/usr/lib/X11:/usr/local/lib:/usr/local/pgsql/lib
> PGLIB=/usr/local/pgsql/lib
> GUILE_LOAD_PATH=/usr/local/share/guile:/usr/local/share/guile-gtk
>
> SO:
>
> How can I "tell" guile where it should find its children ?
>
> thanks for helping me
> David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]