nilbus / pinewood-derby

Pinewood derby status board & sensor driver
Other
17 stars 9 forks source link

Gems error on OS X with 2.4... #59

Closed everetteallen closed 9 years ago

everetteallen commented 9 years ago

So pulled down your latest tonight and I am getting this GEMS issue. Ideas?

bundle install
Fetching source index from https://rubygems.org/
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.5.1
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Installing activesupport 4.2.0
Using builder 3.2.2
Using erubis 2.7.0
Installing mini_portile 0.6.2

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

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby 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
    --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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build

Gem files will remain installed in /var/folders/m9/b383yhrj2mgf963rnymwr4980000gn/T/bundler20150210-922-maj383/nokogiri-1.6.6.2/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /var/folders/m9/b383yhrj2mgf963rnymwr4980000gn/T/bundler20150210-922-maj383/nokogiri-1.6.6.2/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.
everetteallen commented 9 years ago

k looks like I needed to fix my Xcode trying that

nilbus commented 9 years ago

Correct, you need xcode command line tools. I am debating about whether or not this should be included in the readme. I'm leaning toward not, since the error output tells you what to do. What do you think?

everetteallen commented 9 years ago

I believe in providing as much info as possible so I suggest noting the error and the text it returns in the docs so folks get reinforcement of what to expect.

On 2/10/15 9:47 PM, Edward Anderson wrote:

Correct, you need xcode command line tools. I am debating about whether or not this should be included in the readme. I'm leaning toward not, since the error output tells you what to do. What do you think?

— Reply to this email directly or view it on GitHub https://github.com/nilbus/pinewood-derby/issues/59#issuecomment-73826356.

Everette Gray Allen Systems Programmer II Office of Information Technology Macintosh Support Specialist 2620 Hillsborough St, Campus Box 7109 Raleigh, NC 27695-7109 AIM: EveretteAlln 919-515-4558 Everette_Allen@ncsu.edu