ãã¾ãã¡å¿å½ãããªããã§ããã©
ä»æ¥æ¸ããã¹ã¯ãªããã gem åãã¦ãgithub ã«ä¸ãããã¨æã£ã¦ããã®ãã
ãã§ã大åã¹ã¯ãªãããåãããã«ãªã£ãããgemspec ãã¡ã¤ã«ãã»ã¼ã§ããã
ã ããããã
ãµã¨æ°ãã¤ãã¨ãgemspec ãã¡ã¤ã«ã®å
容äºã
ã§ã¯ãªããrubygems ãã¨ã©ã¼ãåãããã«ãªã£ã¦ããï¼ï¼(^o^)ï¼¼
ãªãããããrubygems ãéã£ã¦ã©ã¤ãã©ãªãæ¢ãã«è¡ãæã§æ»ãã§ãã£ã½ãã
gem install ./hogehoge
gem uninstall hogehoge
ã®ç¹°ãè¿ãã¯ãããã®ã®ãç¹ã« rubygems èªä½ããããããããªãã¨ã¯ãã¦ããªãã£ãã®ãããã
åé¡ãåãåãããããå
¨ç¶é¢ä¿ãªã haml ã reuire ãã¦ãããã¦ã¿ãã
irb(main):003:0> require 'rubygems' irb(main):004:0> require 'haml' TypeError: can't convert String into Array from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_path_searcher.rb:87:in `<=>' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_path_searcher.rb:87:in `init_gemspecs' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `sort' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:684:in `new' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:684:in `searcher' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:683:in `synchronize' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:683:in `searcher' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:34:in `require' from (irb):4 from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:342
ãªãããããªããªãããããã
rubygems ã®ã¹ã¯ãªãã辺ãã«ä½ãåé¡ãçºçãã¦ãã¾ã£ããããããªãã®ã§ãèãç©ã«ã¯èãããç²¾ç¥ã«ä¹ã£åããupdate_rubygems ã§ã¢ããã°ã¬ã¼ããããã¨ã§ã解æ¶ãããã¨è©¦ã¿ãã
ã½ã¼ã¹ã«ã´ããå
¥ããããupgrade ãããã°ã½ã¼ã¹ãä¸æ¸ããããã ããã¨æã£ã¦ã®äºã *1ã
ã»ã»ã»ããupdate_rubygems ãå®è¡ãã¦ããæä¸ãä¸è¨ã¨åãã¨ã©ã¼ã§æ»äº¡ï¼(^o^)ï¼¼
port ã§åã¤ã³ã¹ãã¼ã«ãã¦ãåæ§ï¼(^o^)ï¼¼
æã®æã¡ãããç¡ãã»ã»ã»ï¼
ä»ããã¤ã«ã port ã® update ããã¦ããã®ã§ããããçµãã£ãã rubygems 1.3.4 ãç´æ¥ã¤ã³ã¹ãã¼ã«ããªãããã¨ããæé ãåãã¤ãããããã§ã§ããªããã°ã¬ã㧠rubygems çµäºã®ãç¥ããã§ãããã¨ããããã©ãããããããã§ãããï¼¼(^o^)ï¼
ãããï¼¼(^o^)ï¼
ports ã§ã¤ã³ã¹ãã¼ã«ãã ruby ã使ã£ã¦ã¤ã³ã¹ãã¼ã«ãã¦ããã«ãé¢ããããåãçç¶ã ãä½ãããã©ããããããã®ï¼ï¼ï¼
sugamasao% where ruby /opt/local/bin/ruby /usr/bin/ruby sugamasao% where gem /usr/bin/gem sugamasao% sudo ruby setup.rb ./lib/rubygems/gem_path_searcher.rb:87:in `<=>': can't convert String into Array (TypeError) from ./lib/rubygems/gem_path_searcher.rb:87:in `init_gemspecs' from ./lib/rubygems/gem_path_searcher.rb:86:in `sort' from ./lib/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from ./lib/rubygems/gem_path_searcher.rb:19:in `initialize' from ./lib/rubygems.rb:888:in `new' from ./lib/rubygems.rb:888:in `searcher' from ./lib/rubygems.rb:887:in `synchronize' from ./lib/rubygems.rb:887:in `searcher' from ./lib/rubygems.rb:527:in `find_files' from ./lib/rubygems.rb:1131 from setup.rb:24:in `require' from setup.rb:24
追è¨ï¼2009/6/23ï¼
ãªãããããããããã©ãå度 setup.rb ãå®è¡ããããªãã¨ããªã£ãã
ãªãã ã£ããã ããããªãããã£ãã·ã¥ã¨ãããããããªã£ã¦ããã®ããªã»ã»ã»ï¼ï¼
*1:å½æ使ã£ã¦ããã®ã¯ 1.3.1 ã§ãç¾å¨ã®ææ°ã¯ 1.3.4