…which meant I had the wrong version of Rack installed. To be fair, that’s bleedin’ obvious from the error message. How often do you get an error message that clear? For Rails 2.3.5, Rack 1.01 is the right one, so uninstall Rack, all versions:
…and then installed Rack v1.01:
which all helped. But then I tried to to do rake db:create using MySQL and got no joy. So I ended up…
sudo gem update --systemsudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_configAnd with this I could create my MySQL database using rake, and start it up as usual. All done by 11.30pm on a school night, ow.
]]>Check the root of your Mac hard disk – there should be a .htaccess file lurking there, with contents that include…
Delete this file, or rename it if you’re not happy about doing that. Go to your MAMP start page and everything should be OK again. Time for a celebratory cup of tea.
Update 16th Feb: Ben Frain notes that you might not see the .htaccess in your root folder because it’s a hidden file – his blog post details the Terminal command you need to show all files.
]]>