[MacRuby] #905: Can't install the rubygems that create a file in "/usr/bin/".

MacRuby ruby-noreply at macosforge.org
Thu Sep 16 17:04:09 PDT 2010


#905: Can't install the rubygems that create a file in "/usr/bin/".
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 Can install the rubygems with r4489 only when the file to which shebang is
 written exists.
 {{{
 $ sudo rm /usr/bin/hotcocoa
 $ /Users/watson/src/MacRuby% sudo macgem install hotcocoa
 ERROR:  While executing gem ... (Errno::ENOENT)
     No such file or directory - open() failed

 $ sudo touch /usr/bin/hotcocoa
 $ sudo macgem install hotcocoa
 ERROR:  While executing gem ... (EOFError)
     end of file reached

 $ echo '#!ruby' | sudo tee -i /usr/bin/hotcocoa
 #!ruby
 $ sudo macgem install hotcocoa
 WARNING:  You are installing a new version of /usr/bin/hotcocoa.
 This file already exists with a different shebang, possibly from a
 different
 ruby implementation or version. This operation may break the script.
 Do you still wish to continue? [yn]  y
 Successfully installed hotcocoa-0.5.1
 1 gem installed
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/905#comment:3>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list