tag:blogger.com,1999:blog-4376417828574391409.post4553651885847803457..comments2023-11-23T08:55:01.108-05:00Comments on Victor Costan: Rebuild Your Ruby Gems If You Update To Snow LeopardAnonymoushttp://www.blogger.com/profile/15471814314476820630noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-4376417828574391409.post-39920401445274341802010-07-13T17:19:35.520-04:002010-07-13T17:19:35.520-04:00Thank you so much! You saved me much grief and ti...Thank you so much! You saved me much grief and time! -OscarAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-7735717248030314502010-04-21T10:24:31.669-04:002010-04-21T10:24:31.669-04:00This http://github.com/krisleech/Reinstall-Gems mi...This http://github.com/krisleech/Reinstall-Gems might also work well, it installs all versions of your current gem list.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-6023988939844640652010-02-22T11:54:55.526-05:002010-02-22T11:54:55.526-05:00Thanks so much for posting this!
Since my 10.6 up...Thanks so much for posting this!<br /><br />Since my 10.6 update ruby's been driving me mad. I should've googled this sooner - sanity restored!mrbiotechhttps://www.blogger.com/profile/09386774444162356426noreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-57743409954598659022010-01-16T17:42:15.881-05:002010-01-16T17:42:15.881-05:00Thank You man!Thank You man!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-69558798492536214562010-01-07T21:42:45.528-05:002010-01-07T21:42:45.528-05:00Rock and Roll dude, I had a problem when updating ...Rock and Roll dude, I had a problem when updating to snow leopard, after I completed Dan Benjamin's tutorial on <a href="http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/" rel="nofollow">updating ruby and rails for snow leopard</a> I tried running an empty app with rails demo, then ruby script/server and mongrel just didn't start. With your post I am now running mongrel without any problem. Thanks so much.<br /><br />Iaax PageAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-85416591909710736982009-09-22T11:21:20.471-04:002009-09-22T11:21:20.471-04:00You are a God. I've been going crazy with get...You are a God. I've been going crazy with getting all this to work under SL. Thank you!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-65390141810700953392009-09-06T13:30:31.248-04:002009-09-06T13:30:31.248-04:00I found your site while trying to figure out why S...I found your site while trying to figure out why Snow Leopard had switched my rails server to Webrick from Mongrel, and why it was so slow. I'm not exactly sure what fixed it, but running "sudo gem uninstall mongrel" was the last thing I did. Mongrel still shows up in my gem list, but now Snow Leopard uses that instead of Webrick, and it's really fast. That doesn't make any sense to me, but I figured it was worth sharing my experience.Pete Bhttps://www.blogger.com/profile/14699185284008503082noreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-71085947686687342792009-08-31T00:48:03.543-04:002009-08-31T00:48:03.543-04:00@Aaron, anonymous, Michael: many thanks for the fe...@Aaron, anonymous, Michael: many thanks for the feedback! I have revised the post, and the new method should work for people with old versions of rubygems.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-13140497594748013732009-08-29T22:24:22.236-04:002009-08-29T22:24:22.236-04:00This is great, however what about people who are n...This is great, however what about people who are not on the latest version of gems? I fell under this boat and i modified the command to like so:<br /><br />`gem list`.each_line {|line| system "sudo env ARCHFLAGS=\"-arch x86_64\" gem install #{line.split[0]} -v '#{line.split[1][1..-2]}'"}<br /><br />This will reinstall the latest version of each gem that is installed.Michael D'Aurianoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-36085065521617946602009-08-29T12:27:25.708-04:002009-08-29T12:27:25.708-04:00You've missed double quotes. Without them the ...You've missed double quotes. Without them the #{} expression won't get parsed.<br /><br />`gem list`.each_line {|line| system "sudo env ARCHFLAGS=\"-arch x86_64\" gem install #{line.split.first}"}<br /><br />This will do the trick.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-31083481726391482742009-08-28T18:26:16.967-04:002009-08-28T18:26:16.967-04:00Thanks for this. I'm sure you've saved me...Thanks for this. I'm sure you've saved me a lot of times.<br /><br />I've seen elsewhere that you should prepend any gem installs on Snow Leopard with:<br /><br />env ARCHFLAGS="-arch x86_64"<br /><br />I'm not sure if that is required or not (there is clearly a lot of confusion on the issue). I didn't do it that way and it seems OK so far (other than I have to build the MySQL gem with the appropriate flags).<br /><br />So, if you really SHOULD use the x86_64 flags the appropriate command would be<br /><br />`gem list`.each_line {|line| system 'sudo env ARCHFLAGS="-arch x86_64" gem install #{line.split.first}'}<br /><br />YMMVAaron H.https://www.blogger.com/profile/11607110379503891222noreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-79389502386648040182009-08-28T18:09:19.823-04:002009-08-28T18:09:19.823-04:00Awesome tip! Thank you... Installing XCode.Awesome tip! Thank you... Installing XCode.Jimmy Zimmermanhttp://jimmyzimmerman.com/blog/noreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-29325970793299649832009-08-27T15:47:23.074-04:002009-08-27T15:47:23.074-04:00great tip.
but remember to install xcode from sn...great tip.<br /><br />but remember to install xcode from snow leopard dvd before trying to rebuild the gems.<br /><br />I learned that one the hard way...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4376417828574391409.post-44501485180268938012009-08-14T11:30:36.586-04:002009-08-14T11:30:36.586-04:00Thanks so much for this, you surely saved me some ...Thanks so much for this, you surely saved me some up manual terminal labor.Nicknoreply@blogger.com