[Zope] Solid DA install help

Michel Pelletier michel@digicool.com
Mon, 26 Jul 1999 13:08:43 -0400


> -----Original Message-----
> From: Andrew [mailto:andrew@eventera.com]
> Sent: Monday, July 26, 1999 1:14 PM
> To: zope@zope.org
> Subject: [Zope] Solid DA install help
> 
> 
> Does anyone have the Solid DA adapter configured to work with Zope
> 2.00b1 and Solid 2.3?
> 
> I can make the sql.so with the following output.
> 
> # make
> gcc -fpic  -DSOLIDSQLAPI -I/usr/local/solid/include -g -O2
> -I/usr/local/include/python1.5 -I/usr/local/include/python1.5
> -DHAVE_CONFIG_H -c ./sql.c
> ./sql.c: In function `SQLBindInputParameter':
> ./sql.c:1360: warning: assignment from incompatible pointer type
> gcc -shared  sql.o  -L/usr/local/solid/lib -lsolcli -o sql.so
> 
> When I try to test the sql.so, I get the following.
> 
> #python1.5.2
> Python 1.5.2 (#5, Jun 23 1999, 15:59:20)  [GCC egcs-2.91.66
> 19990314/Linux (egcs- on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import sql
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: libsolcli.so: cannot open shared object file: No 
> such file
> or directory
> 

Is the path to your libsolcli.so file in your /etc/ld.so.conf file?  did
you run the 'ldconfig' program after editing that file?  Linux can't
dynamicly link programs to their required libraries unless you tell it
where to look.  Alternatively, and this works on Solaris too, you can
add the path to the library to the LD_LIBRARY_PATH environment variable.

-Michel