tsoutliers 依赖问题:依赖 KFKSDS 具有非零退出状态?

tsoutliers dependency issue: dependency KFKSDS has non-zero exit status?

在对时间序列数据进行离群值检测时。我遇到了 [tsoutliers][1] 个确实实现了 Chen and Liu's time series 离群值检测的包。但是我无法在 R

中安装 tsoutliers

install.packages("tsoutliers")

我收到以下依赖性错误

In file included from KF-deriv.cpp:1:0: KFKSDS.h:14:28: fatal error: gsl/gsl_vector.h: No such file or directory compilation terminated. /usr/lib/R/etc/Makeconf:143: recipe for target 'KF-deriv.o' failed make: *** [KF-deriv.o] Error 1 ERROR: compilation failed for package ‘KFKSDS’ * removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/KFKSDS’ Warning in install.packages : installation of package ‘KFKSDS’ had non-zero exit status ERROR: dependency ‘KFKSDS’ is not available for package ‘stsm’ * removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/stsm’ Warning in install.packages : installation of package ‘stsm’ had non-zero exit status ERROR: dependencies ‘stsm’, ‘KFKSDS’ are not available for package ‘tsoutliers’ * removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/tsoutliers’ Warning in install.packages : installation of package ‘tsoutliers’ had non-zero exit status

更具体地说

recipe for target 'KF-deriv.o' failed

谁能帮我安装一下?

我可以通过安装

来解决同样的问题

libgsl0

sudo apt-get install libgsl0-dev