[Mono-list] Mono and sqllite on OS X

Thomas Zoechling thomas.zoechling@gmx.at
Fri, 21 Jan 2005 15:31:57 +0100


I suppose the problem here is that libsqlite is not a native mono library.
Mono.Data.Sqlite... is just a wrapper around libsqlite.so , which has to 
remain in /usr/lib.


Niklas Saers wrote:

> Hi all,
> I'm using fink on OS X 10.3.7 which keeps all its files in /sw 
> (instead of /usr/local). When I try using any Mono application that 
> uses sqlite, I get:
>
> Unhandled Exception: System.DllNotFoundException: sqlite
> in <0x000e0> (wrapper managed-to-native) 
> Mono.Data.SqliteClient.SqliteConnection:sqlite_open (string,int,string&)
> in [0x00031] (at 
> /cvs/1-mono/mcs/class/Mono.Data.SqliteClient/Mono.Data.SqliteClient/SqliteConnection.cs:157) 
> Mono.Data.SqliteClient.SqliteConnection:Open ()
>
> /sw/lib contains:
>
> -rwxr-xr-x  1 root  admin  450056 20 Jan 23:50 
> /sw/lib/libsqlite.0.5.3.dylib
> lrwxr-xr-x  1 root  admin      21 21 Jan 12:45 
> /sw/lib/libsqlite.0.dylib -> libsqlite.0.5.3.dylib
> -rw-r--r--  1 root  admin  685488 20 Jan 23:50 /sw/lib/libsqlite.a
> lrwxr-xr-x  1 root  admin      21 21 Jan 12:45 /sw/lib/libsqlite.dylib 
> -> libsqlite.0.5.3.dylib
> -rwxr-xr-x  1 root  admin     725 20 Jan 23:50 /sw/lib/libsqlite.la
>
> The remaining mono-files are at:
>
> /sw/lib/mono/1.0/Mono.Data.SqliteClient.dll
> /sw/lib/mono/gac/Mono.Data.SqliteClient
> /sw/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756
> /sw/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.SqliteClient.dll 
>
> /sw/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.SqliteClient.dll.mdb 
>
>
> So all looks nice, but still this problem persists. Is there any way I 
> can set the path that Mono is to look for its libraries?
>
> Cheers
>
>    Nik
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>