大佬,我在使用gem安裝mysql的時候一直報錯,請問有解決方案嗎?
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
current directory: /usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/mysql2-0.5.3/ext/mysql2
/usr/share/logstash/vendor/jruby/bin/jruby -r ./siteconf20200102-21293-7b38w8.rb extconf.rb
checking for rb_absint_size()... RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.
try_do at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:456
try_link0 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:541
try_link at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:556
try_func at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:765
have_func at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:1051
checking_for at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:942
postpone at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:350
open at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:320
postpone at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:350
open at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:320
postpone at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:346
checking_for at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:941
have_func at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/mkmf.rb:1050
<main> at extconf.rb:25
*** 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.
Logstash filter插件開發(fā)Logstash是一個具有實時管線能力的開源數(shù)據(jù)收集引擎茸苇。在ELK Stack中卫枝,通常選擇更輕量級的Filebeat收集日志启摄,然后將日志輸出到Logstash進(jìn)行加工處理龄减,再...