2009/09/07

How do I get Home from here?

I love my macs, but one of the few aspects of using one that annoys me is the utter lack of home/end keys on the keyboard. Please, somebody tell me there's some minor point I've missed in configuration that magically enables these keys in terminal. (Command-arrow keys don't count--they work in text environments to jump to the beginning or end of a line, but not at all in terminal environments, which means that if i need to change the beginning of a really long command, i'm left with just holding the arrow until i'm back at the beginning of the line. This totally blows.

How is it Apple gets so many other things so right and totally cocks that up?

2009/09/03

Snow leopard upgrade woes

So on a whim last weekend i decided upgrading my new Macbook Pro to snow leopard on Day 0 would be a good idea. The upgrade went flawlessly--that is, until I actually tried to use my development environment afterwards.

The root cause of all the trouble was that in SN, unlike Leopard, most applications are 64-bit, which means your Ruby libs that have C code behind the scenes need to recompile. But the default compile only compiles them linking to 32-bit code. In a lot of cases this doesn't seem to matter; the big one people run into is mysql (see this post for details on how to fix it).

Another one it took me awhile to find though, was ruby-debug. When my development partner and I were trying to debug a particularly hairy problem this week, my machine refused to drop into the debugger. It took me awhile to realize what the problem was, and running this fixed it:

sudo env ARCHFLAGS="-arch x86_64" gem install ruby-debug

Once I ran that, everything was golden again.

More adventures to come...

Labels: , , , , , ,