Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Test installation failed on macOS Mojave #22

@TheRojam

Description

@TheRojam

Ich habe versucht den aktuellen Master branch zu installieren.
Dies ist fehl geschlagen.
Hier die FM aus meinem Terminal:

Fetching json 1.8.3
Installing json 1.8.3 with native extensions
Errno::EPERM: Operation not permitted @ apply2files - /usr/local/lib/ruby/gems/2.5.0/gems/json-1.8.3/tests/test_json.rb
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  coffee-rails was resolved to 3.2.2, which depends on
    railties was resolved to 3.2.12, which depends on
      rdoc was resolved to 3.12.2, which depends on
        json

Wenn ich dann gem install json -v '1.8.3' --source 'https://rubygems.org/' machen möchte kommt die FM:

ERROR:  Error installing json:
        ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/json-1.8.3/ext/json/ext/generator
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181117-30809-8503ai.rb extconf.rb
creating Makefile

current directory: /Library/Ruby/Gems/2.3.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.3.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
         ^~~~~~~~~~~~~~~
1 error generated.
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/json-1.8.3 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/json-1.8.3/gem_make.out

@apfohl Magst du mir da vielleicht nen paar Hinweise geben?

Metadata

Metadata

Assignees

No one assigned

    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