ruby / stringio

Pseudo `IO` class from/to `String`.
BSD 2-Clause "Simplified" License
36 stars 26 forks source link

gem fails to compile #107

Closed mperham closed 4 days ago

mperham commented 4 days ago

I'm on an M1 MBP using macOS 15.0.1.

% gem install stringio
Building native extensions. This could take a while...
ERROR:  Error installing stringio:
    ERROR: Failed to build gem native extension.

    current directory: /Users/mperham/.gem/ruby/3.3.5/gems/stringio-3.1.2/ext/stringio
/Users/mperham/.rubies/ruby-3.3.5/bin/ruby extconf.rb
creating Makefile

current directory: /Users/mperham/.gem/ruby/3.3.5/gems/stringio-3.1.2/ext/stringio
make DESTDIR\= sitearchdir\=./.gem.20241108-66330-my83w1 sitelibdir\=./.gem.20241108-66330-my83w1 clean

current directory: /Users/mperham/.gem/ruby/3.3.5/gems/stringio-3.1.2/ext/stringio
make DESTDIR\= sitearchdir\=./.gem.20241108-66330-my83w1 sitelibdir\=./.gem.20241108-66330-my83w1
compiling stringio.c
linking shared-object stringio.bundle

current directory: /Users/mperham/.gem/ruby/3.3.5/gems/stringio-3.1.2/ext/stringio
make DESTDIR\= sitearchdir\=./.gem.20241108-66330-my83w1 sitelibdir\=./.gem.20241108-66330-my83w1 install
make: /opt/homebrew/bin/gmkdir: No such file or directory
make: *** [.sitearchdir.time] Error 1

make install failed, exit code 2

Gem files will remain installed in /Users/mperham/.gem/ruby/3.3.5/gems/stringio-3.1.2 for inspection.
Results logged to /Users/mperham/.gem/ruby/3.3.5/extensions/arm64-darwin-23/3.3.0-static/stringio-3.1.2/gem_make.out
mperham commented 4 days ago

Fixed with brew install coreutils.