微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 r 中安装 quantmod 和 curl 的问题

如何解决在 r 中安装 quantmod 和 curl 的问题

我试图通过简单的 install.packages("quantmod") 安装“quantmod”。这会返回一个错误

    * installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONfig_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONfig_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration Failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian,Ubuntu,etc)
 * rpm: libcurl-devel (Fedora,CentOS,RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed,check that 'pkg-config' is in your
PATH and PKG_CONfig_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration Failed for package ‘curl’

然后我尝试安装 'curl' 但它再次给出错误

No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration Failed because libcurl was not found. Try installing:
 

请帮我解决一下?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。