Errors when Installing wellknown and V8 Packages


#1

Hello all,

Today I saw useR!2018 data challenge tweet. And I tried to install ALA4R package but I got errors about the packages V8 and wellknown. These are the packages that I’ve never used but I tried to install them manually, that couldn’t worked too.

For example, when installing wellknown, it says: "also installing the dependency ‘V8’ " and then I got this
"ERROR: configuration failed for package ‘V8’

  • removing ‘/usr/local/lib/R/3.4/site-library/V8’
    Warning in install.packages :
    installation of package ‘V8’ had non-zero exit status"

Also there is “ANTICONF ERROR”

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because was not found. Try installing:

  • deb: libv8-3.14-dev (formerly: libv8-dev) (Debian, Ubuntu)
  • rpm: v8-314-devel (formerly: v8-devel) (Fedora, EPEL)
  • brew: v8@3.15 (OSX) – NOT regular v8! Tap from homebrew/versions
  • csw: libv8_dev (Solaris)
    To use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars=‘INCLUDE_DIR=… LIB_DIR=…’

Github link for ALA4R package: https://github.com/AtlasOfLivingAustralia/ALA4R

I use macOS and R version 3.4.4.

Thank you so much.


#2

Thanks for your question @Zofiathewitch

The anticonf message includes some instructions on how to install the dependency. The line

brew: v8@3.15 (OSX) – NOT regular v8! Tap from homebrew/versions

is meant for osx (your platform).

Please try this on your command line and let me know what happens:

If you don’t have homebrew installed there’s a nice one liner here https://brew.sh/

Install V8

i think homebrew/versions is deprecated, so you shouldn’t need to worry about that

brew install v8@3.15

Then go back to R and install wellknown


#3

Hey Scott,

Thank you so much for your quick answer.
I run this on brew: brew install v8@3.15

It’s installed.
Then I turned back to R and tried to install wellknown by using install.packages. I still get this error:

Warning messages:
1: In install.packages(“wellknown”) :
installation of package ‘V8’ had non-zero exit status
2: In install.packages(“wellknown”) :
installation of package ‘wellknown’ had non-zero exit status

Thanks again.


#4

Did brew install v8@3.15 work without errors?

Did you restart your R session after the brew step?

Can you try to install the R package install.packages("V8") and see if that works?


#5

Nope, I didn’t get any errors while installing V8 via brew.
Yes I applied this steps and still I have: " Warning in install.packages : installation of package ‘V8’ had non-zero exit status"

"ERROR: dependency ‘V8’ is not available for package ‘wellknown’

  • removing ‘/usr/local/lib/R/3.4/site-library/wellknown’
    Warning in install.packages :
    installation of package ‘wellknown’ had non-zero exit status"

#6

Not sure what the problem is. Any thoughts @jeroenooms ? not sure what’s going on here with v8?


#7

Are you using the CRAN version of R from https://cloud.r-project.org/bin/macosx/ ? In that case you should just be able to install the precompiled binary package.

Otherwise, can you show the full output of install.packages("V8") ?

If you install from source you need to: brew install v8@3.15?


#8

Thank you @jeroenooms for answering. Thank you @sckott.

I use CRAN version of R and I just updated it to 3.5.0.

And they all worked now!
V8, wellknown and ALA4R are now working!

Is it all related the R version? Confused a little bit :confused:


#9

great, glad it worked. not sure about why with the versions, but good idea to upgrade to latest R anyway