Giter Site home page Giter Site logo

Comments (7)

anjia0532 avatar anjia0532 commented on May 26, 2024

share your code plz.

from lua-resty-maxminddb.

anjia0532 avatar anjia0532 commented on May 26, 2024

local _,status,resultTap = _dump_entry_data_list(entry_data_list)
if status ~= MMDB_SUCCESS then
return nil,'no data'
end
return json_decode(table.concat(resultTab)),nil

from lua-resty-maxminddb.

zhezi7 avatar zhezi7 commented on May 26, 2024

image

please see the picture

from lua-resty-maxminddb.

anjia0532 avatar anjia0532 commented on May 26, 2024

like https://github.com/anjia0532/lua-resty-maxminddb#synopsis.

paste your invoke code

from lua-resty-maxminddb.

anjia0532 avatar anjia0532 commented on May 26, 2024
  1. install all of the prerequisites https://github.com/anjia0532/lua-resty-maxminddb#prerequisites
  2. maxminddb's version
  3. invoke code

from lua-resty-maxminddb.

zhezi7 avatar zhezi7 commented on May 26, 2024

I find what I changed, when it loaded, it shows an error about maxminddb,
maxminddb.lua:151: dlopen(libmaxminddb.so, 5): image not found
So I changed from
local maxm = ffi.load('libmaxminddb.so') to
local maxm = ffi.load('libmaxminddb.dylib')
Maybe that's the reason.

I use Mac, do you know why it shows the error:
maxminddb.lua:151: dlopen(libmaxminddb.so, 5): image not found

from lua-resty-maxminddb.

anjia0532 avatar anjia0532 commented on May 26, 2024

u need https://github.com/maxmind/libmaxminddb#on-os-x-via-homebrew

from lua-resty-maxminddb.

Related Issues (20)

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.