Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build Ruby from RubyKaigi 2025

Avatar for Yuto Urushima Yuto Urushima
May 20, 2025
120

Build Ruby from RubyKaigi 2025

Rubyのビルド方法に焦点を当てたプレゼンテーションです。自身の経験から、rbenvなどのツールに頼らずにRubyをソースからビルドする必要性を説き、一般的な参考資料が存在しない現状への問題意識を提示しています。その上で、Ubuntuコンテナ内でRubyをtarballまたはGitからインストールする具体的な手順を、コマンド例と図解(10ページ)を交えて解説しています。Rubyのビルド工程を学び、深く理解する重要性を伝える内容

Avatar for Yuto Urushima

Yuto Urushima

May 20, 2025
Tweet

Transcript

  1. Did you build Ruby source without rbenv? or any other

    tools like rbnev(e.g. RVM, ruby-install)
  2. Surprisingly, however, there is no reference in the world on

    how to build Ruby source. Maybe I'm just not very good at Google myself.
  3. $ tar $ autogen.sh $ git clone $ configure $

    configure $ make && make install $ make && make install tarball Git Icons have been designed using resources from Flaticon.com Makefile Makefile configure
  4. References o Installing RubQ o https://www.ruby-lang.org/ja/documentation/installationI o Building RubQ o

    https://github.com/ruby/ruby/blob/master/doc/contributing/building_ruby.m‡ o configure, make, make install とは何" o https://qiita.com/chihiro/items/f270744d7e09c58a50a5?utm_source=pocket_shared