Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Mac上安装bife包时出错:RcppArmadillo_R_Macos_Installation Package_Rcpparmadillo - Fatal编程技术网

在Mac上安装bife包时出错:RcppArmadillo

在Mac上安装bife包时出错:RcppArmadillo,r,macos,installation-package,rcpparmadillo,R,Macos,Installation Package,Rcpparmadillo,我正在尝试使用Rstudio安装程序包“bife”,但收到以下错误消息: 安装软件包(“bife”) 问题似乎是用某种C++编译器解决的。我已经尝试了提供的解决方案,并遵循了其中的步骤,但仍然会出现错误。我对终端的东西不太满意,我只是把建议复制粘贴到终端上。我使用的是Rstudio版本1.1.456和R版本3.6.2。我的macOS Catalina版本是10.15.4。我真的无法安装或更新任何R软件包。谢谢你的帮助 在花了两天时间寻找解决方案后,我终于下载了最新版本的Rstudio(1.2.5

我正在尝试使用Rstudio安装程序包“bife”,但收到以下错误消息:

安装软件包(“bife”)


问题似乎是用某种C++编译器解决的。我已经尝试了提供的解决方案,并遵循了其中的步骤,但仍然会出现错误。我对终端的东西不太满意,我只是把建议复制粘贴到终端上。我使用的是Rstudio版本1.1.456和R版本3.6.2。我的macOS Catalina版本是10.15.4。我真的无法安装或更新任何R软件包。谢谢你的帮助

在花了两天时间寻找解决方案后,我终于下载了最新版本的Rstudio(1.2.5033),并修复了这个问题。现在我可以安装任何R软件包而没有问题。不确定解决方案的知识性,但只想报告问题已经解决

在花了两天时间寻找解决方案后,我终于下载了最新版本的Rstudio(1.2.5033),并修复了这个问题。现在我可以安装任何R软件包而没有问题。不确定解决方案的知识性,但只想报告问题已经解决

你好,Rnovice,你能提供你的
~/.R/Makevars
文件的内容吗?您可以通过
系统(“cat~/.R/Makevars”)
从R中轻松获得它。嗨@IanCampbell,以下是内容:CFLAGS=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk CCFLAGS=-isysroot/Library/Developer/CommandLineTools/sdk/MacOSX.sdk cxflags=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk cpplags=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk-I/usr/local/include SHLIB_cxldflags+=-Wl,-rpath,${R_HOME}/lib${R_HOME}/lib${R_HOME}/lib/libc++abi.1.dylib SHLIB_cx14ldflags+=-Wl,-rpath,${R_HOME}/libc++R_HOME}/libc++abi.1.dylibHi Rnovice,能否提供
.R/Makevars文件的内容?您可以通过
系统(“cat~/.R/Makevars”)
从R中轻松获得它。嗨@IanCampbell,以下是内容:CFLAGS=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk CCFLAGS=-isysroot/Library/Developer/CommandLineTools/sdk/MacOSX.sdk cxflags=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk cpplags=-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk-I/usr/local/include SHLIB_cxldflags+=-Wl,-rpath,${R_HOME}/lib${R_HOME}/lib${R_HOME}/lib/libc++abi.1.dylib SHLIB_cx14ldflags+=-Wl,-rpath,${R_HOME}/lib{R_HOME}/libc++abi.1.dylib
also installing the dependency ‘RcppArmadillo’

trying URL 'https://cran.rstudio.com/src/contrib/RcppArmadillo_0.9.850.1.0.tar.gz' Content type 'application/x-gzip' length 1381269 bytes (1.3 MB)
================================================== downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/src/contrib/bife_0.7.tar.gz' Content type 'application/x-gzip' length 119523 bytes (116 KB)
================================================== downloaded 116 KB

* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables...  checking whether we are cross compiling... configure: error: in `/private/var/folders/z0/k6tlg2lj31ng3lhl1rgxdlqc0000gn/T/Rtmp310YLn/R.INSTALLb74e72b400c9/RcppArmadillo': configure: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details ERROR: configuration failed for package ‘RcppArmadillo’
* removing ‘/Users/myname/opt/anaconda3/lib/R/library/RcppArmadillo’ Warning in install.packages :   installation of package ‘RcppArmadillo’ had non-zero exit status ERROR: dependency ‘RcppArmadillo’ is not available for package ‘bife’
* removing ‘/Users/myname/opt/anaconda3/lib/R/library/bife’ Warning in install.packages :   installation of package ‘bife’ had non-zero exit status

The downloaded source packages are in   ‘/private/var/folders/z0/k6tlg2lj31ng3lhl1rgxdlqc0000gn/T/Rtmp3EVGll/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done