boxen / our-boxen

Copy me for your team.
https://github.com/boxen/our-boxen/
MIT License
2.58k stars 883 forks source link

Issues with Boxen on OSX 10.11 public beta 4 (json-1.8.2 gem issues) #769

Closed cscheib closed 9 years ago

cscheib commented 9 years ago

I can't currently get Boxen working at all. I understand it's a beta and not fully stable/supported.

Appears to be related to json-1.8.2

bash-3.2$ bundle
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.3.2
Using CFPropertyList 2.2.8
Using addressable 2.3.8
Using ansi 1.5.0
Using json_pure 1.8.2
Using hiera 1.3.4
Using highline 1.6.21
Installing json 1.8.2 with native extensions

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.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

Gem files will remain installed in /opt/boxen/repo/.bundle/ruby/2.0.0/gems/json-1.8.2 for inspection.
Results logged to /opt/boxen/repo/.bundle/ruby/2.0.0/gems/json-1.8.2/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2'` succeeds before bundling.
bash-3.2$ pwd
/opt/boxen/repo
bash-3.2$ script/boxen
--> Preparing to auto-update...
--> Complete! Nothing new from upstream.
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2'` succeeds before bundling.
Could not find json-1.8.2 in any of the sources
Run `bundle install` to install missing gems.
cscheib commented 9 years ago

OK, so I've figured out how to get past this particular issue. "full" Xcode without a developer account is at version 6.4, but if you install and use the command-line tools, they're at 7.x, it resolves a lot of issues. I'm sure everyone's aware, but the boxen gem also needs to be at 2.8.0 (or modify os.rb to include OSX 10.11 in SUPPORTED_VERSIONS).