You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
$ rbenv install 2.3.1 Downloading ruby-2.3.1.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2 Installing ruby-2.3.1... BUILD FAILED (OS X 10.11.6 using ruby-build 20160602) Inspect or clean up the working tree at /var/folders/w1/_jhh90bj5lx0xg0hycdqvjs40000gn/T/ruby-build.20160918151039.20332 Results logged to /var/folders/w1/_jhh90bj5lx0xg0hycdqvjs40000gn/T/ruby-build.201
ç¾å¨ãruby kaigi2016ã京é½ã§éå¬ä¸ã§ãããã¨ãããã¨ã§ãrubyãè¶ é«éã§ã¤ã³ã¹ãã¼ã«ããæ¹æ³ãç´¹ä»ãã¾ãã ã¤ã³ã¹ãã¼ã«ã®é«éåã·ãªã¼ãºç¬¬2å¼¾ã§ããï¼ç¬¬1å¼¾ã¯ãã¡ãâ Nodebrewã使ã£ã¦Node.jsãè¶ é«éã«ã¤ã³ã¹ãã¼ã«ããæ¹æ³ï¼ Rubyãã¤ã³ã¹ãã¼ã«ããã®ã«æéããããã®ã¯ãã³ã³ãã¤ã«ã«æéããããããã§ãã Vagrantã®ããã«ä½åº¦ãå£ãã¦ä½¿ãéçºç°å¢ã®å ´åãæ§ç¯ã®åº¦ã«ã³ã³ãã¤ã«ãå¾ ããªããã°ãªãã¾ããã æ§ç¯ã®å¾ ã¡æéãå°ãã§ãæ¸ããããã»ã»ã»ã¨ãæã£ã¦ããæ¹ã¯ããããããã®ã§ã¯ã»ã»ã»ï¼ ä»åç´¹ä»ããæ¹æ³ã使ãã¨ãã¤ã³ã¹ãã¼ã«æéã25ç§ä»¥ä¸ã«ãªãã¾ãï¼ãã·ã³ã¹ããã¯&ãããã¯ã¼ã¯ã«ä¾åãã¾ããã»ã»ã»ï¼ æ¤è¨¼ç°å¢ æ¤è¨¼ç°å¢ã¯Vagrantã使ã£ã¦ãã¾ãã OSã¨ã¹ããã¯ã¯ä»¥ä¸ã®éãã§ãã
åºæ¬ã®æé homebrewãrbenvã¯ä½ãã§ã¤ã³ã¹ãã¼ã«ãã¦ããåæã rbenvã§æ°ããrubyã®ãã¼ã¸ã§ã³ãå ¥ããã°ããã®ä»®å®ãã°ãã¼ãã«ãæ±ããã«ããªãã¹ãããã¸ã§ã¯ãå ã«gemãä¿æããããªã·ã¼ã§é²ããã $ rbenv exec gem install bundler # bundlerã®ã¿ã¤ã³ã¹ãã¼ã« # 以ä¸æ°è¦ããã¸ã§ã¯ãä½æ $ cd path/to/project # railsãä½æãããããã¸ã§ã¯ãã®ãã¹ã¸ç§»åãç¡ããã°ä½ããã¨ã $ echo 2.1.3 > .ruby-version # rbenvã®rubyãã¼ã¸ã§ã³æå® $ cat .ruby-version # ä¾ãã°ä¸è¨ã®ããã«ãªã 2.1.3 $ bundle init # Gemfileã®ã²ãªå½¢ä½æ $ vi Gemfile # railsã®è¨å®ã ãã³ã¡ã³ãããã¦ããã¯ããªã®ã§æ¬²ãããã¼ã¸ã§ã³ã«è¨
ããã£ã¡ã ãã°ã°ãç´ãã¦ãã¾ãã®ã§ãèªåç¨ã«ã¾ã¨ãã¾ããã rbenvã¯è¤æ°ã¦ã¼ã¶ã¼ã§å ±æãããã®ã§ã/usr/local/rbenv ã«ã¤ã³ã¹ãã¼ã«ãããã¨ã«ãã¾ãã åèï¼ CentOSã§rbenvãã·ã¹ãã ã«ã¤ã³ã¹ãã¼ã«ãã install necessary packages $ sudo apt-get -y install libssl-dev zlib1g-dev libreadline-dev libmysqlclient-dev sqlite3 libsqlite3-dev g++ git curl
Simple Ruby Version Management: rbenv rbenv lets you easily switch between multiple versions of Ruby. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well. ãã£ã¨simpleãªRVMã¨ããæå³ãããï¼ ã¨ããããã©ããªç¹å¾´ããããè¦ã¦ã¿ã¾ãã rbenvã®ç¹å¾´ â Rubyã®æ¬ä½ã«ä»å±ãã¦ããªã â Ruby on Railsã®éçºè ãå ¥ã37signalsãä½ã£ãã â rvmãããã·ã³ãã«ã«ããRubyèªä½ã®ãã¼ã¸ã§ã³åãæ¿ã â rvmããåä½ã軽ã â Do 1 ã¦ã¼ã¶ã¼æ¨©éãã¨ã«ãã¼ã¸ã§ã³ãåãæ¿ã(ã·ã¹ãã å ¨ä½ã«ã¯å½±é¿ããªã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}