Re: [Pharo-project] Loading FFI into Pharo?
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 fr...@q-software-solutions.de wrote: Mariano Martinez Peck marianop...@gmail.com writes: On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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 Orcheck if there is a binary for 32 bits. 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
Mariano Martinez Peck marianop...@gmail.com writes: On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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? Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
On Fri, Oct 22, 2010 at 10:33 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Mariano Martinez Peck marianop...@gmail.com writes: On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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. Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
On 22.10.2010, at 10:40, Mariano Martinez Peck wrote: On Fri, Oct 22, 2010 at 10:33 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Mariano Martinez Peck marianop...@gmail.com writes: On Fri, Oct 22, 2010 at 10:05 AM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Friedrich Dominicus fr...@q-software-solutions.de writes: Schwab,Wilhelm K bsch...@anest.ufl.edu 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. 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
Norbert Hartl norb...@hartl.name 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
On Fri, Oct 22, 2010 at 12:42 PM, Friedrich Dominicus fr...@q-software-solutions.de wrote: Norbert Hartl norb...@hartl.name 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. Why not trying SqueakDBX or the native postgres driver ? 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
Friedrich Dominicus fr...@q-software-solutions.de 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
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: pharo-project-boun...@lists.gforge.inria.fr [pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Friedrich Dominicus [fr...@q-software-solutions.de] Sent: Thursday, October 21, 2010 9:06 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Loading FFI into Pharo? Friedrich Dominicus fr...@q-software-solutions.de 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Re: [Pharo-project] Loading FFI into Pharo?
Schwab,Wilhelm K bsch...@anest.ufl.edu 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project