构建新系统:
\n ubuntu 20.04\n mysql 5.7.38\n ruby-install and chruby\n ruby 3.0.4\n redmine 5.0.0\n
Run Code Online (Sandbox Code Playgroud)\n在用户帐户中,尝试安装redmine 5.0.0:
\nbundle install\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\ncurrent directory: /home/test_user/.gem/ruby/3.0.4/gems/mysql2-0.5.4/ext/mysql2\n/opt/rubies/ruby-3.0.4/bin/ruby -I /opt/rubies/ruby-3.0.4/lib/ruby/3.0.0 -r ./siteconf20220520-28025-uxnsbe.rb\nextconf.rb\n...\n*** extconf.rb failed ***\nCould 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.\nProvided configuration options:\n...\n/opt/rubies/ruby-3.0.4/lib/ruby/3.0.0/mkmf.rb:1050:in `block in find_library': undefined method `split' for\nnil:NilClass (NoMethodError)\n ...\n
Run Code Online (Sandbox Code Playgroud)\n检查日志,我看到以下错误:
\nconftest.c: In function \xe2\x80\x98t\xe2\x80\x99:\nconftest.c:14:57: error: …
Run Code Online (Sandbox Code Playgroud)