This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: [Guile-pg-devel] guile // guile-pg (postgress) // apache (cgi-bin) [comp.lang.scheme]
- To: David Pirotte <david at altosw dot be>
- Subject: Re: [Guile-pg-devel] guile // guile-pg (postgress) // apache (cgi-bin) [comp.lang.scheme]
- From: Ian Grant <Ian dot Grant at cl dot cam dot ac dot uk>
- Date: Mon, 21 Aug 2000 10:57:01 +0100
- cc: guile-pg-devel at lists dot sourceforge dot net, guile at sourceware dot cygnus dot com, Ian dot Grant at cl dot cam dot ac dot uk
Hi David,
Can you try posting to guile-pg-devel@sourceforge.net? I'd be interested to
know if it works or not.
You refer to an 'Apache error', implying that it is when Apache runs the
script that you have a problem. I think your problem might be to do with the
environment in effect when Apache executes CGI scripts. Can you use the
(use-modules (database postgres)) command interactively, and in a script run
from your shell? If so then the problem is definitely that Apache is not
running guile in an environment in which LD_LIBRARY_PATH is set as you wish.
I'm afraid I don't know how to set the environment variables in effect for CGI
scripts run by Apache. Perhaps an Apache guru here can help?
Ian
>
> ------ Forwarded Article <39A06595.7FC46A53@altosw.be>
> ------ From David Pirotte <david@altosw.be>
>
> 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
>
> ------ End of Forwarded Article
>
> --
> Ian Grant, Computer Lab., New Museums Site, Pembroke Street, Cambridge
> Phone: +44 1223 334420 Personal e-mail: iang at pobox dot com
>
> _______________________________________________
> Guile-pg-devel mailing list
> Guile-pg-devel@lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/guile-pg-devel
--
Ian Grant, Computer Lab., New Museums Site, Pembroke Street, Cambridge
Phone: +44 1223 334420 Personal e-mail: iang at pobox dot com