问题描述
我正在尝试安装 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 (将#修改为@)