Hi. I’;ve been working away with Rails for a bit and ive built a few apps. Today when I tried rails new my-app
i got this error:
Fetching gem metadata from https://rubygems.org/… Installing json 2.14.1 with native extensions Installing bigdecimal 3.2.3 with native extensions Installing puma 7.0.3 with native extensions Installing prism 1.5.1 with native extensions Installing sqlite3 2.7.4 with native extensions Installing nokogiri 1.18.10 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bigdecimal-3.2.3/ext/bigdecimal /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/bin/ruby extconf.rb checking for \__builtin_clz()… \*\*\* extconf.rb failed \*\*\* Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: –with-opt-dir –without-opt-dir –with-opt-include=${opt-dir}/include –without-opt-include –with-opt-lib=${opt-dir}/lib –without-opt-lib –with-make-prog –without-make-prog –srcdir=. –curdir –ruby=/Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/bin/$(RUBY_BASE_NAME) /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:528:in ‘MakeMakefile#try_do’: The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:655:in 'MakeMakefile#try_compile' from extconf.rb:6:in 'block in Object#have_builtin_func' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:1070:in 'block in MakeMakefile#checking_for' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:370:in 'block (2 levels) in MakeMakefile::Logging.postpone' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:340:in 'MakeMakefile::Logging.open' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:370:in 'block in MakeMakefile::Logging.postpone' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:340:in 'MakeMakefile::Logging.open' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:366:in 'MakeMakefile::Logging.postpone' from /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/3.4.0/mkmf.rb:1069:in 'MakeMakefile#checking_for' from extconf.rb:5:in 'Object#have_builtin_func' from extconf.rb:18:in '<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/extensions/arm64-darwin-24/3.4.0/bigdecimal-3.2.3/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bigdecimal-3.2.3 for inspection. Results logged to /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/extensions/arm64-darwin-24/3.4.0/bigdecimal-3.2.3/gem_make.out /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:125:in ‘Gem::Ext::Builder.run’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/ext_conf_builder.rb:30:in ‘Gem::Ext::ExtConfBuilder.build’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:206:in ‘Gem::Ext::Builder#build_extension’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:240:in ‘block in Gem::Ext::Builder#build_extensions’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:237:in ‘Array#each’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/ext/builder.rb:237:in ‘Gem::Ext::Builder#build_extensions’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/site_ruby/3.4.0/rubygems/installer.rb:842:in ‘Gem::Installer#build_extensions’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/rubygems_gem_installer.rb:111:in ‘Bundler::RubyGemsGemInstaller#build_extensions’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/rubygems_gem_installer.rb:30:in ‘Bundler::RubyGemsGemInstaller#install’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/source/rubygems.rb:220:in ‘Bundler::Source::Rubygems#install’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/installer/gem_installer.rb:55:in ‘Bundler::GemInstaller#install’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/installer/gem_installer.rb:17:in ‘Bundler::GemInstaller#install_from_spec’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/installer/parallel_installer.rb:133:in ‘Bundler::ParallelInstaller#do_install’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/installer/parallel_installer.rb:124:in ‘block in Bundler::ParallelInstaller#worker_pool’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/worker.rb:62:in ‘Bundler::Worker#apply_func’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/worker.rb:57:in ‘block in Bundler::Worker#process_queue’ <internal:kernel>:168:in ‘Kernel#loop’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/worker.rb:54:in ‘Bundler::Worker#process_queue’ /Users/chrisbowen/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0/gems/bundler-2.7.1/lib/bundler/worker.rb:90:in ‘block (2 levels) in Bundler::Worker#create_threads’ An error occurred while installing bigdecimal (3.2.3), and Bundler cannot continue. In Gemfile: rails was resolved to 8.0.2.1, which depends on actioncable was resolved to 8.0.2.1, which depends on actionpack was resolved to 8.0.2.1, which depends on actionview was resolved to 8.0.2.1, which depends on rails-dom-testing was resolved to 2.3.0, which depends on activesupport was resolved to 8.0.2.1, which depends on bigdecimal
I tried installing bigdecimal on its own but nothing. Im using mise.
Cheers