Compiling latest Ruby from scratch with chruby

06-Mar-2020 2366
Since chruby officially does not support compiling latest Ruby (HEAD), here are the steps necessary to do it.Current HEAD version of Ruby is 2.8.0dev, so that's the version being compiled in this example. The only thing necessary for your custom compiled Ruby to play nicely with chruby is passing the --with-dest-dir option to configure. This allows chruby to find this newly compiled version, so you can switch to it and use it.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle