r - r ridge 包未定义符号:regression_wrapper_function
问题描述
如何ridge
在 R 中安装软件包而不会出现以下未定义符号错误?
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘ridge’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge/libs/ridge.so':
/home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge/libs/ridge.so: undefined symbol: regression_wrapper_function
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/qwr/R/x86_64-pc-linux-gnu-library/3.4/ridge’
The downloaded source packages are in
‘/tmp/Rtmp5AEXdl/downloaded_packages’
Warning message:
In install.packages("ridge") :
installation of package ‘ridge’ had non-zero exit status
解决方案
查看安装消息,我看到必须安装 GSL(GNU 科学库):
* installing *source* package ‘ridge’ ...
** package ‘ridge’ successfully unpacked and MD5 sums checked
checking for gsl-config... no
configure: WARNING: gsl-config not found, is GSL installed?
configure: WARNING: ridge will be installed but some functions will be unavailable
configure: creating ./config.status
安装(在 Ubuntu 18.04 上)sudo apt install libgsl-dev
推荐阅读
- c++ - 即使一个是而另一个不是,如何说一个是有效的或无效的?
- python - 身份验证有什么问题?
- node.js - Express.js 会话 cookie 不适用于 CloudFront 中的 secure=true
- typescript - Ionic 会议应用程序 - 显示整个日程安排列表
- python - 如何反序列化 django 模型对象?
- mysql - 搜索带有特定标签的帖子
- gitlab - GitLab 页面货币化
- php - PHP 静态属性和 const 覆盖
- python - 如何从 Django 中的视图将数据发送到数据库?
- c - 在最短进程下一个算法中获得分段错误-核心转储错误