Ruby-build: Ruby 2.7.2 installation fails on MacOS 11.1 - Interrupted system call

Created on 19 Jan 2021  路  7Comments  路  Source: rbenv/ruby-build

Ruby build fails when installing ruby 2.7.2 using rbevn on macos 11.1

Problem: Ruby build process is getting Interrupted by a system call and it ends up in file/dependency load error

Solutions that I tried

Updated ruby-build, rbenv, openssl, xcode, xcode-select, created another administrator account for the installation

Other solutions that I tried from the internet

https://github.com/rbenv/ruby-build/issues/1483
https://github.com/rbenv/ruby-build/issues/1489
https://github.com/rbenv/ruby-build/issues/1480
https://stackoverflow.com/questions/65524323/ruby-installation-2-2-2-fails-in-macos-big-sur/65525762

Observations: Cannot load such file errors are pointing on different files on each build iteration, it's not consistent at all

Terminal log

Last 10 log lines:
Could not be configured. It will not be installed.
/private/var/folders/8x/t_2r9nlx4m90wscjklmwwpyr0000gn/T/ruby-build.20210118194303.29135.E2W2Mg/ruby-2.7.2/lib/mkmf.rb:568: Interrupted system call -
Check ext/pathname/mkmf.log for more details.
* Fix the problems, then remove these directories and try again if you want.
Generating RDoc documentation
/private/var/folders/8x/t_2r9nlx4m90wscjklmwwpyr0000gn/T/ruby-build.20210118194303.29135.E2W2Mg/ruby-2.7.2/lib/rdoc/rdoc.rb:6:in require': cannot load such file -- pathname (LoadError) from /private/var/folders/8x/t_2r9nlx4m90wscjklmwwpyr0000gn/T/ruby-build.20210118194303.29135.E2W2Mg/ruby-2.7.2/lib/rdoc/rdoc.rb:6:in from ./libexec/rdoc:16:in require' from ./libexec/rdoc:16:in

'

Component Version Details

Mac OS Big sur 11.1
Rbenv 1.1.2
Xcode 11.3
Xcode-select 2384.
OpenSSL 1.1.1i
Homebrew 2.7.5

Full Installation log

ruby-build.20210119102907.59253.txt

Most helpful comment

Same issue with Little Snitch running with 'Preferences > Advanced > Endpoint Security System Extension' enabled, fixed by temporarily disabling.

All 7 comments

Security fabric agent was interrupting my installation process, disabling the same fixed the problem

@adarshjayan7574 How did you disable security fabric agent? 馃槄

I'm also having this issue on macOS 11.2 with rbenv install 3.0.0 so would be interested to know more about your solution @adarshjayan7574.

Here's the last of my terminal log, which is very similar:

BUILD FAILED (macOS 11.2 using ruby-build 20210119)

Inspect or clean up the working tree at /var/folders/0h/_hs5fdrx7njd8g5v7tjbpwqc0000gp/T/ruby-build.20210206134115.1006.CVHaLg
Results logged to /var/folders/0h/_hs5fdrx7njd8g5v7tjbpwqc0000gp/T/ruby-build.20210206134115.1006.log

Last 10 log lines:
    Could not be configured. It will not be installed.
    :43: Interrupted system call -
    Check ext/readline/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.
Generating RDoc documentation
/private/var/folders/0h/_hs5fdrx7njd8g5v7tjbpwqc0000gp/T/ruby-build.20210206134115.1006.CVHaLg/ruby-3.0.0/lib/rdoc/rdoc.rb:6:in `require': cannot load such file -- pathname (LoadError)
    from /private/var/folders/0h/_hs5fdrx7njd8g5v7tjbpwqc0000gp/T/ruby-build.20210206134115.1006.CVHaLg/ruby-3.0.0/lib/rdoc/rdoc.rb:6:in `<top (required)>'
    from ./libexec/rdoc:16:in `require'
    from ./libexec/rdoc:16:in `<main>'
make: *** [rdoc] Error 1

@chini5ko Thanks to this Stack Overflow tip, I uninstalled Avira, retried rbenv install 3.0.0, and was successful. If you have Avira, or another similar application, (e.g. Kaspersky), you might uninstall that and retry.

Faced with the same issue because Avast installed.

The same issue with installed ESET Endpoint Antivirus. I've removed and the issue was resolved.

Same issue with Little Snitch running with 'Preferences > Advanced > Endpoint Security System Extension' enabled, fixed by temporarily disabling.

Was this page helpful?
0 / 5 - 0 ratings