Thanks Olivier. I have updated the website :)<br><br><a href="http://www.squeakdbx.org/MySQL%20and%20PostgreSQL%20for%20mac">http://www.squeakdbx.org/MySQL%20and%20PostgreSQL%20for%20mac</a><br><br>Now...do you remember the links where you download the 32bits Mac OS client for PostgreSQL ?<br>
<br>And for MySQL did you use  <a title="http://dev.mysql.com/downloads/mysql/5.1.html" class="external" href="http://dev.mysql.com/downloads/mysql/5.1.html">http://dev.mysql.com/downloads/mysql/5.1.html</a>   &quot;Mac OS X 10.5 (x86)&quot;  also ?   if not, which one ?<br>
<br>Thanks in advance,<br><br>Mariano<br><br><br><div class="gmail_quote">On Wed, May 18, 2011 at 11:42 AM, Olivier Auverlot <span dir="ltr">&lt;<a href="mailto:olivier.auverlot@gmail.com">olivier.auverlot@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    In my previous note, I have forget to say that it&#39;s necessary to
    modify the key SqueakPluginsBuiltInOrLocalOnly in the Info.plist
    file. The value of this parameter must be &quot;false&quot;.<br>
    <br>
    There are also  a little error. The temporary directory is &quot;opendbx&quot;
    and not &quot;openDBX&quot;.<div><div></div><div class="h5"><br>
    <br>
    Best regards<br>
    Olivier ;-)<br>
    <a href="http://www.auverlot.fr" target="_blank">www.auverlot.fr</a><br>
    <blockquote type="cite">Thanks a lot Olivier.<br>
      I know it is a pain. I suffered with my mac also.<br>
      So....I will update: <a href="http://www.squeakdbx.org/Different%20backends%20under%20Mac" target="_blank">http://www.squeakdbx.org/Different%20backends%20under%20Mac</a><br>
      with your data.<br>
      <br>
      Thanks<br>
      <br>
      <div class="gmail_quote">On Wed, May 18, 2011 at 10:10 AM, Olivier
        Auverlot <span dir="ltr">&lt;<a href="mailto:olivier.auverlot@gmail.com" target="_blank">olivier.auverlot@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
          <div bgcolor="#ffffff" text="#000000"> After many hours to try
            to install OpenDBX and SqueakDBX on my Mac Intel with a 64
            bit processor, I&#39;m very happy to propose you a little step
            by step tutorial.<br>
            <br>
            1. Download the client libraries for MySQL and PostgreSQL.
            Warning ! you must get the 32 bits version. Create a
            temporary directory named &quot;openDBX&quot; where you want. For me,
            I have put the directory at the root of my system path.My
            directory contains :<br>
            <br>
                &gt; mysql<br>
                    &gt; 5.0<br>
                        &gt; include<br>
                        &gt; lib<br>
                &gt; PostgreSQL<br>
                    &gt; 9.0<br>
                        &gt; include<br>
                        &gt; lib<br>
                        <br>
            2. Download openDBX and compile it in 32 bits mode (because
            the Smalltalk virtual machine is a 32 bits application). I
            have write a little shell script to produce the
            configuration of the compiler.Of course, you must set the
            directories for the include files and the librairies path.<br>
            <br>
            CFLAGS=&quot;-m32&quot; \<br>
            CXXFLAGS=&quot;-m32&quot; \<br>
            CPPFLAGS=&quot;-m32 -I/opendbx/PostgreSQL/9.0/include
            -I/opendbx/mysql/5.0/include&quot; \<br>
            LDFLAGS=&quot;-m32 -L/opendbx/PostgreSQL/9.0/lib
            -L/opendbx/mysql/5.0/lib&quot; \<br>
            ./configure --disable-utils --with-backends=&quot;mysql pgsql
            sqlite3&quot;<br>
            <br>
            Run it and do :<br>
                make<br>
                make install<br>
                <br>
            All the files are copied in the /usr/local/lib directory and
            the /usr/local/lib/opendbx subdirectory.<br>
            <br>
            3. Copy the MySQL and PostgreSQL clients librairies into
            /usr/local/bin (the include files are unused).<br>
            <br>
            4. Now, you must launch Pharo to install SqueakDBX.
            <div><br>
              <br>
              Gofer new squeaksource: &#39;MetacelloRepository&#39;;<br>
              package: &#39;ConfigurationOfSqueakDBX&#39;;<br>
              load.<br>
              <br>
              ConfigurationOfSqueakDBX project latestVersion load.<br>
              <br>
              Gofer new squeaksource: &#39;MetacelloRepository&#39;;<br>
              package: &#39;ConfigurationOfGlorpDBX&#39;;<br>
              load.<br>
              <br>
              ConfigurationOfGlorpDBX project latestVersion load.<br>
              <br>
            </div>
            5. You could remove the temporary &quot;openDBX&quot; directory (step
            1). <br>
            <br>
            6. The installation is completed.<br>
            <br>
            Olivier ;-)<br>
            <a href="http://www.auverlot.fr" target="_blank">www.auverlot.fr</a>
            <div>
              <div><br>
                <blockquote type="cite">Hi Olivier,<br>
                  <br>
                   IIRC, you should:<br>
                   1) fix the location problem by putting symlink in the
                  right place.<br>
                   2) ensure that your dylib is compiled for the right
                  architecture (32bit) considering that current VMs are
                  32bits<br>
                   Perhaps this is your problem? <br>
                   what gives: <br>
                  <br>
                   $ lipo -info libopendbx.dylib<br>
                  <br>
                  #Luc<br>
                  <br>
                  <br>
                  <br>
                  <div class="gmail_quote">2011/5/17 Olivier Auverlot <span dir="ltr">&lt;<a href="mailto:olivier.auverlot@gmail.com" target="_blank">olivier.auverlot@gmail.com</a>&gt;</span><br>
                    <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                      <div bgcolor="#ffffff" text="#000000"> Hi, <br>
                        <br>
                        I try to use SqueakDBX on Mac OS X 10.6. I have
                        downloaded and compiled the libraries for
                        PostgreSQL, MySQL and finaly compiled and
                        installed openDBX.<br>
                        <br>
                        CPPFLAGS=&quot;-I/opendbx/PostgreSQL/9.0/include
                        -I/opendbx/mysql/5.0/include&quot; <br>
                        LDFLAGS=&quot;-L/opendbx/PostgreSQL/9.0/lib
                        -L/opendbx/mysql/5.0/lib&quot; <br>
                        ./configure --disable-utils
                        --with-backends=&quot;pgsql mysql sqlite3&quot;<br>
                        <br>
                        Now, I have in /usr/local/lib:<br>
                        <br>
                        -rwxr-xr-x  1 root  wheel   17040 17 mai 09:10
                        libopendbx.1.dylib<br>
                        -rw-r--r--  1 root  wheel   32584 17 mai 09:10
                        libopendbx.a<br>
                        lrwxr-xr-x  1 root  wheel      18 17 mai 09:10
                        libopendbx.dylib -&gt; libopendbx.1.dylib<br>
                        -rwxr-xr-x  1 root  wheel    1001 17 mai 09:10 <a href="http://libopendbx.la" target="_blank">libopendbx.la</a><br>
                        -rwxr-xr-x  1 root  wheel   74624 17 mai 09:10
                        libopendbxplus.1.dylib<br>
                        -rw-r--r--  1 root  wheel  385056 17 mai 09:10
                        libopendbxplus.a<br>
                        lrwxr-xr-x  1 root  wheel      22 17 mai 09:10
                        libopendbxplus.dylib -&gt;
                        libopendbxplus.1.dylib<br>
                        -rwxr-xr-x  1 root  wheel    1054 17 mai 09:10 <a href="http://libopendbxplus.la" target="_blank">libopendbxplus.la</a><br>
                        <br>
                        and in /usr/local/opendbx :<br>
                        -rwxr-xr-x  1 root  wheel  17232 17 mai 09:10 <a href="http://libmysqlbackend.1.so" target="_blank">libmysqlbackend.1.so</a><br>
                        -rw-r--r--  1 root  wheel  38960 17 mai 09:10
                        libmysqlbackend.a<br>
                        -rwxr-xr-x  1 root  wheel   1051 17 mai 09:10 <a href="http://libmysqlbackend.la" target="_blank">libmysqlbackend.la</a><br>
                        lrwxr-xr-x  1 root  wheel     20 17 mai 09:10
                        libmysqlbackend.so -&gt; <a href="http://libmysqlbackend.1.so" target="_blank">libmysqlbackend.1.so</a><br>
                        -rwxr-xr-x  1 root  wheel  16904 17 mai 09:10 <a href="http://libpgsqlbackend.1.so" target="_blank">libpgsqlbackend.1.so</a><br>
                        -rw-r--r--  1 root  wheel  28624 17 mai 09:10
                        libpgsqlbackend.a<br>
                        -rwxr-xr-x  1 root  wheel   1036 17 mai 09:10 <a href="http://libpgsqlbackend.la" target="_blank">libpgsqlbackend.la</a><br>
                        lrwxr-xr-x  1 root  wheel     20 17 mai 09:10
                        libpgsqlbackend.so -&gt; <a href="http://libpgsqlbackend.1.so" target="_blank">libpgsqlbackend.1.so</a><br>
                        -rwxr-xr-x  1 root  wheel  16856 17 mai 09:10 <a href="http://libsqlite3backend.1.so" target="_blank">libsqlite3backend.1.so</a><br>
                        -rw-r--r--  1 root  wheel  25936 17 mai 09:10
                        libsqlite3backend.a<br>
                        -rwxr-xr-x  1 root  wheel   1053 17 mai 09:10 <a href="http://libsqlite3backend.la" target="_blank">libsqlite3backend.la</a><br>
                        lrwxr-xr-x  1 root  wheel     22 17 mai 09:10
                        libsqlite3backend.so -&gt; <a href="http://libsqlite3backend.1.so" target="_blank">libsqlite3backend.1.so</a><br>
                        <br>
                        ok...<br>
                        <br>
                        I have downloaded the OneClick distribution of
                        Pharo 1.2.1 and installed SqueakDBX and
                        GlorpDBX.<br>
                        <br>
                        Gofer new squeaksource: &#39;MetacelloRepository&#39;;<br>
                        package: &#39;ConfigurationOfSqueakDBX&#39;;<br>
                        load.<br>
                        <br>
                        ConfigurationOfSqueakDBX project latestVersion
                        load.<br>
                        <br>
                        Gofer new squeaksource: &#39;MetacelloRepository&#39;;<br>
                        package: &#39;ConfigurationOfGlorpDBX&#39;;<br>
                        load.<br>
                        <br>
                        ConfigurationOfGlorpDBX project latestVersion
                        load.<br>
                        <br>
                        Now, I try to do a SQL request to MySQL:<br>
                        <br>
                        connect<br>
                             | conn connectionSettings result |<br>
                        <br>
                            connectionSettings := DBXConnectionSettings
                        <br>
                                host: &#39;<a href="http://mysql.domaine.fr" target="_blank">mysql.domaine.fr</a>&#39;<br>
                                port: &#39;3306&#39;<br>
                                database: &#39;test&#39;<br>
                                userName: &#39;username&#39;<br>
                                userPassword: &#39;hello&#39;.<br>
                                <br>
                            conn := DBXConnection<br>
                                platform: DBXMySQLPlatform new<br>
                                settings: connectionSettings.<br>
                                <br>
                            conn connect.<br>
                            <br>
                            conn open.<br>
                            result := conn execute: &#39;SELECT * from
                        data&#39;.<br>
                        <br>
                            DBXTranscript show: result.<br>
                        <br>
                            conn close.<br>
                        <br>
                        But I get an error :  &#39;Unable to find function
                        address&#39;<br>
                        <br>
                        SqueakDBX didn&#39;t found the libraries ? I have
                        try to copy the librairies in /usr/lib and
                        /usr/lib/opendbx but with no results. In the
                        Resources subdirectory, I have created a
                        symbolic link to /usr/local/lib/libopendbx.dylib
                        but without progress.<br>
                        <br>
                        <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Times;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="color:rgb(51, 51, 51);font-family:monospace;font-size:11px;line-height:16px;text-align:left">ln -s
                            /usr/local/lib/libopendbx.dylib opendbx<br>
                            <br>
                          </span></span> I get the same error :-(<br>
                        <br>
                        If i modify the info.plist file to set the
                        SqueakDebug key at 1 and the
                        SqueakPluginsBuiltInOrLocalOnly key at false, I
                        can see the search of librairies by the
                        SqueakVM. The SqueakVM doesn&#39;t seem to try to
                        load the openddbx libraries.<br>
                        <br>
                        You can download the log file at <a href="http://www.auverlot.fr/squeakdbx/squeakdbx.txt" target="_blank">http://www.auverlot.fr/squeakdbx/squeakdbx.txt</a><br>
                        <br>
                        My previous tests under Linux have worked fine
                        but i didn&#39;t find a solution with Mac OS X.
                        Someone has an idea for help me ???<br>
                        <br>
                        Thanks for your help.<br>
                        <br>
                        Best regards<br>
                        Olivier<br>
                        <a href="http://www.auverlot.fr" target="_blank">www.auverlot.fr</a><br>
                        <br>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Mariano<br>
      <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>