Julian fixed those issues, few days ago, for macosx:
- the lib64 to lib
- the backend dynamic loading
I think he didn't commit on the main branch, but maybe he will do that soon.
Best regards,
Sylvain
On Sat, Jan 1, 2011 at 12:12 AM, John Deal <[email protected]> wrote:
> Hello Julian,
>
> I am getting the following run-time failure:
>
> bin$ sudo ./mira_server
> ./mira_server: error while loading shared libraries: libsoci_core.so.3.1:
> cannot open shared object file: No such file or directory
> bin$
>
> I have set the SOCI_BACKENDS_PATH as follows:
>
> echo $SOCI_BACKENDS_PATH
> /usr/local/lib
>
> As stated in the earlier email, I copied all the soci libraries from
> /usr/local/lib64 to /usr/local/lib. The link has a -L/usr/local/lib option.
> My sqlite open is as follows:
>
> sociSession = new soci::session(soci::sqlite3, path);
>
> I just don't see why it can't find the libraries. Any insight would be most
> appreciated.
>
> Thanks,
>
> John
>
> --- On Fri, 12/31/10, Julian Taylor <[email protected]> wrote:
>
> > From: Julian Taylor <[email protected]>
> > Subject: Re: [SOCI-users] Trouble finding soci::sqlite3 in 5103f0f
> > To: "General-purpose list for SOCI users." <
> [email protected]>
> > Date: Friday, December 31, 2010, 2:53 PM
> > 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
> >
> > -----Inline Attachment Follows-----
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > -----Inline Attachment Follows-----
> >
> > _______________________________________________
> > Soci-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/soci-users
> >
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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