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

Test installation failed on macOS Mojave #22

Open
TheRojam opened this issue Nov 17, 2018 · 4 comments
Open

Test installation failed on macOS Mojave #22

TheRojam opened this issue Nov 17, 2018 · 4 comments

Comments

@TheRojam
Copy link

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?

@apfohl
Copy link
Contributor

apfohl commented Nov 19, 2018

Hi @TheRojam, welche Ruby-Version hast du installiert? ruby --version

@TheRojam
Copy link
Author

@apfohl


$ ruby --version
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

@apfohl
Copy link
Contributor

apfohl commented Nov 19, 2018

Deine Ruby-Version ist zu neu. Die letzte von Rails 3.2.x unterstütze ist Ruby 2.2.10. Am beste du installiert dir einen Ruby-Version-Manager wie z.B. rbenv.

@apfohl
Copy link
Contributor

apfohl commented Nov 20, 2018

Ziel ist ja eh, das ganze System auf die aktuelle Rails-Version zu bringen. Dann gibt es auch eine Zeit lang keine Probleme. Aber das ist halt Software.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants