In the end I'm trying to get ODBC running Pharo 1.1. I checked the docs
and this should work: ScriptLoader loadFFI. for loading the FFI stuff. If I try that I get the message that this selector is unkwown. What am I supposed to do to get it known? Regards Friedrich _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Friedrich Dominicus <[hidden email]> writes:
> In the end I'm trying to get ODBC running Pharo 1.1. I checked the docs > and this should work: > > ScriptLoader loadFFI. > > for loading the FFI stuff. If I try that I get the message that this > selector is unkwown. What am I supposed to do to get it known? Ok the magic incarnaton is using ConfigurationOfFFI. well let's see if it helps to get odbc running ;-) Friedrich _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
I haven't had much trouble with it. You can look in the inbox for Migrate (for how I load it) and the DolphinCompatibility package for things that I have added to the ODBC support.
________________________________________ From: [hidden email] [[hidden email]] On Behalf Of Friedrich Dominicus [[hidden email]] Sent: Thursday, October 21, 2010 9:06 AM To: [hidden email] Subject: Re: [Pharo-project] Loading FFI into Pharo? Friedrich Dominicus <[hidden email]> writes: > In the end I'm trying to get ODBC running Pharo 1.1. I checked the docs > and this should work: > > ScriptLoader loadFFI. > > for loading the FFI stuff. If I try that I get the message that this > selector is unkwown. What am I supposed to do to get it known? Ok the magic incarnaton is using ConfigurationOfFFI. well let's see if it helps to get odbc running ;-) Friedrich _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
"Schwab,Wilhelm K" <[hidden email]> writes:
> I haven't had much trouble with it. You can look in the inbox for > Migrate (for how I load it) and the DolphinCompatibility package for > things that I have added to the ODBC support. Are there any usage examples for ODBC and Pharo or is it go out and find out yourself? And another maybe stupid question has anyone used it for accessing .mdb databases from MS-Access? Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Friedrich Dominicus <[hidden email]> writes:
> "Schwab,Wilhelm K" <[hidden email]> writes: > >> I haven't had much trouble with it. You can look in the inbox for >> Migrate (for how I load it) and the DolphinCompatibility package for >> things that I have added to the ODBC support. > Are there any usage examples for ODBC and Pharo or is it go out and find > out yourself? And another maybe stupid question has anyone used it for > accessing .mdb databases from MS-Access? Ok i'm probabla currently a bit confused. AFAIKT the Pharo I've running here is 32-bit. My machine however is a 64-bit System, so to use the unixodbc I probably would need the 32-bit version of the unixodbc driver. Is that correct? So do I have to build the unixodbc stuff myself? on a Debian 64-bit box? Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus <[hidden email]> wrote:
Yes. Exactly. To compile ODBC you may want to try something like we did in SqueakDBX: http://www.squeakdbx.org/SqueakDBX%20in%2064%20bits Or....check if there is a binary for 32 bits.
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Mariano Martinez Peck <[hidden email]> writes:
> On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus < > [hidden email]> wrote: > > Friedrich Dominicus <[hidden email]> writes: > > > "Schwab,Wilhelm K" <[hidden email]> writes: > > > >> I haven't had much trouble with it. You can look in the inbox for > >> Migrate (for how I load it) and the DolphinCompatibility package for > >> things that I have added to the ODBC support. > > Are there any usage examples for ODBC and Pharo or is it go out and find > > out yourself? And another maybe stupid question has anyone used it for > > accessing .mdb databases from MS-Access? > Ok i'm probabla currently a bit confused. AFAIKT the Pharo I've running > here is 32-bit. My machine however is a 64-bit System, so to use the > unixodbc I probably would need the 32-bit version of the unixodbc > driver. Is that correct? > > > Yes. Exactly. To compile ODBC you may want to try something like we did in > SqueakDBX: > > http://www.squeakdbx.org/SqueakDBX%20in%2064%20bits does connect but Pharo won't. Sure the reason is clear, but it has catched me. Fine, I'm trying to get unixodbc compiled an installed on my 64 bit box. I just wonder has anyone build a 64-bit Pharo? Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Oct 22, 2010 at 10:33 AM, Friedrich Dominicus <[hidden email]> wrote:
More or less. Because you need: a 64 bits VM, and a 64 bits image as much as I understand. In addition, there are certain bugs in FFI about using it in 64 bits.
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On 22.10.2010, at 10:40, Mariano Martinez Peck wrote: You don't need a 64 bit image. If you have a 64 bit operating system than you can only execute 64 bit executables. In linux there are 32 bit compatibility libraries. The offer a 32 bit interface and mediate this to 64 bit. So you can run a 32 bit vm with compat libraries or native 64 bit vm. The same goes for code that you want to link to the vm. It needs to fit. What the vm internally uses for its address space does not depend on this. I think that is confusing for a lot of people that you can have a 64 bit vm with a 32 bit image. But does anyone know what is the state of 64 bit vm executables? Norbert _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Norbert Hartl <[hidden email]> writes:
> > You don't need a 64 bit image. If you have a 64 bit operating system than you > can only execute 64 bit executables. In linux there are 32 bit compatibility > libraries. The offer a 32 bit interface and mediate this to 64 bit. So you can > run a 32 bit vm with compat libraries or native 64 bit vm. The same goes for > code that you want to link to the vm, Ok, but it means to use Pharo 32 -bit with unixodbc I better have the 32-bit files of unixodbc installed. I'm having that currently but, I still can not connect to Postgres. I guess I will have to delve into this quite a bit deeper. Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Oct 22, 2010 at 12:42 PM, Friedrich Dominicus <[hidden email]> wrote:
Why not trying SqueakDBX or the native postgres driver ? I guess I will have to delve into _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Mariano Martinez Peck
On Fri, Oct 22, 2010 at 10:40:50AM +0200, Mariano Martinez Peck wrote:
> On Fri, Oct 22, 2010 at 10:33 AM, Friedrich Dominicus < > [hidden email]> wrote: > > > Mariano Martinez Peck <[hidden email]> writes: > > > > > On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus < > > > [hidden email]> wrote: > > > > > > Friedrich Dominicus <[hidden email]> writes: > > > > > > > "Schwab,Wilhelm K" <[hidden email]> writes: > > > > > > > >> I haven't had much trouble with it. You can look in the inbox for > > > >> Migrate (for how I load it) and the DolphinCompatibility package > > for > > > >> things that I have added to the ODBC support. > > > > Are there any usage examples for ODBC and Pharo or is it go out and > > find > > > > out yourself? And another maybe stupid question has anyone used it > > for > > > > accessing .mdb databases from MS-Access? > > > Ok i'm probabla currently a bit confused. AFAIKT the Pharo I've > > running > > > here is 32-bit. My machine however is a 64-bit System, so to use the > > > unixodbc I probably would need the 32-bit version of the unixodbc > > > driver. Is that correct? > > > > > > > > > Yes. Exactly. To compile ODBC you may want to try something like we did > > in > > > SqueakDBX: > > > > > > http://www.squeakdbx.org/SqueakDBX%20in%2064%20bits > > Thanks my confusion has not last that long. I just was puzzling why isql > > does connect but Pharo won't. Sure the reason is clear, but it has > > catched me. Fine, I'm trying to get unixodbc compiled an installed on my > > 64 bit box. I just wonder has anyone build a 64-bit Pharo? > > > > More or less. Because you need: a 64 bits VM, and a 64 bits image as much as > I understand. > In addition, there are certain bugs in FFI about using it in 64 bits. > Details here: http://bugs.squeak.org/view.php?id=7237 FFI can be made to work on 64-bits but it is difficult and complicated, so if you are just trying to get ODBC working you should stick with 32 bit binaries. Dave _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |