Getting “zsh: killed irb” after trying to install Ruby from source

I’m trying to learn about the Ruby language’s source code, so I tried installing it from source. I figured this would be safe to do, since I’m using RBENV to manage my Ruby version and typing which ruby results in /Users/richiethomas/.rbenv/shims/ruby, so I figured that RBENV’s version of Ruby would still be first in my $PATH and any faulty installation of Ruby from source would have no effect.

Following the instructions here, I pulled down the code from Github and ran ./autogen.sh. I verified that the configure file had been created by autogen.sh, and then I ran ./configure. The output of this script was:

Configuration summary for ruby version 3.4.0

   * Installation prefix: /usr/local
   * exec prefix:         ${prefix}
   * arch:                arm64-darwin23
   * site arch:           ${arch}
   * RUBY_BASE_NAME:      ruby
   * ruby lib prefix:     ${libdir}/${RUBY_BASE_NAME}
   * site libraries path: ${rubylibprefix}/${sitearch}
   * vendor path:         ${rubylibprefix}/vendor_ruby
   * target OS:           darwin23
   * compiler:            clang
   * with thread:         pthread
   * with coroutine:      arm64
   * with shared GC:      no
   * enable shared libs:  no
   * dynamic library ext: bundle
   * CFLAGS:              -fdeclspec ${optflags} ${debugflags} ${warnflags}
   * LDFLAGS:             -L. -fstack-protector-strong
   * DLDFLAGS:            -Wl,-undefined,dynamic_lookup
   * optflags:            -O3 -fno-fast-math
   * debugflags:          -ggdb3
   * warnflags:           -Wall -Wextra -Wextra-tokens 
                          -Wdeprecated-declarations -Wdivision-by-zero 
                          -Wdiv-by-zero -Wimplicit-function-declaration 
                          -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 
                          -Wwrite-strings -Wold-style-definition 
                          -Wmissing-noreturn -Wno-cast-function-type 
                          -Wno-constant-logical-operand -Wno-long-long 
                          -Wno-missing-field-initializers 
                          -Wno-overlength-strings -Wno-parentheses-equality 
                          -Wno-self-assign -Wno-tautological-compare 
                          -Wno-unused-parameter -Wno-unused-value 
                          -Wunused-variable -Wmisleading-indentation -Wundef
   * strip command:       strip -A -n
   * install doc:         rdoc
   * YJIT support:        no
   * RJIT support:        yes
   * man page type:       doc

---

Lastly, I verified that the Makefile was created, and ran make. I saw an error at the bottom of this output:

    BASERUBY = ./tool/missing-baseruby.bat
    CC = clang
    LD = ld
    LDSHARED = clang -dynamiclib
    CFLAGS = -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef  -pipe -arch arm64
    XCFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE -I. -I.ext/include/arm64-darwin23 -I./include -I. -I./prism -I./enc/unicode/15.0.0  
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -fstack-protector-strong -Wl,-pie -framework CoreFoundation  -arch arm64
    SOLIBS = -ldl -lobjc -lpthread 
    LANG = en_US.UTF-8
    LC_ALL = 
    LC_CTYPE = 
    MFLAGS = 
    RUSTC = no
    YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C lto=thin -C opt-level=3 -C overflow-checks=on '--out-dir=/Users/richiethomas/Desktop/Workspace/RubySource/ruby/yjit/target/release/' ./yjit/src/lib.rs
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling ./main.c
compiling dmydln.c
generating id.h
executable host ruby is required.  use --with-baseruby option.
Note that BASERUBY must be Ruby 3.0.0 or later.
make: *** [id.h] Error 1

Wanting to see if I could run Ruby, I typed irb in my terminal, but saw the following:

$ irb

zsh: killed     irb

Now wanting to undo what I had done, I tried running make clean and saw the following:

$ make clean
cleaning rdoc
cleaning HTML
cleaning capi

However, when I re-ran irb, I continued to see the same zsh: killed irb error. I also tried running irb in a Bash terminal, but saw a Killed: 9 error. I also see this error when I open a new terminal window, and also when I navigate to a new directory.

I’m currently unable to run Ruby on my machine, which is a big problem. Where did I go wrong here, and how do I fix the issue?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật