Giter Site home page Giter Site logo

Doesn't compile in Mac OS X about geoip2 HOT 8 CLOSED

da4nik avatar da4nik commented on July 16, 2024
Doesn't compile in Mac OS X

from geoip2.

Comments (8)

da4nik avatar da4nik commented on July 16, 2024

I can't reproduce error, but these lines shows that something wrong with maxminddb.h

/usr/local/include/maxminddb.h:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mmdb_uint128_t’
/usr/local/include/maxminddb.h:87: error: expected specifier-qualifier-list before ‘mmdb_uint128_t’

Try to install latest release (0.5.3 for now) of libmaxmindb or from https://github.com/maxmind/libmaxminddb

Let me know how it's going.

from geoip2.

sashazykov avatar sashazykov commented on July 16, 2024

I can't do it:

libmaxminddb$ ./bootstrap
rm: ltmain.sh: No such file or directory
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
Can't exec "libtoolize": No such file or directory at /opt/chef/embedded/share/autoconf/Autom4te/FileUtils.pm line 345, <GEN3> line 6.
autoreconf: failed to run libtoolize: No such file or directory
autoreconf: libtoolize is needed because this package uses Libtool

from geoip2.

da4nik avatar da4nik commented on July 16, 2024

Have you read your quote above? How it's related to libmaxminddb ?

from geoip2.

oschwald avatar oschwald commented on July 16, 2024

The uint128 error may be caused by compiling the Ruby module as multiarch. Try prefixing the command to build it with ARCHFLAGS="-arch x86_64". For instance:

ARCHFLAGS="-arch x86_64" gem 'geoip2', github: 'da4nik/geoip2'

from geoip2.

sashazykov avatar sashazykov commented on July 16, 2024

@oschwald it hasn't helped. I had decided to use maxmind API instead of their library.

from geoip2.

erebor avatar erebor commented on July 16, 2024

For the record, if someone using bundler on a Gemfile with the geoip2 gem in it, you can also pass the ARCHFLAGS to bundler:

ARCHFLAGS="-arch x86_64" bundle install

Solved the problem on at least one Mac I've used.

from geoip2.

tribalvibes avatar tribalvibes commented on July 16, 2024

CFLAGS="-DMMDB_UINT128_USING_MODE=1" bundle install did it for my config.

from geoip2.

matthewbarram avatar matthewbarram commented on July 16, 2024

@tribalvibes that worked for me.

from geoip2.

Related Issues (13)

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.