簡體   English   中英

與 R 一起使用時如何在 libcurl 中啟用 scp?

[英]How do you enable scp in libcurl when using with R?

我正在嘗試使用 RStudio 中的 scp 直接訪問遠程日志文件。 我可以從命令行使用 scp,效果很好。 但在 RStudio 中,我收到以下錯誤:

libcurl 不支持或禁用協議“scp”

如何啟用 scp?

我在 RStudio 中使用 curl 和 RCurl 庫

環境:平台x86_64-apple-darwin13.4.0
拱 x86_64
操作系統達爾文13.4.0
系統 x86_64,darwin13.4.0
狀態
專業 3
小2.0
2015年
04月
第 16 天
svn 版本 68180
語言 R
version.string R 版本 3.2.0 (2015-04-16) nickname Full of Ingredients

我花了幾個小時來解決這個問題。 這個鏈接解決了我的問題。

通過此鏈接重新安裝 curl - https://askubuntu.com/questions/1128780/how-to-build-the-latest-curl-from-sources-to-allow-downloading-files-via-sftp

然后,重新安裝 RCurl:

install.packages("RCurl",type="source")

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM