Haha! I solved the problem in the previous post with some cunning. And Google.
Basically, even though it looks like the
mysql gem has installed correctly, it won’t have, because, once you’ve upgraded to Xcode 2.1,
gcc is upgraded to 4.0. If you try and install the gem with gcc 4.0, it breaks. You need to install it with gcc 3.3 as your compiler. Doing this is as easy as typing
sudo gcc_select 3.3
in your terminal window before you run
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Once you’ve done all that, you can then type
sudo gcc_select 4.o to return things to normal.
Phew. Scaffolds now work. That was an exciting little detour.