Problem package 'kernlab'

Hello there People, newbie here!

im having trouble to train my dataset with svmRadial, when i execute my code

svm <- train(classes~., data=treino, method="svmRadial")

he says that i need to:

package is needed for this model and is not installed. (kernlab). Would you like to try to install it now?

Them i have this error:

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/ recipe for target '' failed
make: *** [] Error 1
ERROR: compilation failed for package ‘kernlab’
removing ‘/home/julio/R/x86_64-pc-linux-gnu-library/3.4/kernlab’

My informations:
OS: Linux Mint 19 Cinnamon
Cinnamon Version: 3.8.9
Linux Kernel: 4.15.0-36-generic

RStudio 1.2.1335
Build 4 (f1ac3452)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.10.1 Chrome/61.0.3163.140 Safari/537.36

If it's any consolation, I'm having the same llapack and lblas problems on Ubuntu in connection with installing sf. I'll post if I find a solution.

Damn, i had not a single advancement on the subject

I'm not sure why sf fixed the llapack/lblasissues. It's still hung up on rgdal, which is to be expected. Just for snicks, why don't you try installingsf` and see if it has the side effect of solving the dependency issues on your package?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.