Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running configure: error: wrong libh3 is required or lib not found #7

Open
ArniJohannesson opened this issue May 2, 2021 · 2 comments

Comments

@ArniJohannesson
Copy link

Followed latest install instructions:

https://h3geo.org/docs/installation

I am on Ubuntu Focal. Next, running ./configure as per the php-h3 install instructions, I get a failure with the message:

... Stuff ...
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable h3 support... yes, shared
checking for degsToRads in -lh3... no
configure: error: wrong libh3 is required or lib not found

Has the H3 library changed too much so this binding no longer works, or is there something else going on, like binaries not being where they are supposed to or something?

As an aside, I cannot find the geoToH3 binary anywhere on my system - instead I got:

# ls -lah /usr/local/bin/
total 4.2M
drwxr-xr-x  2 root root   14 May  2 18:20 .
drwxr-xr-x 10 root root   11 May 29  2020 ..
-rwxr-xr-x  1 root root 126K May  2 18:19 cellToBoundary
-rwxr-xr-x  1 root root 130K May  2 18:19 cellToBoundaryHier
-rwxr-xr-x  1 root root 126K May  2 18:19 cellToPoint
-rwxr-xr-x  1 root root 130K May  2 18:19 cellToPointHier
-rwxr-xr-x  1 root root 2.2M Feb  7 12:52 composer
-rwxr-xr-x  1 root root 126K May  2 18:19 gridDisk
-rwxr-xr-x  1 root root 122K May  2 18:19 gridDiskUnsafe
-rwxr-xr-x  1 root root 130K May  2 18:19 h3ToComponents
-rwxr-xr-x  1 root root 126K May  2 18:19 h3ToHier
-rwxr-xr-x  1 root root 134K May  2 18:19 h3ToLocalIj
-rwxr-xr-x  1 root root 134K May  2 18:19 localIjToH3
-rwxr-xr-x  1 root root 126K May  2 18:19 pointToCell

Thanks.!

@dfellis
Copy link

dfellis commented May 2, 2021

Hi @ArniJohannesson I will bring up those instructions in the next meeting because they are slightly wrong for those installing the C library directly (and not using one of the officially supported bindings). The master branch is currently being worked on for a major version change (to 4.0.0) that has changed the terminology to be more uniform and allow standardization of terminology with DGGRID in the future (hopefully).

What you want to do after the git clone is to run git checkout v3.7.1 to get the most recent tagged release of the C code, not the in-development changes.

I don't know if that will fix things for you with this binding, though. We don't use php and this repository hasn't been updated in 2 years; you may need to check out an earlier version of H3 to get it working here?

@ArniJohannesson
Copy link
Author

I gave up on this and decided to implement the H3 functionality we need in Nodejs instead. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants