Download and Install myodbc version 3.51.11 on Mac OS X
Thursday the 20th of November, 2008

    version 3.51.11

      View the most recent changes for the myodbc port at: myodbc.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for myodbc.
      The raw portfile for myodbc 3.51.11 is located here:
      http://myodbc.darwinports.com/dports/databases/MyODBC/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/myodbc
      Google
      Web Darwinports.com



      # $Id: Portfile 28517 2007-09-02 22:09:48Z mww macports.org $

      PortSystem 1.0
      Name: MyODBC
      Version: 3.51.11
      Category: databases
      Platform: darwin
      Maintainers: simon cotsworth.com
      Description: MySQL Connector/ODBC

      Long Description: MySQL Connector/ODBC (also known as MyODBC) allows you to connect to a MySQL database server using the ODBC database API on all Microsoft Windows and most Unix platforms, including through such applications and programming environments such as Microsoft Access, Microsoft Excel, and Borland Delphi.

      Homepage: http://www.mysql.com/

      set sitedir Downloads/${name}3/
      master_sites ftp://planetmirror.com/pub/mysql/${sitedir} http://www.softagency.co.jp/MySQL/${sitedir} ftp://sunsite.dk/mirrors/mysql/${sitedir} http://mysql.mirror.anlx.net/${sitedir} http://gd.tuwien.ac.at/db/mysql/${sitedir} http://mysql.mediatraffic.fi/${sitedir} ftp://filepile.tiscali.de/mirror/mysql/${sitedir} http://mirrors.tilian.co.uk/mysql.com/${sitedir} ftp://ftp.rtfm.no/pub/mysql/${sitedir} http://www.mysql.cz/${sitedir} ftp://ftp.u-paris10.fr/mysql.com/${sitedir} http://mysql.oms-net.nl/${sitedir} ftp://ftp.free.fr/pub/MySQL/${sitedir}

      checksums md5 fb295a2a07dab09caf608f2227b531ef
      # sha1 f59b754a6249af2de057969f845ad9739b0ff3ac

      depends_lib lib:libmysqlclient:mysql4 lib:libodbc.1:unixODBC lib:libz.1:zlib

      post-patch {
      reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/imyodbc/Makefile.osx
      }

      configure.args --with-unixODBC=${prefix} --with-unixODBC-includes=${prefix}/include --with-unixODBC-libs=${prefix}/lib --with-odbc-ini=${prefix}/etc/odbc.ini --with-mysql-path=${prefix} --enable-thread-safe --enable-shared --enable-static --without-debug --without-samples --disable-gui

      platform darwin 6 {
      depends_lib-append lib:libdl:dlcompat
      }

      platform darwin {
      configure.args-append --enable-bundles --enable-dmlink --enable-imyodbc
      }

      Variant: samples {
      configure.args-delete --without-samples
      configure.args-append --with-samples
      }

      Variant: debug {
      configure.args-delete --without-debug
      configure.args-append --with-debug
      }

      post-destroot {
      # install directories
      foreach dir [list ${name} doc/${name} unixODBC] {
      xinstall -d -m 0755 ${destroot}${prefix}/share/$dir
      }

      # install readme files
      foreach readme [glob ${worksrcpath}/\[A-Z\]*\[A-Z\] ${worksrcpath}/\[A-Z\]*.\[a-z\]] {
      xinstall -m 0644 $readme ${destroot}${prefix}/share/doc/${name}
      }

      # install samples
      if { [variant_isset samples] } {
      xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/samples
      foreach sample [glob ${worksrcpath}/samples/.libs/my_*] {
      xinstall -m 0755 $sample ${destroot}${prefix}/share/${name}/samples
      }
      }

      # install example odbc.ini
      xinstall -m 0644 ${portpath}/${filesdir}/odbc.ini ${destroot}${prefix}/share/${name}/odbc.ini.dist
      reinplace "s|/usr/local|${prefix}|g" ${destroot}${prefix}/share/${name}/odbc.ini.dist

      # install MyODBC templates
      foreach template [glob ${portpath}/${filesdir}/*.template] {
      xinstall -m 0644 $template ${destroot}${prefix}/share/unixODBC
      }
      reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/share/unixODBC/mysql.driver.template
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/myodbc
      % sudo port install myodbc
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching myodbc
      ---> Verifying checksum for myodbc
      ---> Extracting myodbc
      ---> Configuring myodbc
      ---> Building myodbc with target all
      ---> Staging myodbc into destroot
      ---> Installing myodbc
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using myodbc with these commands:
      %  man myodbc
      % apropos myodbc
      % which myodbc
      % locate myodbc

     Where to find more information:

    Darwin Ports



    Lightbox this page.