I’m trying to set up Cloud9 (on a Windows machine) to test and update a Ruby project on GitHub. I’m struggled with installing all the required parts.
‘bundle install’ works to a point, then it fails here:
checking for iconv_open() in iconv.h... yes checking for GeoIP_record_by_ipnum() in -lGeoIP... no you must have geoip c library installed! . . An error occurred while installing geoip-c (0.9.1), and Bundler cannot continue. Make sure that `gem install geoip-c -v '0.9.1'` succeeds before bundling.
All of these fail:
gem install geoip-c gem install geoip-c -v '0.9.1' gem install geoip-c -- --with-geoip-dir=/opt/GeoIP
with this error message:
ERROR: Error installing geoip-c: ERROR: Failed to build gem native extension. current directory: /usr/local/rvm/gems/ruby-2.4.1/gems/geoip-c-0.9.1/ext/geoip /usr/local/rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20170628-2852-11bgk28.rb 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!
Been scratching my brain for a couple of days now - any help gratefully appreciated.