如何解决我该怎么做才能成功下载 tergm 提到的包?
我正在尝试安装 statnet 软件包。我收到一条消息,提示我需要安装 tergm。当我尝试安装 tergm 时,我不断收到相同的错误:
我已经更新了我的 r 和 rstudio 版本。我使用的是 macOS 10.15。帮助
install.packages("tergm")
There is a binary version available but the source version is later:
binary source needs_compilation
tergm 4.0.1 4.0.2 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes
installing the source package ‘tergm’
trying URL 'https://cran.rstudio.com/src/contrib/tergm_4.0.2.tar.gz'
Content type 'application/x-gzip' length 528464 bytes (516 KB)
==================================================
downloaded 516 KB
* installing *source* package ‘tergm’ ...
** package ‘tergm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘tergm’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tergm’
Warning in install.packages :
installation of package ‘tergm’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/5f/t6rsjcy11mjb21t2_55rgfnh0000gn/T/RtmpKFxkZn/downloaded_packages’
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。