k0kubun / hamlit

High Performance Haml Implementation
https://rubygems.org/gems/hamlit
Other
981 stars 59 forks source link

v2.9.1 install issue #129

Closed dux closed 5 years ago

dux commented 6 years ago

version 2.9.0 works fine, this new one has issues

ruby ruby 2.6.0dev (2018-02-11 trunk 62352) [x86_64-darwin17]

full response Fetching hamlit 2.9.1 (was 2.9.0) Installing hamlit 2.9.1 (was 2.9.0) with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /Users/dux/.rvm/gems/ruby-2.6-head/gems/hamlit-2.9.1/ext/hamlit /Users/dux/.rvm/rubies/ruby-2.6-head/bin/ruby -r ./siteconf20181109-5858-gm82lo.rb extconf.rb creating Makefile

current directory: /Users/dux/.rvm/gems/ruby-2.6-head/gems/hamlit-2.9.1/ext/hamlit make "DESTDIR=" clean xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

current directory: /Users/dux/.rvm/gems/ruby-2.6-head/gems/hamlit-2.9.1/ext/hamlit make "DESTDIR=" xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

make failed, exit code 1

Gem files will remain installed in /Users/dux/.rvm/gems/ruby-2.6-head/gems/hamlit-2.9.1 for inspection. Results logged to /Users/dux/.rvm/gems/ruby-2.6-head/extensions/x86_64-darwin-17/2.6.0/hamlit-2.9.1/gem_make.out

An error occurred while installing hamlit (2.9.1), and Bundler cannot continue. Make sure that gem install hamlit -v '2.9.1' succeeds before bundling.

In Gemfile: lux-fw was resolved to 0.5.20, which depends on hamlit-block was resolved to 0.6.0, which depends on hamlit

k0kubun commented 6 years ago

Thanks to report. The error seems to be caused by the command line tools setup, and in fact I failed to reproduce your issue with a similar environment (Ruby 2.6.0-preview1, macOS 10.13.6, Hamlit 2.9.1).