From: Unnsse Khan Date: 2005-10-14T07:11:55+09:00 Subject: Re: Problem with IRB and some sample code... Ezra, Your suggestion not only did not help me with fixing the IRB tab completion (its still broken), but it broke a bunch of other things.... :'( When I try to run rake: Raven:~ untz$ rake /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:74:in `load_specification': undefined method `cert_chain=' for # (NoMethodError) from (eval):1:in `initialize' from (eval):1:in `new' from (eval):1:in `load_specification' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 45:in `eval' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 74:in `load_specification' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 45:in `from_installed_gems' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 44:in `each' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 44:in `from_installed_gems' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb: 63:in `from_installed_gems' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:79:in `source_index' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:135:in `activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem' from /usr/bin/rake:17 Raven:~ untz$ When I try to get rake or rails using RubyGems: Raven:~ untz$ gem install --remote rake Attempting remote installation of 'rake' ERROR: While executing gem ... (NoMethodError) undefined method `cert_chain=' for # Raven:~ untz$ gem install --remote rails Attempting remote installation of 'rails' ERROR: While executing gem ... (NoMethodError) undefined method `cert_chain=' for # And, when I try to see what ruby is installed + the version: Raven:~ untz$ ruby -v ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] Raven:~ untz$ which ruby /usr/bin/ruby Thanks for your help, but I wish I never tried it.... Can anyone help me at all? :( Many, many, thanks! -Unnsse On Oct 13, 2005, at 2:48 PM, Ezra Zygmuntowicz wrote: > Yes I would still do this. Apple ships a broken version of ruby and > this totally fixes it. I have done it on over 10 installs of Tiger. > It will go ahead and just write over your rubygems install and > worst case scenario you might need to reinstall any gems you > already installed. But thats a small price to pay for having a ruby > binary that has readline support and can properly build C extensions. > > HTH- > -Ezra > > On Oct 13, 2005, at 2:00 PM, Unnsse Khan wrote: > > >> Ezra, >> >> I already have RubyGems installed.... >> >> Should I still do this? >> >> Regards, >> >> Unnsse >> >> On Oct 13, 2005, at 10:38 AM, Ezra Zygmuntowicz wrote: >> >> >> >>> Unnsse- >>> Here is an easy way to fix the OSX default install of ruby. >>> This will fix the irb completion by installing readline and it >>> will install rubygems for you. Just run this command from the >>> terminal: >>> >>> $ sudo curl -O rufy.com/fix-ruby-tiger.sh; sh fix-ruby-tiger.sh >>> >>> >>> Hope that helps- >>> -Ezra >>> >>> On Oct 13, 2005, at 7:07 AM, Unnsse Khan wrote: >>> >>> >>> >>> >>>> Thanks James, >>>> >>>> I would I "un-install" the Mac OS X Ruby and install the new one >>>> (ruby 1.8.3)? >>>> >>>> Could I use the RubyGem utility? Or do I login as root and just >>>> download the tar.gz file and unzip >>>> it and then do a configure and then make install? Would this >>>> overwrite the ruby 1.8.2 that I have? >>>> >>>> The same questions apply to tcl/tk... >>>> >>>> Regards, >>>> >>>> Unnsse >>>> >>>> On Oct 13, 2005, at 6:35 AM, James Edward Gray II wrote: >>>> >>>> >>>> >>>> >>>> >>>>> On Oct 13, 2005, at 2:01 AM, Unnsse Khan wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> :-) Hello again, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> Hello. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> I am a Ruby newbie... I am using the following version on Mac >>>>>> OS X Tiger: >>>>>> >>>>>> Raven:/Developer/DevResources/Ruby/Draw untz$ ruby --version >>>>>> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] >>>>>> Raven:/Developer/DevResources/Ruby/Draw untz$ which ruby >>>>>> /usr/bin/ruby >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> This is Apple's default install, it looks like. There are a >>>>> few issues with it, so I prefer to build my own version of Ruby. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> I am experiencing several problems.... >>>>>> >>>>>> 1. My irb doesn't support tab completion (the same version of >>>>>> Ruby >>>>>> on WinXP does support tab completion)... >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> I believe this is one of the issues with Apple's install. If >>>>> you build the readline library, then build your own copy of >>>>> Ruby, you should be able to get this going. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> 2. How do I use similar functionality in irb to clear the >>>>>> buffer, as one would >>>>>> do in Unix using "clear" and WinXP, using "cls"? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> Try pushing Control-L. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> 3. I copied a simple Draw coding sample and when I tried to >>>>>> run it, >>>>>> I got an error... >>>>>> >>>>>> The code for Draw.rb: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> [snip code] >>>>> >>>>> I assume this is a TK issue, but I'll let someone who knows >>>>> more than me address it... >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> 4. What is the *BEST* free Ruby IDE in the world? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> I'm a text editor fan, not an IDE guy, so I'll let someone else >>>>> field this question too... >>>>> >>>>> James Edward Gray II >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> -Ezra Zygmuntowicz >>> Yakima Herald-Republic >>> WebMaster >>> http://yakimaherald.com >>> 509-577-7732 >>> ezra@yakima-herald.com >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> > > -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > http://yakimaherald.com > 509-577-7732 > ezra@yakima-herald.com > > > > >