Install RStan on Ubuntu 20

Hi, I recently updated to Ubuntu 20.04 on a cloud server and RStan has stopped working. When I try to update or reinstall get the below error when I try to update

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/opt/R/4.0.5/lib/R/library/V8/libs/V8.so':
  libv8.so.3.14.5: cannot open shared object file: No such file or directory
  • Ubuntu 20.04.3 LTS (Focal Fossa)

I have libnode-dev up to date

Thanks

You’ll need to manual install libv8.so.3.14.5 . When Ubuntu 20 rolled out this library (and others) got dropped for a different version. I had a similar issue.

Many thanks @Ara_Winter

After following you advice and do some digi-digging I found this to be the best solution:

1 Like

Oh @barryquinn1 you will have similar issues with Ubuntu 21. I did that upgrade a week or so ago. A number of libraries will be out of sync.