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]

guile // guile-pg (postgress) // apache (cgi-bin) [comp.lang.scheme]



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

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