Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Ruby and MySQL and Cocoa UNIX
Amongst a lot of other great stuff, MacOS X 10.3 ships with MySQL and Ruby. Ruby, for you die-hard php/perl fans out there, is a splendid object-orientated language that performs very well on the Mac, too. You can even integrate it in the Aqua environment by using Cocoa classes -- check out Ruby central and RubyCocoa.

Download the package at dev.mysql.com, unpack it and type the following in the folder where the install data resides.:
  1. ruby extconf.rb --with-mysql-include=/usr/local/mysql/include
    --with-mysql-lib=/usr/local/mysql/lib --with-mysql-dir=/usr/local/mysql
  2. sudo make
  3. ruby -I. test.rb localhost username password ... of course, replace username and password with your access data
  4. sudo make install
  5. include the require "mysql" statement in your rubyscript.
Have fun!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[9,748 views]  

Ruby and MySQL and Cocoa | 6 comments | Create New Account
Click here to return to the 'Ruby and MySQL and Cocoa' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Ruby and MySQL and Cocoa
Authored by: fds on Jun 16, '04 02:55:07PM

Only Mac OS X Server ships with MySQL.



[ Reply to This | # ]
Ruby and MySQL and Cocoa
Authored by: dansroka on Jun 16, '04 03:26:48PM
A nice easy-to-use package to install MySQL can be found at www.serverlogistics.com/mysql.php

[ Reply to This | # ]
Ruby and MySQL and Cocoa
Authored by: sjk on Jun 16, '04 05:46:02PM

Great stuff, tho' it seems Aaron has moved on to other projects since none of the Complete packages has been updated for quite awhile. :-(



[ Reply to This | # ]
Ruby and MySQL and Cocoa
Authored by: freakindesign on Jun 16, '04 08:16:09PM

why bother, when they offer a nice point & click installer at the official site?

http://dev.mysql.com/downloads/mysql/4.0.html



[ Reply to This | # ]
...
Authored by: sjk on Jun 17, '04 09:44:23PM

Ahh, thanks for the reminder. I vaguely remember Aaron mentioning he won't be updating Complete MySQL because of the MySQL.com packages.



[ Reply to This | # ]
Ruby and MySQL and Cocoa
Authored by: blackshadow on Jun 17, '04 10:02:29AM

Another great place to download MySQL for Mac OS X with great step-by-step instructions can be found at: http://www.entropy.ch:16080/software/macosx/mysql/



[ Reply to This | # ]