我在MacOS 10.15.4的conda环境中安装R软件包时遇到问题。 R中的命令install.packages()
导致以下类型的错误(我没有粘贴完整的日志):
ld: symbol(s) not found for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
Error 1
ERROR: compilation failed for package ‘xml2’
checking for gcc... x86_64-apple-darwin13.4.0-clang
checking whether the C compiler works... no
configure: error: in `/private/var/folders/k6/p2cdz1dx32g3p4hmwghns3fc0000gn/T/RtmpdPz2VA/R.INSTALL4817a82715f/uuid':
configure: error: C compiler cannot create executables
我正在x86_64-apple-darwin13.4.0平台上使用3.6.1版本 lang版本是:
clang版本4.0.1(标签/ RELEASE_401 / final)
目标:x86_64-apple-darwin19.4.0
线程模型:posix
InstalledDir:/ opt / anaconda3 / envs / r_omics / bin
因此,我假设计算机上的C编译器处理R-packages的方式存在问题/冲突,但我不知道该如何解决。
我以某种方式设法通过conda install
安装了一些软件包,但是我没有通过这种方式来恢复所需的环境。
非常感谢您的帮助