gpt4 book ai didi

r - 无法编译包 'maps'

转载 作者:行者123 更新时间:2023-12-04 16:33:27 26 4
gpt4 key购买 nike

当我安装包“maps”时,安装中出现警告:

ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture x86_64:
"___sprintf_chk", referenced from:
_to_ascii in Gmake-02a515.o
"___stack_chk_fail", referenced from:
_to_ascii in Gmake-02a515.o
....

"_strlen", referenced from:
_to_ascii in Gmake-02a515.o
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)
make[1]: *** [<builtin>: Gmake] Error 1
make[1]: Leaving directory '/private/var/folders/l4/tmczrb0d7259bm_cqcy02y9w0000gn/T/Rtmpnbfu8d/R.INSTALLa802101e8d4/maps/src'
make: *** [Makefile:58: gmake] Error 2
ERROR: compilation failed for package ‘maps’
* removing ‘/anaconda3/lib/R/library/maps’
Warning in install.packages :
installation of package ‘maps’ had non-zero exit status

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

当我运行的时候

library(maps)

它给出了以下错误:

Error in library(maps) : there is no package called ‘maps’

最佳答案

请你做 PIP pip install maps它看起来像是在尝试构建源代码然后安装它。

关于r - 无法编译包 'maps',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59082237/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com