R 的 devtools - 使用“配置”从 github 安装文件
我在 github 上有一个 R 包,它使用“配置”脚本(因为某些 C 代码依赖于 GSL 库)。我尝试使用 devtools 包中的 github_install() 函数安装该包并收到错误:
(as ‘lib’ is unspecified)
* installing *source* package ‘wrightscape’ ...
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
不确定要做什么 - github 上的文件是否有执行权限之类的东西?这是开发工具问题还是配置问题? (从源代码安装包对我来说效果很好)。包裹在这里。 https://github.com/cboettig/wrightscape
I have an R package on github that uses a "configure" script (since some of the C code depends on GSL libraries). I try installing the package using github_install() function from devtools package and get the error:
(as ‘lib’ is unspecified)
* installing *source* package ‘wrightscape’ ...
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
Not sure what to do -- are there such a thing as execute permissions for a file on github? is this a devtools issue or a configuration issue? (Installing the package from source works fine for me). The package is here. https://github.com/cboettig/wrightscape
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该问题现已在最新版本的 devtools (0.7) 中修复。
This is now fixed in the latest version of devtools (0.7).
Git 不直接管理文件权限。一旦从 git 交付这些位,通常由构建或安装脚本负责正确调整权限。有第三方工具可以帮助解决这个问题。请参阅有关 SO 问题使用 Git 保留文件权限的讨论。
希望这有帮助。
Git does not manage file permissions directly. It is usually the responsibility of a build or install script to adjust permissions correctly once the bits are delivered from git. There are third party tools that can help with this. See the discussion on SO question Retaining file permissions with Git.
Hope this helps.
我遇到了类似的问题,这是由我的 /tmp 目录被挂载为 noexec 引起的,并通过设置不同的 TMPDIR 来解决,如解释的 此处
I had a similar issue which was caused by my /tmp dir being mounted noexec, and solved by setting a different TMPDIR, as explained here