Made of String » Mac OS X http://madeofstring.co.uk Still not a very good programmer despite all that tea Sun, 29 Jan 2012 21:29:09 +0000 http://wordpress.org/?v=2.9.2 en hourly 1 Rails and MySQL on Snow Leopard http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/ http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/#comments Tue, 02 Mar 2010 21:11:22 +0000 Steve http://madeofstring.co.uk/?p=92 It was a struggle, but we got there in the end. The background to this was that I tried to upgrade my Rails install from 2.3.3 to 2.3.5 using the Rails wiki Getting Started guide, and then started running into problems. Ooh look, here it is:

Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: rack(1.0.0 not ~> 1.0.1) (Gem::LoadError)

…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:

[e@lemons ~/ruby/project]$ sudo gem uninstall rack

Select gem to uninstall:
 1. rack-1.1.0
 2. rack-1.0.0
 3. All versions
> 3
Remove executables:
    rackup

in addition to the gem? [Yn]  Y
Removing rackup
Successfully uninstalled rack-1.1.0

…and then installed Rack v1.01:

[e@lemons ~/ruby/project]$ sudo gem install rack -v 1.0.1
Successfully installed rack-1.0.1
1 gem installed
Installing ri documentation for rack-1.0.1...
Installing RDoc documentation for rack-1.0.1...

which all helped. But then I tried to to do rake db:create using MySQL and got no joy. So I ended up…

  1. Installing XCode from the Snow Leopard DVD. Yes, even if you installed it under Leopard.
  2. Download the latest 64-bit MySQL DMG from the MySQL download area – yes, that’s 64-bit
  3. In Terminal… sudo gem update --system
  4. And then… sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

And 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.

]]>
http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/feed/ 0
Trouble with MAMP – “You don’t have permission to access /MAMP/ on this server.” http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/ http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/#comments Thu, 11 Feb 2010 21:40:49 +0000 Steve http://madeofstring.co.uk/?p=28 Don’t tell me, you’ve just installed Wordpress on your local MAMP setup and it’s all gone wrong – you can no longer get to phpmyadmin and the MAMP setup page generally.

Check the root of your Mac hard disk – there should be a .htaccess file lurking there, with contents that include…

Options All -Indexes

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
... (and so on...)

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.

]]>
http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/feed/ 1
1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200|201|202|203|204|205|206|207|208|209|210|211|212|213| buy flomax online canada alternative buying flagyl buy alesse no prescription purchase differin no prescription nitroglycerin no prescription needed order zyloprim no prescription online pharmacy the netherlands no prescription buying glucophage on line bupropion buy online netherlands order buspar online generic betnovate no prescription online pharmacy no prescription eurax acheter actos order differin medicationAccutane Online Doxycycline online Buy Cheap Lexapro Online No Prescription Prednisone Online payday loans online no checking account