so i'm playing around with ruby on rails. on my powerbook running tiger. i got rails running, easy. i get the "welcome to ruby on rails." sweet.
then i try to install mysql. not so straightforward.
i downloaded the mysql5.0 distribution from www.mysql.com. but then when i go to terminal and type "mysql" or "mysql -v" or something, i get this:
that would have worked if i was installing with window, i think. blah.
anyway, i found tony arnold's instructions, and while he didn't explain why or how, they work. i'm blogging this more so i can remember what i did than for you, america.
basically, i hadn't installed the mysql bindings. and that made everything all pissy.
1. go to www.mysql.com. get latest stable version of mysql. (for me, it was 5.0.18-standard for powerpc)
2. unzip/untar and run the installer
3. Un-install any MySQL rubygems you may already have installed. We need to remove any earlier - possibly failed - attempts at installing the binding:
then it says:
checking for mysql_ssl_set()... yes
checking for mysql.h... yes
creating Makefile
then i'm like:
then he's all:
gcc -fno-common -arch ppc -g -Os -pipe -fno-common -arch ppc -pipe -pipe -fno-common -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/local/mysql/include -Os -arch ppc -c mysql.c
cc -dynamic -bundle -undefined suppress -flat_namespace -L"/usr/lib" -o mysql.bundle mysql.o -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lpthread -ldl -lobjc
then i say:
then he said:
install -c -p -m 0755 mysql.bundle /usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0
and i'm done. then, i can say "mysql" in terminal and it works.
for now.
judging from the chairmanlau's year end contest, you all hate me. that's ok. i don't like you either.
i also found out that my fancy AWStats stuff that i set up a while back broke. on Dec 25th, it stopped working. merry xmas to me! what was wrong? who knows. is it fixed? not yet.
but i updated the stuff by following directions from here:
so it's up to date. still broken. but whatever. blah!