Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
æ¬å½ãªããããããç´ äººã¯æ¯ãå°½ããã¦ããæãåºããã»ãããããã§ãããWEB+DB PRESS Vol.73ã®è¨äºãèªãã§ãã試ããããªã£ãã®ã§OSX Lionã§è©¦ãã¦ã¿ã æ°ã«ãªã£ãã®ã¯ããä½æé度ã®å¤§å¹ ãªåä¸ãã¨ããã¨ãã§ãRakeã¿ã¹ã¯ãã¢ã»ããããªã³ã³ãã¤ã«ãªã©ããµã¯ãµã¯ã«ãªã£ãããã è¨äºã®ä¾ã«ããã¨ããªã³ã³ãã¤ã«ãç´ï¼ï¼ï¼åæ©ããªã£ãã¨ãããã¨ã§ãJavaScritptå¤ãã®ã¢ããªãä½ãã«ã¯ã¡ãªããã¯å¤§ããã
è²ã ãã£ã¦Railsã®åå¼·ãã¦ããä»äºä»¥å¤ã ãã©ã ã¾ã å ·ä½çãªéçºã«ã¯å ¥ã£ã¦ããªãããä¹ ãã¶ãã®railsç°å¢æ§ç¯ã§ãããã¾ãã£ã¦å¤§å¤ãªãã¨ã«ãªã£ãã®ã§ å¿ è¦æä½éã®ã¨ããã ãã¡ã¢ã 対象ãã¼ã¸ã§ã³ ä»årvmã§ã¤ã³ã¹ãã¼ã«ãã¦ç®¡çããã®ã¯ä¸è¨ã®ãã¼ã¸ã§ã³ Ruby 1.9.3p392 Rails 3.2.13 ãã³ãã¯Rails4 beta0ã使ãããã£ãã®ã ãããããªäºæ ï¼herokuã対å¿ãã¦ãªãã¨ãï¼ã§æ念 rvmã§ruby1.9.3ãã¤ã³ã¹ãã¼ã«ãã #ã¾ãrvmãæ´æ°ããããããªãã¨ããã確çãï¼å²ãããä¸ãã $ rvm get stable $ rvm -v rvm 1.19.6 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rv
kkaneko.com 2024 èä½æ¨©. ä¸è¨±è¤è£½ ãã©ã¤ãã·ã¼ããªã·ã¼
Mac OSX (Snow Leopard) ã§ãMacPortsã®Ruby1.8.7ã使ã£ã¦ãããã1.9.2ã使ãããã®ã§ãRVMã§Ruby1.9.2ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã RVMã®ã¤ã³ã¹ãã¼ã« $ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) $ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile RVM: Ruby Version Manager - Installing RVM RVMã®ã¢ãããã¼ã $ rvm get latest RVM: Ruby Version Manager - Upgrading RVM rvm get lat
Mac OS Lion, Xcode4.1 ã«ã¦ãRubyã®ãã¼ã¸ã§ã³ç®¡çãã¼ã« RVM ã使ã£ã¦ Ruby ã®éçºç°å¢ãæ´ããæé ããç´¹ä»ãã¾ãã apple-gcc42 ã®ã¤ã³ã¹ãã¼ã« ï¼Xcode4.1以åã®æ¹ã¯ãã®é ç®ãã¹ãããï¼ â æ¹æ³ãã®1 ã¾ããXcode4.2 ã使ã£ã¦ãæ¹ã¯ããµãã¼ãããã¦ãã gcc ãå¤ãã£ãã®ã§ãå¾æ¥ã¾ã§å ¥ã£ã¦ãã apple-gcc42 ãã¤ã³ã¹ãã¼ã«ãã¾ãã ã»[Mac] Homebrew 㧠apple-gcc42 ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ | CodeNote.net Homebrewãã¤ã³ã¹ãã¼ã«ãã¦ããªãæ¹ã¯ãã¡ããåèã«ãã¦ä¸ããã ã»[Mac] Homebrew ãã¤ã³ã¹ãã¼ã« | CodeNote.net â æ¹æ³ãã®2 OSX GCC Installer ã使ãã ã»kennethreitz/osx-gcc-installer R
OSã«æåããã¤ãã¦ããrubyã®ãã¼ã¸ã§ã³ãããã±ã¼ã¸ã®ãã¼ã¸ã§ã³ã¨ããè¦ã¦ã¿ãã¨ã [@MacBook-Air]$ /usr/bin/ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] ã¨ã表示ããã¦ãRails3使ã£ã¦ã人ã«ã¨ã£ã¦ã¯ãã ãã¶æ®å¿µãªæãã ãã¨ãã£ã¦ãpassengerã1.8ç³»ã§æ¢ã«åãã¦ãããã1.8ç³»ã§ãã稼åããªãã³ã¼ããgemã使ã£ã¦ãããããå ´åãOSã®rubyãã¼ã¸ã§ã³ãåæã«å¤æ´ããããã«ããããªã人ã¯å¤ãããããªãã ãããã ã§ããrubyã¯1.9ã§railsã¯3ãªãã ããã£ã¦äººã¯ããªãã§ãããã§ãrvmã§ãããã¨æ¨å¥¨ããã ããã¦ãrvmã«ã¤ã³ã¹ãã¼ã«ãã1.9ç³»ã®rubyã使ã£ã¦passengerã稼åãã¾ãããã rvmã«ã¤ãã¦ã®ã¤ã³ã¹ãã¼ã«ã¯å ¬å¼ãµã¤ãã®éã
å¤ä»ãHDDã®åæåããBoot Campã®ä½ãç´ãããã¦ããã Snow Leopardã®é åã¾ã§å¹ãé£ã°ãã¦ãã¾ã£ãã®ã¯4æ¥å :-( 以åæ¸ãããã¦ã Macã§ã®rvm(Ruby)ç°å¢æ´åã®ã¨ã³ããªå 容ãå¤ããªã£ã¦ããã®ã§ æ¹ãã¦æ´æ°ãã¦ãããã¨æãã¾ãï¼ åæ Xcode 4å梱ã®gitã使ã£ã¦ãã¾ãï¼ Xcode 3 ã使ã£ã¦ããå ´åã¯Macportsãªã©ã§gitãå ¥ããã¨ãããã£ï¼ 以åã®ã¨ã³ã㪠Macã«RVMãå°å ¥ããã¾ã¨ã RVMã§Rubyã®ç°å¢ãæ´ããæã«ãã£ã¦ããããã㨠åæºå rvmã®ãã¹ãè¨å®ããããã«.bashrcãå¿ è¦ãªã®ã§ããï¼ OSã¤ã³ã¹ãã¼ã«å¾ã¯ã¿ã¼ããã«ã®è¨å®ãã¾ãã£ãããªãã®ã§ .bash_profileã¨.bashrcãç¨æãã¾ãï¼ ã¡ãªã¿ã« .bash_profile ã¯.bashrcãå¼ã¶ã ãã«ãã¦ãã¾ãï¼ $ echo source \~/
ååã¯ãRVMã®ã¤ã³ã¹ãã¼ã«ãRVM㧠Rubyãã¤ã³ã¹ãã¼ã«ãã¦ä½¿ãæ¹æ³ãç´¹ä»ãã¾ãããä»åã¯ã以ä¸ã®3ã¤ãç´¹ä»ãã¦ããã¾ãã RVMãææ°çã«ã¢ãããã¼ããã RVMã使ã£ã¦è¤æ°ã®ãã¼ã¸ã§ã³ã®Rubyã§ã¹ã¯ãªãããå®è¡ãã GemSetsã«ã¤ã㦠RVMãææ°çã«ã¢ãããã¼ããã RVMã¯ãBugfixãæ©è½è¿½å ãæ¯æ¥è¡ãªããã¦ããæ´»çºãªããã¸ã§ã¯ãã§ããéçºè ã®æ¹ã¯ããªãã¹ãææ°ã®ãã¼ã¸ã§ã³ã使ããã¨ãæ¨å¥¨ãã¦ãã¾ããããã§ã¯ãRVMãææ°çã«ããæ¹æ³ãã¿ã¦ã¿ã¾ãããã "rvm update --head"ã使ç¨ããã¨éçºãªãã¸ããªã§ããhttp://github.com/wayneeseguin/rvmããææ°çãåå¾ãã¾ããgithubããåå¾ãããããç°å¢ã«gitãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã % rvm update --head ã¢ãããã¼ããããRVMã使ãã
http://favotter.net/status.php?id=13069973879 ããã«ã¡ã¯ã4æããã¤ãã«è·æ¥Rubyã¨ã³ã¸ãã¢ã«ãªã£ãmirakuiã§ãã ãã¾ãèªãããããã¾ããããRubyã¯äºå®ä¸ããã¾ã ã«1.8ç³»ãã1.9ç³»ã¸ã®ç§»è¡æã«ããã¾ãã ç¾å¨ã®å®å®çã§ãã1.8.7ã¨1.9.1ãéçºç°å¢ã«å ±åããã¦ãã人ãå¤ãããããªãã§ããããã ããããããã 俺ã®MacBookã«å ¥ã£ã¦ãRubyããã£ã¨èª¿ã¹ã¦ã¿ã¾ããã /usr/bin/ruby 1.8.7ãå¤åMacOSX(SnowLeopard)ã«æåããå ¥ã£ã¦ããã¤ï¼ /usr/local/bin/ruby 1.8.7ãå¤åèªåã§ãã«ãããã㤠/opt/local/bin/ruby 1.8.7ãMacPortsã§å ¥ããã㤠/opt/local/bin/ruby1.9 1.9.1ãMacPortsã§å ¥ãããã¤
Macã®Snow Leopardã«ããã©ã«ãã§å ¥ã£ã¦ããRubyã¯ãirbã§æ¥æ¬èªãå ¥åã§ããªãã $ irb > puts "ããã«ã¡ã¯ãä¸ç" # ãããªãµãã«æ¥æ¬èªãå ¥åã§ããªã ãªã®ã§ãæ®éã«Ruby 1.8.7ãã¤ã³ã¹ãã¼ã«ããªããã¦ãirbã§æ¥æ¬èªãéãããã«ãããã£ãã ããªãã ãã©ããªããæåããå ¥ã£ã¦ãã®ã¨ã¯å¥ã®ã¨ããã«ã¤ã³ã¹ãã¼ã«ãããããã¦ãé¢åãªãã¨ã«ãªãããã ã£ãã®ã§ãè¤æ°ã®Rubyç°å¢ãå ±åãããããRVMã試ãã¦ã¿ããã¨ã«ãçµæã大æ£è§£ãRubyç°å¢ã ãã§ãªããgemç°å¢ãç°¡åã«åãæ¿ããããã RVMã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯MacPortsããreadlineãã¤ã³ã¹ãã¼ã«ãããirbã§æ¥æ¬èªãå ¥åããããã«å¿ è¦ããããä½ããããã®ãã¯ããç¥ããªãã $ sudo port selfupdate $ sudo port install readline ç¶ãã¦g
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}