尝试安装 'rworldmap' 时,我收到一条错误消息,提示“没有名为 'fields' 的包”。所以我尝试安装“字段”,当我这样做时,它说解压成功并检查了 MD5 总和,但随后出现错误说编译失败。有什么建议吗?这正是出现的情况:
There is a binary version available but the source version
is later:
binary source needs_compilation
fields 9.0 9.6 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘fields’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 3188k 100 3188k 0 0 3720k 0 --:--:-- --:--:-- --:--:-- 3720k
* installing *source* package ‘fields’ ...
** package ‘fields’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c ExponentialUpperC.c -o ExponentialUpperC.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c addToDiagC.c -o addToDiagC.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c compactToMatC.c -o compactToMatC.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c expfnC.c -o expfnC.o
gfortran-4.8 -fPIC -g -O2 -c fieldsF77Code.f -o fieldsF77Code.o
make: gfortran-4.8: No such file or directory
make: *** [fieldsF77Code.o] Error 1
ERROR: compilation failed for package ‘fields’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/fields’
Warning in install.packages :
installation of package ‘fields’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/vx/ffhh4_sj0hj810kjht02f9bc0000gn/T/RtmpncjRcs/downloaded_packages’