On Fri, 2010-12-31 at 11:36 -0800, John Deal wrote:
> Hello Julian,
> 
> Yes that was my post :-(.
> 
> I did get it to link.  It seems the sqlite library was placed in 
> /usr/local/lib64 but not in /usr/local/lib.  I now notice that all the 
> library files were placed in lib64.  I think I had files left over from a 3.0 
> install in /usr/local/lib.
> 
> I then had problems finding the soci_core lib at runtime.  Finally just 
> copied all the /usr/local/lib64 libraries to /usr/local/lib.  This allows the 
> program to run without any library not found errors but it dies.
> 
> Sorry to bother the list again.  Of course once I email a question a possible 
> answer pops in my head :-(.
> 
> Thank again,
> 
> John

I did not realize that was you too ;)

you can change the installation location with: -DLIBDIR=/some/path
BINDIR, INCLUDEDIR and DATADIR can be changed too.

How does it die? are you using dynamic loading?

In that case probably /usr/local/lib is not in the search paths for ld.
So either use dynamic linking (session sql(soci::sqlite3, "connectstr"))
instead of loading or set add the path to SOCI_BACKENDS_PATH environment
variable (or to /etc/ld.so.conf)
see: http://soci.sourceforge.net/doc/basics.html

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to