0

I am installing the package forecast. However, I get a persistent error because the package fracdiff fails with this error:

/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'fracdiff.so' failed
make: *** [fracdiff.so] Error 1
ERROR: compilation failed for package ‘fracdiff’
* removing ‘/home/mario/R/x86_64-pc-linux-gnu-library/3.4/fracdiff’
Warning in install.packages :
  installation of package ‘fracdiff’ had non-zero exit status

Normally, when I see had non-zero exit status, it is for me a clue telling me that I should go to Synaptic and search for the library r-cran-fracdiff. However, this library is not present in my repositories, and don't really know how to solve this issue.

Any idea?

antecessor
  • 2,688
  • 6
  • 29
  • 61
  • 1
    [How to make sure the numpy BLAS libraries are available as dynamically-loadable libraries?](https://stackoverflow.com/q/6789368/608639) – jww Feb 07 '19 at 23:43

1 Answers1

2

"/usr/bin/ld: cannot find -lXXX" tells you that you should be looking for a library named something like "libXXX-dev".

In this case I would install libblas-dev and perhaps also liblapack-dev, as explained here.

neilfws
  • 32,751
  • 5
  • 50
  • 63