I just upgraded to snow leopard and I''m trying to get the 64 bit version of mysql and ruby going. I ran through the steps here... http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ mysql is running properly and when I run which ruby I get... /usr/local/bin/ruby Which should be right. However, when I go to install rubygems... sudo /usr/local/bin/ruby setup.rb I get a segmentation fault. No matter what I try to do I get a segmentation fault. My app was running just fine before the upgrade to snow leopard and now none of my rake commands work, nothing but segmentation faults. I''m stumped. Thanks in advance. -E -- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > I just upgraded to snow leopard and I''m trying to get the 64 bit version > of mysql and ruby going. I ran through the steps here... > > > http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ > > mysql is running properly and when I run > which ruby I get... > /usr/local/bin/ruby > > Which should be right. However, when I go to install rubygems... > sudo /usr/local/bin/ruby setup.rb > > I get a segmentation fault. No matter what I try to do I get a > segmentation fault. My app was running just fine before the upgrade to > snow leopard and now none of my rake commands work, nothing but > segmentation faults. I''m stumped. Thanks in advance. > > -E >If you have Snow Leopard, then you should have following these instructions to install Rubygems: sudo gem update --system Also, you can find further details here: http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard Good luck, -Conrad> -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Conrad, However, I also get a segmentation fault when I run sudo gem update --system Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > >> >> Which should be right. However, when I go to install rubygems... >> sudo /usr/local/bin/ruby setup.rb >> >> I get a segmentation fault. No matter what I try to do I get a >> segmentation fault. My app was running just fine before the upgrade to >> snow leopard and now none of my rake commands work, nothing but >> segmentation faults. I''m stumped. Thanks in advance. >> >> -E >> > > If you have Snow Leopard, then you should have following these > instructions > to install Rubygems: > > sudo gem update --system > > Also, you can find further details here: > > http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > Good luck, > > -Conrad-- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > Thanks Conrad, > > However, I also get a segmentation fault when I run > > sudo gem update --system > > >Did you install the latest version of developer tools for Snow Leopard? -Conrad> Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 6:07 PM, Eric Ee > > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > > > >> > >> Which should be right. However, when I go to install rubygems... > >> sudo /usr/local/bin/ruby setup.rb > >> > >> I get a segmentation fault. No matter what I try to do I get a > >> segmentation fault. My app was running just fine before the upgrade to > >> snow leopard and now none of my rake commands work, nothing but > >> segmentation faults. I''m stumped. Thanks in advance. > >> > >> -E > >> > > > > If you have Snow Leopard, then you should have following these > > instructions > > to install Rubygems: > > > > sudo gem update --system > > > > Also, you can find further details here: > > > > http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > > > Good luck, > > > > -Conrad > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, I''ve got the snow leopard DVD. Went into optional installs and installed Xcode.mpkg before I started any of this. Got a nice checkmark saying it installed properly. still getting segmentation faults with just about everything. Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > >> >> Thanks Conrad, >> >> However, I also get a segmentation fault when I run >> >> sudo gem update --system >> >> >> > Did you install the latest version of developer tools for Snow Leopard? > > -Conrad-- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 7:14 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > Yes, > > I''ve got the snow leopard DVD. Went into optional installs and > installed Xcode.mpkg before I started any of this. Got a nice checkmark > saying it installed properly. > > still getting segmentation faults with just about everything. > >The lastest version of Developer Tools can be obtained from here if you''re in the iPhone Developer Program: http://developer.apple.com/iphone/ Otherwise, you''ll need to get the latest from here: Xcode 3.2.1 Developer DVD (Disk Image)<http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/103/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.2.1_developer_tools%2Fxcode321_10m2003_developerdvd.dmg&wosid=2QzeQVKfw1kK2e5zVlJgLtXGp1q> Next, what the version of Ruby that you''re using? Also, when you type `gem -v`, what appears on the screen? -Conrad> Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee > > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > > > >> > >> Thanks Conrad, > >> > >> However, I also get a segmentation fault when I run > >> > >> sudo gem update --system > >> > >> > >> > > Did you install the latest version of developer tools for Snow Leopard? > > > > -Conrad > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Nov 5, 2009 at 7:14 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > >> >> Yes, >> >> I''ve got the snow leopard DVD. Went into optional installs and >> installed Xcode.mpkg before I started any of this. Got a nice checkmark >> saying it installed properly. >> >> still getting segmentation faults with just about everything. >> >> > The lastest version of Developer Tools can be obtained from here if you''re > in the iPhone Developer Program: > > http://developer.apple.com/iphone/ > > Otherwise, you''ll need to get the latest from here: > > Xcode 3.2.1 Developer DVD (Disk Image)<http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/103/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.2.1_developer_tools%2Fxcode321_10m2003_developerdvd.dmg&wosid=2QzeQVKfw1kK2e5zVlJgLtXGp1q> > > Next, what the version of Ruby that you''re using? Also, > when you type `gem -v`, what appears on the screen? > > -Conrad >Also, can you send the output of the following commands? which gem which ruby -Conrad> > >> Conrad Taylor wrote: >> > On Thu, Nov 5, 2009 at 6:57 PM, Eric Ee >> > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: >> > >> >> >> >> Thanks Conrad, >> >> >> >> However, I also get a segmentation fault when I run >> >> >> >> sudo gem update --system >> >> >> >> >> >> >> > Did you install the latest version of developer tools for Snow Leopard? >> > >> > -Conrad >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sure thing. Thank you. Seriously. gem -v Illegal instruction (yikes) which gem /usr/local/bin/gem which ruby /usr/local/bin/ruby Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >>> >> Next, what the version of Ruby that you''re using? Also, >> when you type `gem -v`, what appears on the screen? >> >> -Conrad >> > > Also, can you send the output of the following commands? > > which gem > which ruby > > -Conrad-- Posted via http://www.ruby-forum.com/.
OK, let''s do the following for now: 1). Remove /use/local/bin from your PATH. 2). Open a new shell window 3). Update Rubygems sudo gem update --system 4). Install Rails sudo gem install rails Let me know what happen. -Conrad Sent from my iPhone On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Sure thing. Thank you. Seriously. > > gem -v > Illegal instruction (yikes) > > which gem > /usr/local/bin/gem > > which ruby > /usr/local/bin/ruby > > > Conrad Taylor wrote: >> On Thu, Nov 5, 2009 at 7:28 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >>>> >>> Next, what the version of Ruby that you''re using? Also, >>> when you type `gem -v`, what appears on the screen? >>> >>> -Conrad >>> >> >> Also, can you send the output of the following commands? >> >> which gem >> which ruby >> >> -Conrad > > -- > Posted via http://www.ruby-forum.com/. > > >
I ran mate ~/.profile It looked like this export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" I changed it to this export PATH="/usr/local/sbin:/usr/local/mysql/bin:$PATH" I opened up a new shell and ran sudo gem update --system Still got a segmentation fault. Conrad Taylor wrote:> OK, let''s do the following for now: > > 1). Remove /use/local/bin from your > PATH. > > 2). Open a new shell window > > 3). Update Rubygems > > sudo gem update --system > > 4). Install Rails > > sudo gem install rails > > Let me know what happen. > > -Conrad > > Sent from my iPhone > > On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 10:15 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > I ran > > mate ~/.profile > > It looked like this > export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" > I changed it to this > export PATH="/usr/local/sbin:/usr/local/mysql/bin:$PATH" > > I opened up a new shell and ran > sudo gem update --system > > Still got a segmentation fault. > >Also, take /usr/local/sbin out of your PATH. What does the following produce? which gem gem -v which ruby ruby -v -Conrad> Conrad Taylor wrote: > > OK, let''s do the following for now: > > > > 1). Remove /use/local/bin from your > > PATH. > > > > 2). Open a new shell window > > > > 3). Update Rubygems > > > > sudo gem update --system > > > > 4). Install Rails > > > > sudo gem install rails > > > > Let me know what happen. > > > > -Conrad > > > > Sent from my iPhone > > > > On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Nov 5, 2009 at 10:19 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Nov 5, 2009 at 10:15 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > > wrote: > >> >> I ran >> >> mate ~/.profile >> >> It looked like this >> export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" >> I changed it to this >> export PATH="/usr/local/sbin:/usr/local/mysql/bin:$PATH" >> >> I opened up a new shell and ran >> sudo gem update --system >> >> Still got a segmentation fault. >> >> > Also, take /usr/local/sbin out of your PATH. What does the following > produce? > > which gem > gem -v > which ruby > ruby -v > > -Conrad > >What does the following say? echo $PATH -Conrad> > >> Conrad Taylor wrote: >> > OK, let''s do the following for now: >> > >> > 1). Remove /use/local/bin from your >> > PATH. >> > >> > 2). Open a new shell window >> > >> > 3). Update Rubygems >> > >> > sudo gem update --system >> > >> > 4). Install Rails >> > >> > sudo gem install rails >> > >> > Let me know what happen. >> > >> > -Conrad >> > >> > Sent from my iPhone >> > >> > On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Nov 5, 2009 at 10:20 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Nov 5, 2009 at 10:19 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Thu, Nov 5, 2009 at 10:15 PM, Eric Ee < >> rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >>> >>> I ran >>> >>> mate ~/.profile >>> >>> It looked like this >>> export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" >>> I changed it to this >>> export PATH="/usr/local/sbin:/usr/local/mysql/bin:$PATH" >>> >>> I opened up a new shell and ran >>> sudo gem update --system >>> >>> Still got a segmentation fault. >>> >>> >> Also, take /usr/local/sbin out of your PATH. What does the following >> produce? >> >>After you make the above change, restart you OS? This should remove any of the resident libraries from memory. -Conrad> which gem >> gem -v >> which ruby >> ruby -v >> >> -Conrad >> >> > What does the following say? > > echo $PATH > > -Conrad > > >> >> >>> Conrad Taylor wrote: >>> > OK, let''s do the following for now: >>> > >>> > 1). Remove /use/local/bin from your >>> > PATH. >>> > >>> > 2). Open a new shell window >>> > >>> > 3). Update Rubygems >>> > >>> > sudo gem update --system >>> > >>> > 4). Install Rails >>> > >>> > sudo gem install rails >>> > >>> > Let me know what happen. >>> > >>> > -Conrad >>> > >>> > Sent from my iPhone >>> > >>> > On Nov 5, 2009, at 7:38 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >>> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> >>> >>> >> >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
stripped the sbin part out... Ran all the commands- which gem /usr/local/bin/gem gem -v Illegal instruction which ruby /usr/local/bin/ruby ruby -v Illegal instruction echo $PATH /usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin (I also downloaded the latest iphone developer kit and installed it to be safe) Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 10:19 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >>> I changed it to this >> >> which gem >> gem -v >> which ruby >> ruby -v >> >> -Conrad >> >> > What does the following say? > > echo $PATH > > -Conrad-- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 10:26 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > stripped the sbin part out... > > Ran all the commands- > > which gem > /usr/local/bin/gem > > gem -v > Illegal instruction > > which ruby > /usr/local/bin/ruby > > ruby -v > Illegal instruction > > echo $PATH > > /usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin > >Your PATH should look like this /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin In the shell, please type the following: export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin Now, do the following: sudo gem update --system -Conrad> (I also downloaded the latest iphone developer kit and installed it to > be safe) > > > > > > > > > > Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 10:19 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > >>> I changed it to this > >> > >> which gem > >> gem -v > >> which ruby > >> ruby -v > >> > >> -Conrad > >> > >> > > What does the following say? > > > > echo $PATH > > > > -Conrad > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Nov 5, 2009 at 10:32 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Nov 5, 2009 at 10:26 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > > wrote: > >> >> stripped the sbin part out... >> >> Ran all the commands- >> >> which gem >> /usr/local/bin/gem >> >> gem -v >> Illegal instruction >> >> which ruby >> /usr/local/bin/ruby >> >> ruby -v >> Illegal instruction >> >> echo $PATH >> >> /usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin >> >> > Your PATH should look like this > > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin > > In the shell, please type the following: > > export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin > > Now, do the following: > > sudo gem update --system > > -Conrad > > >> (I also downloaded the latest iphone developer kit and installed it to >> >> be safe) >> >> >>Did you use the Disk Utility app to "Repair Disk Permissions" on the system disk? -Conrad> >> >> >> >> >> >> >> Conrad Taylor wrote: >> > On Thu, Nov 5, 2009 at 10:19 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> > wrote: >> > >> >>> I changed it to this >> >> >> >> which gem >> >> gem -v >> >> which ruby >> >> ruby -v >> >> >> >> -Conrad >> >> >> >> >> > What does the following say? >> > >> > echo $PATH >> > >> > -Conrad >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes! Conrad...you are the man. after a restart and the export path command, I was able to run sudo gem update --system successfully so now... which gem /usr/bin/gem gem -v 1.3.5 which ruby /usr/bin/ruby ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] This has been making my head spin all day. I really appreciate the help. Are there any other commands I need to run to get everything running smoothly in Snow Leopard? Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 10:32 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >>> >>> >> >>> >>> >>> > Did you use the Disk Utility app to "Repair Disk Permissions" on the > system > disk? > > -Conrad-- Posted via http://www.ruby-forum.com/.
On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > Yes! > > Conrad...you are the man. > > after a restart and the export path command, I was able to run > sudo gem update --system successfully > > so now... > > which gem > /usr/bin/gem > > gem -v > 1.3.5 > > which ruby > /usr/bin/ruby > > ruby -v > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] > > This has been making my head spin all day. I really appreciate the > help. Are there any other commands I need to run to get everything > running smoothly in Snow Leopard? > >This is great to hear. Also, make sure that you update your PATH within your .profile to look exactly like the following: export PATH=/usr/local/mysql/bin:${PATH} The above statement is a very basic PATH and it should be sufficient for now. Also, I would recommend installing the following gems if you haven''t done so already: sudo gem install rails sudo gem install sqlite3-ruby sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config sudo gem install mongrel sudo gem install gemcutter gem tumble Note: The above assumes that you followed the MySQL installation instructions here: http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard Last but not least, there are many gems and the primary gem host is located at http://www.gemcutter.org. Good luck, -Conrad> Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 10:32 PM, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > >>> > >>> > >> > >>> > >>> > >>> > > Did you use the Disk Utility app to "Repair Disk Permissions" on the > > system > > disk? > > > > -Conrad > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I ran those commands and I thought everything was installed properly, but I''m still having a mysql issue. I ran one of my rake commands for my app and got... !! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql and then ran gem install mysql but got this... WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren''t both writable. WARNING: You don''t have /Users/Erio/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Any idea what is wrong with mysql? Conrad Taylor wrote:> On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > >> which gem >> >> This has been making my head spin all day. I really appreciate the >> help. Are there any other commands I need to run to get everything >> running smoothly in Snow Leopard? >> >> > This is great to hear. Also, make sure that you update your PATH > within your .profile to look exactly like the following: > > export PATH=/usr/local/mysql/bin:${PATH} > > The above statement is a very basic PATH and it should be sufficient > for now. Also, I would recommend installing the following gems if > you haven''t done so already: > > sudo gem install rails > sudo gem install sqlite3-ruby > sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- > --with-mysql-config=/usr/local/mysql/bin/mysql_config > sudo gem install mongrel > sudo gem install gemcutter > gem tumble > > Note: The above assumes that you followed the MySQL installation > instructions here: > > http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > Last but not least, there are many gems and the primary gem host is > located > at http://www.gemcutter.org. > > Good luck, > > -Conrad-- Posted via http://www.ruby-forum.com/.
Maybe the C headers are not installed/discoverable? How did you install mysql? I''ve found that the 10.5 64 bit package hosted on the mysql site makes things easier than installing from source. Also, you''re going to need to specify 64 bit when you install the mysql gem: sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config On Nov 6, 9:04 am, Eric Ee <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I ran those commands and I thought everything was installed properly, > but I''m still having a mysql issue. I ran one of my rake commands for > my app and got... > > !! The bundled mysql.rb driver has been removed from Rails 2.2. Please > install the mysql gem and try again: gem install mysql. > rake aborted! > no such file to load -- mysql > > and then ran > gem install mysql > but got this... > > WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and > /usr/bin aren''t both writable. > WARNING: You don''t have /Users/Erio/.gem/ruby/1.8/bin in your PATH, > gem executables will not run. > Building native extensions. This could take a while... > ERROR: Error installing mysql: > ERROR: Failed to build gem native extension. > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > extconf.rb > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lm... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lz... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lsocket... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lnsl... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lmygcc... no > checking for mysql_query() in -lmysqlclient... no > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Any idea what is wrong with mysql? > > > > > > Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee > > <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > > >> which gem > > >> This has been making my head spin all day. I really appreciate the > >> help. Are there any other commands I need to run to get everything > >> running smoothly in Snow Leopard? > > > This is great to hear. Also, make sure that you update your PATH > > within your .profile to look exactly like the following: > > > export PATH=/usr/local/mysql/bin:${PATH} > > > The above statement is a very basic PATH and it should be sufficient > > for now. Also, I would recommend installing the following gems if > > you haven''t done so already: > > > sudo gem install rails > > sudo gem install sqlite3-ruby > > sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > sudo gem install mongrel > > sudo gem install gemcutter > > gem tumble > > > Note: The above assumes that you followed the MySQL installation > > instructions here: > > >http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > > Last but not least, there are many gems and the primary gem host is > > located > > athttp://www.gemcutter.org. > > > Good luck, > > > -Conrad > > -- > Posted viahttp://www.ruby-forum.com/.
Oh. Just went back and read the rest of the posts. You may want to re-install mysql. If you installed xcode, then installed mysql, then installed xcode again, the mysql system libraries may have been crushed in the last xcode install. Just a guess. On Nov 6, 9:04 am, Eric Ee <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I ran those commands and I thought everything was installed properly, > but I''m still having a mysql issue. I ran one of my rake commands for > my app and got... > > !! The bundled mysql.rb driver has been removed from Rails 2.2. Please > install the mysql gem and try again: gem install mysql. > rake aborted! > no such file to load -- mysql > > and then ran > gem install mysql > but got this... > > WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and > /usr/bin aren''t both writable. > WARNING: You don''t have /Users/Erio/.gem/ruby/1.8/bin in your PATH, > gem executables will not run. > Building native extensions. This could take a while... > ERROR: Error installing mysql: > ERROR: Failed to build gem native extension. > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > extconf.rb > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lm... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lz... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lsocket... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lnsl... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lmygcc... no > checking for mysql_query() in -lmysqlclient... no > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Any idea what is wrong with mysql? > > > > > > Conrad Taylor wrote: > > On Thu, Nov 5, 2009 at 11:39 PM, Eric Ee > > <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > > >> which gem > > >> This has been making my head spin all day. I really appreciate the > >> help. Are there any other commands I need to run to get everything > >> running smoothly in Snow Leopard? > > > This is great to hear. Also, make sure that you update your PATH > > within your .profile to look exactly like the following: > > > export PATH=/usr/local/mysql/bin:${PATH} > > > The above statement is a very basic PATH and it should be sufficient > > for now. Also, I would recommend installing the following gems if > > you haven''t done so already: > > > sudo gem install rails > > sudo gem install sqlite3-ruby > > sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > sudo gem install mongrel > > sudo gem install gemcutter > > gem tumble > > > Note: The above assumes that you followed the MySQL installation > > instructions here: > > >http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > > Last but not least, there are many gems and the primary gem host is > > located > > athttp://www.gemcutter.org. > > > Good luck, > > > -Conrad > > -- > Posted viahttp://www.ruby-forum.com/.
Man, what a nightmare this is turning into. So many hours down the drain. I thought I had everything figured out finally and tried to run my app, but got this. dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle Expected in: flat namespace dyld: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle Expected in: flat namespace Trace/BPT trap sax wrote:> Oh. Just went back and read the rest of the posts. > > You may want to re-install mysql. If you installed xcode, then > installed mysql, then installed xcode again, the mysql system > libraries may have been crushed in the last xcode install. Just a > guess.-- Posted via http://www.ruby-forum.com/.
Think of it as a learning experience :) Some people pay for this kind of training. What kind of computer is this? If you run this in a terminal window: ruby -e "p [''foo''].pack(''p'').size" Do you get 4 or 8? Ruby should be running in 64 bit mode (thus giving you an 8). Also, how did you install mysql? Did you install it using port or fink? Did you install from a package? On Nov 6, 10:31 am, Eric Ee <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Man, what a nightmare this is turning into. So many hours down the > drain. I thought I had everything figured out finally and tried to run > my app, but got this. > > dyld: lazy symbol binding failed: Symbol not found: _mysql_init > Referenced from: > /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle > Expected in: flat namespace > > dyld: Symbol not found: _mysql_init > Referenced from: > /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle > Expected in: flat namespace > > Trace/BPT trap > > sax wrote: > > Oh. Just went back and read the rest of the posts. > > > You may want to re-install mysql. If you installed xcode, then > > installed mysql, then installed xcode again, the mysql system > > libraries may have been crushed in the last xcode install. Just a > > guess. > > -- > Posted viahttp://www.ruby-forum.com/.
I get an 8. I seem to be going in circles unfortunately. If I run this command... sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Things get messed and I get segmentation faults on my rake commands and Illegal instruction on commands like gem -v or ruby -v. If I go back and run export path commands PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin this gets rid of the illegal instruction errors. As far as mysql goes, first time around I followed these instructions http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/ did everything in the shell 2nd time around after talking to you, I followed this instructions and did it through a package http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard However, I''m missing a step in the sequence of things I need to do to get this right and it either results in a segmentation fault or that last error I posted "lazy symbol binding failed." I''m just lost now going in circles. Either of you guys have 5 minutes for an IM convo today? Just run through the commands real quick see if we can get it going? sax wrote:> Think of it as a learning experience :) Some people pay for this kind > of training. > > What kind of computer is this? If you run this in a terminal window: > > ruby -e "p [''foo''].pack(''p'').size" > > Do you get 4 or 8? Ruby should be running in 64 bit mode (thus giving > you an 8). > > Also, how did you install mysql? Did you install it using port or > fink? Did you install from a package?-- Posted via http://www.ruby-forum.com/.
On Fri, Nov 6, 2009 at 11:17 AM, Eric Ee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > I get an 8. I seem to be going in circles unfortunately. > > If I run this command... > > sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > Things get messed and I get segmentation faults on my rake commands and > Illegal instruction on commands like gem -v or ruby -v. > > If I go back and run export path commands > > PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin > > this gets rid of the illegal instruction errors. > > As far as mysql goes, first time around I followed these instructions > > http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/ > > did everything in the shell > > 2nd time around after talking to you, I followed this instructions and > did it through a package > > http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > However, I''m missing a step in the sequence of things I need to do to > get this right and it either results in a segmentation fault or that > last error I posted "lazy symbol binding failed." > > I''m just lost now going in circles. Either of you guys have 5 minutes > for an IM convo today? Just run through the commands real quick see if > we can get it going? > > > sax wrote: > > Think of it as a learning experience :) Some people pay for this kind > > of training. > > > > What kind of computer is this? If you run this in a terminal window: > > > > ruby -e "p [''foo''].pack(''p'').size" > > > > Do you get 4 or 8? Ruby should be running in 64 bit mode (thus giving > > you an 8). > > > > Also, how did you install mysql? Did you install it using port or > > fink? Did you install from a package? > >Eric, the Xcode install doesn''t touch the MySQL installation. In any case, lets do the following: 1) update your .profile to have the following: export PATH=/opt/local/bin:/opt/local/sbin::${PATH} export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:${DYLD_FALLBACK_LIBRARY_PATH} 2) install and configure MacPorts a) Snow Leopard<http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg> b) sudo port -v selfupdate 3) install the applications sudo port install mysql5-server Note: Please following the onscreen instructions for setting up MySQL. sudo port install sqlite3 4) install the supporting gems sudo gem install mysql sudo gem install sqlite3-ruby 5) test it and let me know -Conrad --> Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Conrad, Macports did the trick. It''s working now. Now if only I knew how to get rid of all the redundant and useless files I just put on my computer I''d be in perfect shape. However, thanks for walking through this ordeal with me. I''m never upgrading my computer again...ha. Cheers, Eric Conrad Taylor wrote:> On Fri, Nov 6, 2009 at 11:17 AM, Eric Ee > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote: > >> >> did everything in the shell >> I''m just lost now going in circles. Either of you guys have 5 minutes >> > ruby -e "p [''foo''].pack(''p'').size" >> > >> > Do you get 4 or 8? Ruby should be running in 64 bit mode (thus giving >> > you an 8). >> > >> > Also, how did you install mysql? Did you install it using port or >> > fink? Did you install from a package? >> >> > Eric, the Xcode install doesn''t touch the MySQL installation. In any > case, > lets do the following: > > 1) update your .profile to have the following: > > export PATH=/opt/local/bin:/opt/local/sbin::${PATH} > export > DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:${DYLD_FALLBACK_LIBRARY_PATH} > > 2) install and configure MacPorts > > a) Snow > Leopard<http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg> > > b) sudo port -v selfupdate > > 3) install the applications > > sudo port install mysql5-server > > Note: Please following the onscreen instructions for setting up MySQL. > > sudo port install sqlite3 > > 4) install the supporting gems > > sudo gem install mysql > sudo gem install sqlite3-ruby > > 5) test it and let me know > > > -Conrad > > ---- Posted via http://www.ruby-forum.com/.
Eric Ee wrote:> I just upgraded to snow leopard and I''m trying to get the 64 bit version > of mysql and ruby going. I ran through the steps here... > > http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ > > mysql is running properly and when I run > which ruby I get... > /usr/local/bin/ruby[...] Why are you building your own Ruby? Apple''s Ruby (in /usr/bin/ruby) will serve you just fine. Honestly, I think the Hivelogic tutorials are a little silly insofar as they encourage people to build a redundant copy of Ruby. That was necessary in Tiger, but not since. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.