jeroen / V8

Embedded JavaScript Engine for R
https://cran.r-project.org/package=V8
Other
199 stars 29 forks source link

`DOWNLOAD_STATIC_LIBV8` alpine version #115

Closed kklot closed 3 years ago

kklot commented 3 years ago

Is it possible to provide a static version compiled on alpine linux with this option? I think the two versions provided were compiled with glibc which does not work on alpine (error such as __fprintf_chk not found).

jeroen commented 3 years ago

Not yet. I could try to build one, this is what I used : https://github.com/jeroen/build-v8-static

jeroen commented 3 years ago

Which version of alpine do you use?

kklot commented 3 years ago

I use latest tag, so it should be 3, not sure the edge tag would have any benefits in compiling.

jeroen commented 3 years ago

Should work now, can you try pls

kklot commented 3 years ago

Thanks, I tempted to try that new code in jeroen/build-v8-static but too complicated for me. But now how should I install V8 with that one? still failed on alpine:latest image below (ran DOWNLOAD_STATIC_LIBV8=1; install.packages("V8") after open the image sh).

FROM alpine:latest
RUN apk add R-dev R-doc R git libxml2-dev musl-dev g++
jeroen commented 3 years ago

This works for me in R on alpine:latest

Sys.setenv(DOWNLOAD_STATIC_LIBV8=1)
install.packages("V8")

Doesn't that work for you? What error do you see?

kklot commented 3 years ago

Sorry, it works, I missed Sys.setenv.