[R-pkg-devel] Problem with V8 on CRAN Debian

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Mon Aug 3 17:07:49 CEST 2020


On 3 August 2020 at 16:42, Paul Buerkner wrote:
| Dear R community,
| 
| in an effort to re-submit one of my packages (thurstonianIRT) to CRAN
| because of some test failures after updates of other packages, I get the
| following error from the CRAN debian installation, which I don't know how
| to address:
| 
| * installing *source* package ‘thurstonianIRT’ ...
| ** using staged installation
| ** libs
| "/home/hornik/tmp/R/bin/Rscript" -e "source(file.path('..', 'tools',
| 'make_cc.R')); make_cc(commandArgs(TRUE))"
| stan_files/thurstonian_irt_model.stan
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
|   unable to load shared object
| ‘/home/hornik/lib/R/Library/4.1/x86_64-linux-gnu/V8/libs/V8.so’:
|   libnode.so.64: cannot open shared object file: No such file or directory
| Calls: make_cc ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
| Execution halted
| make: *** [Makevars:17: stan_files/thurstonian_irt_model.cc] Error 1
| ERROR: compilation failed for package ‘thurstonianIRT’
| * removing ‘/srv/hornik/tmp/CRAN/thurstonianIRT.Rcheck/thurstonianIRT’
| 
| 
| It seems to be a problem with the V8 package (on which the latest version
| of rstan depends) but I don't know if I can fix it from my side.

Tracing it:

  edd using rob:~$ locate libnode.so.64
  /usr/lib/x86_64-linux-gnu/libnode.so.64
  edd using rob:~$ dpkg -S $(locate libnode.so.64)
  libnode64:amd64: /usr/lib/x86_64-linux-gnu/libnode.so.64
  edd using rob:~$ 

Looks like libnode64 needs to be installed. On systems that lack complete
dependency resolutions (cough, RSPM, cough) one needs libnode-dev; this
libnode64 above is dependency of libnode-dev.

Maybe you need to add 'libnode-dev' in SystemRequirements:  ?

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list