Problems installing packages

Hello guys.

I am not able to install the rstan package for R 3.6.3. I have a problem with package dependencies as you can see below.

** byte-compile and prepare package for lazy loading
Error in library.dynam(lib, package, package.lib) :
shared object ‘’ not found
Calls: … namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Execution halted
ERROR: lazy loading failed for package ‘rstan’

  • removing ‘/mnt/nfs/home/fabiano_coelho/R/x86_64-pc-linux-gnu-library/3.6/rstan’

The downloaded source packages are in
Warning message:
In install.packages(“rstan”) :
installation of package ‘rstan’ had non-zero exit status

How to solve this?

Fabiano Rodrigues Coelho

1 Like

On Linux, if you don’t have root privileges, you first need to do


Thank you for your attention. I tried to install all the existing versions of the V8 package, but I couldn’t.

I’m not sure how to fix the V8 issue unfortunately (@bgoodri @andrjohns any ideas?), but we also have a new Stan interface for R, CmdStanR, which doesn’t require V8 at all, so you could try that and hopefully you’d have more luck. (If you run into any trouble with CmdStanR we can try to help troubleshoot.)

So you are using Linux and


didnt help? What was the error you got?