GithubHelp home page GithubHelp logo

Problem compiling gem about hive_geoip2 HOT 7 CLOSED

desuwa avatar desuwa commented on September 29, 2024
Problem compiling gem

from hive_geoip2.

Comments (7)

desuwa avatar desuwa commented on September 29, 2024

Might be a similar issue to da4nik/geoip2#7

Try this branch https://github.com/desuwa/hive_geoip2/tree/osx

cd hive_geoip2
gem build hive_geoip2.gemspec
CC=gcc gem install hive_geoip2-0.1.2.gem

from hive_geoip2.

james-ai avatar james-ai commented on September 29, 2024

Thanks for the response, Desuwa.
Unfortunately that didn't work for me. Got exactly the same error as before. Any other thoughts?

from hive_geoip2.

oschwald avatar oschwald commented on September 29, 2024

This might be a multiarch issue. You could try building it with ARCHFLAGS="-arch x86_64"

from hive_geoip2.

james-ai avatar james-ai commented on September 29, 2024

Same problem unfortunately. Still going over results found on Google but not having much luck so far. Seems lots of people are suffering from this problem, all with different fixes.

from hive_geoip2.

desuwa avatar desuwa commented on September 29, 2024

Seems lots of people are suffering from this problem, all with different fixes.

Updating ruby or the dev tools might help.

I don't have access to a Yosemite box but on 10.9 it compiles fine with this configuration:

$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
version: 6.1.1.0.1.1416017670

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674)

from hive_geoip2.

james-ai avatar james-ai commented on September 29, 2024

Using Ruby 2.1.2 did get around the problem.

Interestingly, I think, the output is different when I start up rails under versions 2.0.0 and 2.1.2. Have I compiled them with different compilers by accident?

2.1.2

[2014-12-16 16:20:10] INFO  WEBrick 1.3.1
[2014-12-16 16:20:10] INFO  ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0]
[2014-12-16 16:20:10] INFO  WEBrick::HTTPServer#start: pid=36446 port=3000

2.0.0-p247

[2014-12-16 16:20:55] INFO  WEBrick 1.3.1
[2014-12-16 16:20:55] INFO  ruby 2.0.0 (2013-06-27) [x86_64-darwin11.4.2]
[2014-12-16 16:20:55] INFO  WEBrick::HTTPServer#start: pid=36554 port=3000

from hive_geoip2.

desuwa avatar desuwa commented on September 29, 2024

It Just Werks™

from hive_geoip2.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.