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

mac install error #1572

Closed
yishuiliunian opened this issue Oct 17, 2018 · 1 comment
Closed

mac install error #1572

yishuiliunian opened this issue Oct 17, 2018 · 1 comment

Comments

@yishuiliunian
Copy link

when install on macOS, it occurs an error. the dependency nokogiri can not be installed. shoes dependency an old version. and this version can not be installed on newest macOS.

ruby: 2.5.1
macOS: 10.14

➜  EEScaffold git:(master) ✗ gem install shoes --pre
Building native extensions. This could take a while...
ERROR:  Error installing shoes:
        ERROR: Failed to build gem native extension.

    current directory: /Users/dongzhao/.rvm/gems/ruby-2.5.1/gems/nokogiri-1.6.4.1/ext/nokogiri
/Users/dongzhao/.rvm/rubies/ruby-2.5.1/bin/ruby -r ./siteconf20181017-25664-kuirnv.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
-----
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.

To install Command Line Tools, try running `xcode-select --install` on
terminal and follow the instructions.  If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
version and run it.
-----
*** 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
        --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/dongzhao/.rvm/rubies/ruby-2.5.1/bin/$(RUBY_BASE_NAME)
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include

@jasonrclark
Copy link
Member

Hi @yishuiliunian! So I see two things happening here.

First off, Shoes 4 only works on JRuby and you appear to be installing it on CRuby 2.5.1. If you install a recent JRuby (9.2.0.0 recommended), then you should find that the gem install shoes --pre should work.

Second, the error you're seeing is about one of Shoes' dependencies. If you just do gem install nokogiri I'm betting you'll see the same problem. The text in the middle suggests that you haven't run xcode-select --install to set up some of the necessary Mac development tools for compiling native gems like nokogiri.

Hope this helps out!

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