Unable to install fluent-plugin-geoip

510 views
Skip to first unread message

pun...@elantechnologies.com

unread,
Sep 3, 2013, 10:56:51 PM9/3/13
to flu...@googlegroups.com
(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

Masahiro Nakagawa

unread,
Sep 4, 2013, 3:22:37 AM9/4/13
to flu...@googlegroups.com
Hi,

Did you install geoip-devel, not geoip?





--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

pun...@elantechnologies.com

unread,
Sep 4, 2013, 1:21:59 PM9/4/13
to flu...@googlegroups.com
I was able to make it work. Was also able to using both geoip and mongo plugin at the same time with following config.

<source>
  type tail
  format apache
  path /var/log/httpd-access.log
  tag geoip.apache
</source>

<match geoip.**>

type geoip
geoip_lookup_key     host
enable_key_city      city
enable_key_latitude  lat
enable_key_longitude lon
remove_tag_prefix    geoip.
add_tag_prefix       mongo.
flush_interval       5s

</match>

<match mongo.**>

        type mongo
        database apache
        collection access

        host localhost
        port 27017

        flush_interval 10s

</match>

Masahiro Nakagawa

unread,
Sep 4, 2013, 10:49:33 PM9/4/13
to flu...@googlegroups.com
Glad to hear that!

Enjoy fluentd :)


Reply all
Reply to author
Forward
0 new messages