# R 3.6: libRlapack.so: cannot open shared object file: No such file or directory

**URL:** <https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907>\
**Category:** R\
**Created:** [September 14, 2020, 1:30pm UTC](https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907 "2020-09-14T13:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bockthom](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bockthom](https://travis-ci.community/u/bockthom)\
**Post date:** [September 14, 2020, 1:30pm UTC](https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907/1 "2020-09-14T13:30:01Z")

</div>

Hi,

Since a few days, we do have some problems with R 3.6 and libRlapack.so in travis-ci.

Our config looks like the following:

```auto
# TravisCI container
os: linux
dist: xenial
warnings_are_errors: false

# R environment, dependencies and information
language: r
r:
  - 3.3
  - 3.4
  - 3.5
  - 3.6
cache: packages
repos:
  CRAN: https://cloud.r-project.org

# Installation
install:
    # package dependencies
    - sudo apt-get install libudunits2-dev
    # package installation
    - Rscript install.R

# Tests
script:
    - Rscript tests.R

```

Within our local script `install.R`, we install the `igraph` package via `install.packages("igraph", dependencies = TRUE, verbose = FALSE, quiet = FALSE)`

This has worked for all the requested R versions (3.3, 3.4, 3.5, and 3.6) until August 26, 2020. However, since September 02, 2020, this does not work any more for R 3.6 (3.3 to 3.5 still work as before), resulting in the following error during installation, as you can see in the following excerpt from the log file:

```auto
$ Rscript -e 'sessionInfo()'
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so
locale:
 [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C                 
 [9] LC_ADDRESS=C LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
attached base packages:
[1] stats graphics grDevices utils datasets methods base     
loaded via a namespace (and not attached):
[1] compiler_3.6.3
$ sudo apt-get install libudunits2-dev
$ Rscript install.R
$ Rscript tests.R
Loading required namespace: igraph
Failed with error: ‘unable to load shared object '/home/travis/R/Library/igraph/libs/igraph.so':
  libRlapack.so: cannot open shared object file: No such file or directory’

```

Does someone know why this does fail now? It only fails for R 3.6, not for previous R versions, and also it did not fail for R 3.6 until the end of August…

Best,  
Thomas

---

<div class="post-metadata">

**Author:** ![richelbilderbeek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/richelbilderbeek/32/328_2.png) [@richelbilderbeek](https://travis-ci.community/u/richelbilderbeek)\
**Post date:** [October 12, 2020, 5:50am UTC](https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907/2 "2020-10-12T05:50:45Z")

</div>

I have the same problem [(see Travis CI error log)](https://travis-ci.org/github/ropensci/babette/jobs/734709853#L905) on R-devel and Xenial.

I noticed something special [in a Travis CI log](https://travis-ci.org/github/ropensci/babette/jobs/734709853#L797):

```auto
$ Rscript -e 'sessionInfo()'
R Under development (unstable) (2020-10-09 r79317)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so <--- HERE

```

Maybe that will help @jeroen and @jimhester to fix it?

---

<div class="post-metadata">

**Author:** ![jeroen](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jeroen/32/509_2.png) [@jeroen](https://travis-ci.community/u/jeroen)\
**Post date:** [October 12, 2020, 8:34am UTC](https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907/3 "2020-10-12T08:34:43Z")

</div>

Try wiping or removing your cache.

---

<div class="post-metadata">

**Author:** ![richelbilderbeek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/richelbilderbeek/32/328_2.png) [@richelbilderbeek](https://travis-ci.community/u/richelbilderbeek)\
**Post date:** [October 15, 2020, 1:13pm UTC](https://travis-ci.community/t/r-3-6-librlapack-so-cannot-open-shared-object-file-no-such-file-or-directory/9907/4 "2020-10-15T13:13:53Z")

</div>

Indeed, wiping the cache is the solution! Thanks @jeroen!
