h3r
h3r copied to clipboard
Install on unix fails
error message h3api.cpp:2:22: fatal error: h3/h3api.h: No such file or directory #include <h3/h3api.h> ^ compilation terminated.
could you show us more information, such as your code and environment information?
I have no other code than loading devtools and install.git. package is downloaded, installation starts, until it finds out that that particular heading is missing. regarding environment info, we are running on aws, and this is what i can get
version _ platform x86_64-redhat-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 3 minor 4.2 year 2017 month 09 day 28 svn rev 73368 language R version.string R version 3.4.2 (2017-09-28) nickname Short Summer > Sys.info() sysname release "Linux" "3.10.0-693.11.1.el7.x86_64" version nodename "#1 SMP Mon Dec 4 23:52:40 UTC 2017" "thisnode" machine login "x86_64" "unknown" user effective_user "sergiofelperin" "sergiofelperin"
On Mon, Jul 2, 2018 at 6:22 AM HarryZhu [email protected] wrote:
could you show us more information, such as your code and environment information?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottmmjackson/h3r/issues/5#issuecomment-401730011, or mute the thread https://github.com/notifications/unsubscribe-auth/Amyvk1ttRSBy4cWhm4VKmtJFm4DDUyzCks5uCeZugaJpZM4U8M_e .
-- Atentamente/Regards,
Sergio Felperin
I'm getting his same error. How is h3R trying to find the existing h3 install? Or rather, where is it expecting to find it?
I reinstalled h3 as a shared library under /usr/local/bin.
I get past the "No such file or directory" error, but installation still fails here:
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lh3.1
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/R/share/make/shlib.mk:6: h3r.so] Error 1
ERROR: compilation failed for package ‘h3r’
* removing ‘/usr/lib64/R/library/h3r’
Error: Command failed (1)
The libh3.so and libh3.so.1 can be found under /usr/local/lib (but not usr/local/lib64), but it looks to me that R is looking in the right place.
I met the same problem and solved by this PR: https://github.com/scottmmjackson/h3r/pull/3
#3 was merged, closing this unless the issue persists.