(Tried installing even after installing yum install GeoIP.x86_64 - but same error)
Error:
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-geoip
Building native extensions. This could take a while...
ERROR: Error installing fluent-plugin-geoip:
ERROR: Failed to build gem native extension.
/usr/lib64/fluent/ruby/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... yes
checking for GeoIP_record_by_ipnum() in -lGeoIP... no
you must have geoip c library installed!
*** 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
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/lib64/fluent/ruby/bin/ruby
--with-geoip-dir
--without-geoip-dir
--with-geoip-include
--without-geoip-include=${geoip-dir}/include
--with-geoip-lib
--without-geoip-lib=${geoip-dir}/lib
--with-GeoIPlib
--without-GeoIPlib
Gem files will remain installed in /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/geoip-c-0.9.0 for inspection.
Results logged to /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/geoip-c-0.9.0/./gem_make.out