我试图设置一个基于云的IDE(在Windows机器上)来测试和更新GitHub上的Ruby项目。我很难安装所有必需的部件。使用Cloud9安装GeoIP时出现的问题(Windows 10)
'捆绑安装' 工程,以一个点的话,就无法在这里:
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.
所有这些失败:
gem install geoip-c
gem install geoip-c -v '0.9.1'
gem install geoip-c -- --with-geoip-dir=/opt/GeoIP
与此错误消息:
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!
去过现在抓了我的脑子几天 - 任何帮助感激地赞赏。
你看了这篇文章吗? https://stackoverflow.com/questions/2748168/error-installing-geoip-city-gem#2754397 –
是的,我得到同样的错误:'在-lGeoIP中检查GeoIP_record_by_ipnum()...没有\ n你必须有geoip c library installed!' – huey
在那篇文章中,他们使用'env ARCHFLAGS =“ - arch x86_64”'运行'gem install geoip_city - --with-geoip-dir =/opt/GeoIP'“,以便指定系统是64位..他们也以'sudo'(系统用户)的系统用户身份运行该命令, –