[LRUG] Setting up Ruby + Gems + Rails on OS X
Murray Steele
murray.steele at gmail.com
Wed Dec 9 02:48:19 PST 2009
I use macports for my "main" ruby (1.8.6) but have installed rvm for
other rubies recently. It seems to work quite well at isolating
rubies from each other.
The only problem I had with it was that it's detection of what
architecture to compile stuff against (i386 vs x86_64) is somewhat
lacking. I have a 64bit mac, but I'm on Leopard which is 32bit and so
everything I have is compiled as 32bit. For no good reason (as far as
I could tell) rvm decided to compile 1.8.7 as 64bit and thus none of
my gems that link to stuff (sqlite, mysql, rmagick, &c) would compile
properly :( It was a bit of a pain to diagnose, but easily fixed by
using .rvmrc to explicit telling rvm to use i386.
I understand that most people are having this problem in reverse when
they upgrade to Snow Leopard. The common wisdom seems to be to blow
away macports and start again so you get everything as 64bit, then
force rvm to use x86_63 via .rvmrc and you should be set.
Cheers,
Muz
2009/12/9 Paul Campbell <paul at rslw.com>:
> I just use the out of the box OS X Ruby and gems. Although there's
> been a lot of good things said about RVM lately...
>
> On Wed, Dec 9, 2009 at 10:34 AM, Anthony Green <Anthony.Green at bbc.co.uk> wrote:
>>
>> I spent a good hour of yesterday evening debugging a gems problem on a
>> colleagues laptop.
>>
>> It made me wonder whether there's a general consensus amongst LRUGers on
>> what's the best way to manage Ruby + Gems + Rails on OS X ?
>>
>> For myself I've 'fallen back' to using MacPorts, since it seems to
>> accommodate a growth in need (counchDB etc) quite well.
>>
>>
>> Thoughts ?
>>
>>
>> --
>> Anthony Green
>> Client Side Developer
>> Future Media & Technology for BBC Audio & Music Interactive
>>
>>
>>
>> http://www.bbc.co.uk/
>> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
>> If you have received it in error, please delete it from your system.
>> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
>> Please note that the BBC monitors e-mails sent or received.
>> Further communication will signify your consent to this.
>>
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>
>
>
>
> --
>
>
> Paul Campbell
> paul at rushedsunlight.com
> - - - - - - - - - - - - - - - - - - -
> blog http://www.pabcas.com
> twitter http://www.twitter.com/paulca
> github http://www.github.com/paulca
> phone +353 87 914 8162
> - - - - - - - - - - - - - - - - - - -
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
More information about the Chat
mailing list