Comments (4)
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.
@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:
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.
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.
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)
- Build libpostal as part of the installation process HOT 7
- Output format HOT 4
- Can't find bindings expand HOT 2
- can't install anymore HOT 10
- Expose options like in pypostal HOT 2
- Can not start node js project HOT 2
- centos install HOT 1
- Node Bindings HOT 9
- Install with non-standard libpostal location HOT 6
- cannot install node-postal in amazon linux HOT 1
- error installing node-postal HOT 3
- Error in Windows while installing node-postal HOT 1
- node-postal does not build on nodejs versions >10.x (see pull request #25) HOT 3
- Publish new changes HOT 17
- Error: Could not locate the bindings file HOT 4
- Breaking changes: Could not install from ... as it does not contain a package.json file.
- error: cannot convert βvoid (*)(void*)β to βnode::Environment*β Node v16 HOT 4
- Documentation HOT 2
- install script in package json causes silently exit package installation with code 0 even in case of error
- Is this project dead?? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-postal.