Skip to content

macos line 144: exec: sh: not found #221

@ShixiangWang

Description

@ShixiangWang

I am trying to install a github package and found an issue in my system. I don't know how to fix, any suggestion?

% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
> pkgbuild::check_build_tools(debug = TRUE)
Trying to compile a simple C file
Running /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/bin/R \
  CMD SHLIB foo.c
/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/bin/R: line 144: exec: sh: not found
错误: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
% sh --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
Copyright (C) 2007 Free Software Foundation, Inc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions