Giter Site home page Giter Site logo

Comments (4)

albarrentine avatar albarrentine commented on May 14, 2024

node-postal is a thin wrapper around libpostal, which is written in C and does all the heavy lifting. The C library can be found here: https://github.com/openvenues/libpostal and is also written/maintained by me. Cloning that repo is the first step under "Installing libpostal" in the instructions, and seeing the output above means you've already run the install for it.

It looks like there was an error while running make for the C library, probably related to disk space. Make sure there's at least 2.2G of disk space available in whichever directory you specified during ./configure --datadir=[some dir] and that the make and sudo make install commands succeed before moving on to installing the bindings. If downloading the data files fails, subsequent steps like installing libpostal.h in /usr/local/include and libpostal.so in /usr/local/lib fail as well, hence why Node can't find them at compile-time. There shouldn't be any path manipulation needed to help the Node bindings find libpostal. /usr/local/{include,lib} should be on the default paths.

"Installing node-gyp on Linux" is just about prerequisites for Linux specifically. On Mac all the prereqs come with Xcode, so that section doesn't apply and sudo npm install -g node-gyp should be all that's needed.

The Node bindings are tested on most major versions of Node going back to 0.10 and we use a library called Nan, which abstracts changes in the V8/Native C++ APIs across versions of Node. Using Nan's macros allows node-postal to stay backward-compatible and relatively future-proof since Nan is maintained by the NodeJS team.

from node-postal.

jefffriesen avatar jefffriesen commented on May 14, 2024

@thatdatabaseguy I got it running. Thank you.

It's weird - I ran the make script and it just gave up downloading. I was on reasonably fast, stable connections both times.

Here is where it stopped the second time:
screen shot 2016-08-25 at 5 13 38 pm

The first time it stopped it got through language_classifier.tar.gz.7. And then you were right, everything failed after that.

Thanks again.

from node-postal.

albarrentine avatar albarrentine commented on May 14, 2024

Hmm, connections to S3 can sometimes bork at random, which may be the cause. With 10 concurrents it's certainly possible. Just added retries to the underlying curl commands with openvenues/libpostal@01afbf8, which should hopefully help in future cases.

from node-postal.

jefffriesen avatar jefffriesen commented on May 14, 2024

Nice, thanks.

Btw, I love the long, super-detailed writeup on how you implemented libpostal (https://mapzen.com/blog/inside-libpostal/). Looking forward to geocoding solutions built on top of it too!

Thanks again

from node-postal.

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.