M1MacでRubyのインストールに失敗する

エラー Installing ruby-3.1.0... ruby-build: using readline from homebrew ruby-build: using libyaml from homebrew ruby-build: using gmp from homebrew BUILD FAILED (macOS 13.3.1 using ruby-build 20230512) Inspect or clean up the working tree at /var/folders/nk/d88m3z390qjbgp5yjln8nnt80000gn/T/ruby-build.20230526145532.33223.Lm7fcQ Results logged to /var/folders/nk/d88m3z390qjbgp5yjln8nnt80000gn/T/ruby-build.20230526145532.33223.log Last 10 log lines: linking shared-library libruby.3.1.dylib transdb.h updated ld: library not found for -lcapstone clang: error: linker command failed with exit code 1 (use -v to see invocation) make: