Skip to content

Is coreutils required by nkf? #22

@ericksprengel

Description

@ericksprengel

I was stuck in a error make: /opt/homebrew/bin/gmkdir: No such file or directory (full output below).
And I solved it installing coreutils using homebrew (Stack Overflow).

Installing nkf 0.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: <HOME>/.asdf/installs/ruby/3.1.5/lib/ruby/gems/3.1.0/gems/nkf-0.2.0/ext/nkf
<HOME>.asdf/installs/ruby/3.1.5/bin/ruby -I <HOME>.asdf/installs/ruby/3.1.5/lib/ruby/3.1.0 extconf.rb
creating Makefile

current directory: <HOME>/.asdf/installs/ruby/3.1.5/lib/ruby/gems/3.1.0/gems/nkf-0.2.0/ext/nkf
make DESTDIR\= sitearchdir\=./.gem.20241004-67790-4pb11u sitelibdir\=./.gem.20241004-67790-4pb11u clean

current directory: <HOME>/.asdf/installs/ruby/3.1.5/lib/ruby/gems/3.1.0/gems/nkf-0.2.0/ext/nkf
make DESTDIR\= sitearchdir\=./.gem.20241004-67790-4pb11u sitelibdir\=./.gem.20241004-67790-4pb11u
compiling nkf.c
linking shared-object nkf.bundle
ld: warning: ignoring duplicate libraries: '-lruby.3.1'

current directory: <HOME>/.asdf/installs/ruby/3.1.5/lib/ruby/gems/3.1.0/gems/nkf-0.2.0/ext/nkf
make DESTDIR\= sitearchdir\=./.gem.20241004-67790-4pb11u sitelibdir\=./.gem.20241004-67790-4pb11u install
make: /opt/homebrew/bin/gmkdir: No such file or directory
make: *** [.sitearchdir.time] Error 1

make install failed, exit code 2

Gemfile

source 'https://rubygems.org'

gem 'nkf', '0.2.0'

Ruby version: 3.1.5

Ruby Version Manager: ASDF

Extra:

  • I wasn't facing this issue some days ago, and I don't know why it start happing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions