Error installing geoip_city gem

☆樱花仙子☆ 提交于 2019-12-06 16:48:29

cantorrodista was on the right track, though. I had to run the command like this: sudo env ARCHFLAGS="-arch i386" gem install geoip_city -- --with-geoip-dir=/opt/GeoIP

I think you have to pass the ARCHFLAGS parameter to indicate that is going to be built for a 64 bit arquitecture:

sudo env ARCHFLAGS="-arch x86_64" gem install geoip_city -- --with-geoip-dir=/opt/GeoIP

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!