Attempted to install forecast package in R 3.2 version, on Ubuntu 16.04 LTS Xenial Xerus:
1 |
install.packages("forecast") |
but when installing dependent packages tseries, quadprod, RcppArmadillo, it produced an error:
/usr/bin/ld: cannot find -lblas, cannot find -llalapack
Solution: install these libs in linux terminal:
1 |
sudo apt install libblas-dev liblapack-dev |
and install.packages("forecast") will work in R console