在 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 (将#修改为@)