Monday, June 11, 2018

lapack.so 'missing' make-ing R from src

Leave a Comment

I've run into an odd problem building R from scratch. lapack.so is not being found but it is present. I've hit the same problem building R-3.2.3 and R-3.2.4. (I'm doing this on ubuntu 14.04 LTS.)

./configure runs with no errors. When I run make, all the compilation appears to get done successfully. However, later I on get

byte-compiling package 'grDevices' Warning in solve.default(rgb) :   unable to load shared object '/home/moi/apps/R/R-3.2.3/modules//lapack.so':   /home/moi/apps/R/R-3.2.3/modules//lapack.so: undefined symbol: dpotrf_ Error in solve.default(rgb) : LAPACK routines cannot be loaded Error: unable to load R code in package 'grDevices' Execution halted make[4]: *** [../../../library/grDevices/R/grDevices.rdb] Error 1 make[4]: Leaving directory `/home/moi/apps/R/R-3.2.3/src/library/grDevices' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/moi/apps/R/R-3.2.3/src/library/grDevices' make[2]: *** [R] Error 1 make[2]: Leaving directory `/home/moi/apps/R/R-3.2.3/src/library' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/moi/apps/R/R-3.2.3/src' make: *** [R] Error 1 

Note the line

unable to load shared object '/home/moi/apps/R/R-3.2.3/modules//lapack.so': 

A file /home/moi/apps/R/R-3.2.3/modules/lapack.so does exist, but that double slash "//" looks wrong.

Any thoughts about how to fix this would be appreciated.

thanks

PS Please do not suggest that I use precompiled binaries. I really do need to build from src.

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment