错误:找不到构建 dplyr 所需的构建工具 [英] Error: Could not find build tools necessary to build dplyr

查看:27
本文介绍了错误:找不到构建 dplyr 所需的构建工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从其存储库安装 dplyr,但出现以下错误.我在 Yosemite 和 Xcode 6.2 中使用 MBP(有点过时).我发现这很奇怪,显然,这不是一个常见问题,因为我没有在此错误消息上找到任何线程.我想知道这里缺少什么构建工具.

I'm trying to install dplyr from its repository, but I getting the following error. I'm using MBP with Yosemite and Xcode 6.2 (it's a bit outdate). I found this curious, apparently, it's not a common issue as I didn't find any thread on this error message. I'm wondering what is the build tools I'm lacking here.

> devtools::install_github("hadley/dplyr")
Downloading GitHub repo hadley/dplyr@master
from URL https://api.github.com/repos/hadley/dplyr/zipball/master
Error: Could not find build tools necessary to build dplyr

这是我尝试从本地安装源包时从终端收到的错误:

This is the error I'm receiving from terminal when I try to install a package from source locally:

clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -DPLATFORM_PKGTYPE='"mac.binary.mavericks"'    -fPIC  -Wall -mtune=core2 -g -O2  -c pause.c -o pause.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/X11/lib -L/usr/local/lib /usr/local/lib/libcairo.a /usr/local/lib/libpixman-1.a /usr/local/lib/libfreetype.a /usr/local/lib/libfontconfig.a -lxml2 /usr/local/lib/libreadline.a -o profvis.so pause.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
clang: error: no such file or directory: '/usr/local/lib/libreadline.a'

推荐答案

你可以去这个地址 下载并安装更新版本的命令行工具以及@alistaire 提到的 XCode,但您拥有的那个很好.

You can go to this address to download and install a newer version of Command Line Tools as well as XCode as mentioned by @alistaire, but the one you have is fine.

根据您发布的消息,它表明存在链接问题.您想为 readline 库创建符号链接.Homebrew 为我们做了这个,但由于某种原因它没有;所以你可以通过使用 --force 选项手动创建链接来解决这个问题:

By the message you posted, it suggests a linkage problem. You want to create a symlink for the readline lib. Homebrew does this for us, but for some reason it didn't; so you may be able to solve this by creating the link manually with --force option as:

brew link readline --force

这篇关于错误:找不到构建 dplyr 所需的构建工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆