I have serious problem with Ruby and OSX Lion - whenever I try to start Rails or even a rake tool I am getting this error:
[FATAL] failed to allocate memory
I tried recompilling ruby in different versions (1.9.2-p180, 1.9.2-p290, 1.9.2-head) and its always the same.
However I noticed that I can remove some gems and then "rake" tool will work and only 'rails s' will die with that error. It seems like there is in fact not enough memory for this amount of gems I am using, but again this seems very weird - it works perfectly fine on Snow Leopard and even at my company on mac mini with Lion - the only difference is that the mini is upgraded Snow Leopard -> Lion, whilst on my iMac its a clean Lion installation.
Any ideas? Is there a setting of some kind to increase memory on OSX/Lion?