You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GitHub上R包R-CMD-check报错:configure文件存在但无执行权限

R包GitHub Actions检查失败:configure文件无执行权限问题解决

我正在开发一个包含编译代码的R包,安装时需要运行configure文件。本地Ubuntu机器上执行R CMD CHECK完全正常,但在GitHub Actions的全平台检查中全部失败,Ubuntu环境下的报错信息如下:

Run r-lib/actions/check-r-package@v2
Run ## --------------------------------------------------------------------
── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file ‘.../DESCRIPTION’ ... OK
* preparing ‘idps’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
      -----------------------------------
* installing *source* package ‘idps’ ...
** using staged installation
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
* removing ‘/tmp/RtmpgriSYl/Rinst1bf31f43445d/idps’
      -----------------------------------
ERROR: package installation failed
Error: Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.
Run ## --------------------------------------------------------------------
Show testthat output
Run actions/upload-artifact@v3
Warning: No files were found with the provided path: /home/runner/work/idps/idps/check. No artifacts will be uploaded.

其他操作系统也出现同类错误。之前尝试过直接给configure文件赋予执行权限,也编辑过Workflow的yaml文件设置TMPDIR,但都没有效果。

最终通过以下命令修改脚本的执行权限并更新Git索引,解决了Ubuntu平台的检查问题:

chmod +x configure cleanup 
git update-index --chmod=+x configure cleanup

内容的提问来源于stack exchange,提问作者ahmathlete

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.07 13:10:45