Skip to content

Installation failing due to sudo failure #478

Description

@jcoglan

Description

ruby-install cannot install ruby for me currently, it fails due to an error trying to use sudo:

$ sudo ruby-install -r /opt/rubies ruby 3.3.0
>>> Installing ruby 3.3.0 into /opt/rubies/ruby-3.3.0 ...
>>> Installing dependencies for ruby 3.3.0 ...
sudo: unknown user "jcoglan"
sudo: error initializing audit plugin sudoers_audit
sudo: unknown user "jcoglan"
sudo: error initializing audit plugin sudoers_audit
!!! Installing dependencies failed!

I am running ruby-install 0.9.3, installed via Homebrew, on macOS 13.6.3.

I am able to use sudo myself to run other programs and it behaves normally, which is why I suspect this is an issue with ruby-install specifically. I get the same error even if I become root first using sudo su.

Steps To Reproduce

Steps to reproduce the bug:

  • Run the command shown above

Expected Behavior

Ruby and its dependencies are installed.

Actual Behavior

ruby-install fails to install dependencies, reporting an error related to sudoers_audit.

Environment

$ ruby-install --version
ruby-install: 0.9.3

$ uname -a
Darwin berlin.local 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov  7 21:42:27 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T8103 arm64

$ cc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

$ openssl version
OpenSSL 3.2.0 23 Nov 2023 (Library: OpenSSL 3.2.0 23 Nov 2023)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions