Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native is broken for JRuby 9.1.14.0 + Mac OS Sierra 10.3.1 #124

Open
taylorsmithgg opened this issue Nov 17, 2017 · 1 comment
Open

Native is broken for JRuby 9.1.14.0 + Mac OS Sierra 10.3.1 #124

taylorsmithgg opened this issue Nov 17, 2017 · 1 comment

Comments

@taylorsmithgg
Copy link

Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using bundler 1.16.0
Fetching charlock_holmes 0.7.5
Installing charlock_holmes 0.7.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/gems/shared/gems/charlock_holmes-0.7.5/ext/charlock_holmes
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/bin/jruby -r
./siteconf20171117-27522-dsvn21.rb extconf.rb
--with-icu-dir=/usr/local/opt/icu4c
--with-cxxflags='-Wno-reserved-user-defined-literal -std=c++11'
You have to install development tools first.

try_do at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:456
try_link0 at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:541
try_link at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:556
try_func at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:765
block in have_library at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:997
block in checking_for at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:942
block in postpone at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:350
open at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:320
block in postpone at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:350
open at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:320
postpone at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:346
checking_for at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:941
have_library at
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:992
                 <main> at extconf.rb:30
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/bin/jruby
	--with-icu-dir
	--with-icu-include
	--without-icu-include=${icu-dir}/include
	--with-icu-lib
	--without-icu-lib=${icu-dir}/lib
	--with-icui18nlib
	--without-icui18nlib

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/gems/shared/extensions/universal-java-9/2.3.0/charlock_holmes-0.7.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/gems/shared/gems/charlock_holmes-0.7.5
for inspection.
Results logged to
/Users/taylorsmith/.rbenv/versions/jruby-9.1.14.0/lib/ruby/gems/shared/extensions/universal-java-9/2.3.0/charlock_holmes-0.7.5/gem_make.out

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

In Gemfile:
  github-linguist was resolved to 5.3.2, which depends on
    charlock_holmes

Seems to work fine on system install. (ruby 2.3.3p222)

Already tried the solutions from the other threads to no avail:

  • bundle config build.charlock_holmes --with-icu-dir=/usr/local/opt/icu4c --with-cxxflags=\'-Wno-reserved-user-defined-literal -std=c++11\'
  • xcode-select --install
@shallowclouds
Copy link

same issue

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

No branches or pull requests

2 participants