Iconv I can not install it


#1

$ gem install iconv

Building native extensions. This could take a while...
ERROR: Error installing iconv:
ERROR: Failed to build gem native extension.

current directory: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/iconv-1.0.5/ext/iconv

/usr/share/logstash/vendor/jruby/bin/jruby -r ./siteconf20181017-6293-1h7kzv2.rb extconf.rb
checking for rb_enc_get() in ruby/encoding.h... RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

  • log
    " -o conftest -I/include/universal-java1.8 -I/usr/share/logstash/vendor/jruby/lib/ruby/include/ruby/backward -I/usr/share/logstash/vendor/jruby/lib/ruby/include -I. -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexception
    s conftest.c -L. -L/usr/share/logstash/vendor/jruby/lib -m64 "
    checked program was:
    /* begin */
    1: #include "ruby.h"
    2:
    3: #include <ruby.h>
    4: int main(int argc, char *argv)
    5: {
    6: return 0;
    7: }
    /
    end */

I can not find any problems.
What is the correct way to install?

Thank you!


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.