ruby - Rails will not install on my Mac -
whenever attempt install rails on mac works fine after when attempt see version of rails have, terminal says not have rails installed.
here's see in terminal:
admins-mbp-5:~ programming$ sudo gem install rails building native extensions. take while... error: error installing rails: error: failed build gem native extension. /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb checking if c compiler accepts ... yes checking if c compiler accepts -wno-error=unused-command-line-argument-hard-error-in-future... no building nokogiri using packaged libraries. ----- file "/usr/include/iconv.h" missing in build environment, means haven't installed xcode command line tools properly. install command line tools, try running `xcode-select --install` on terminal , follow instructions. if fails, open xcode.app, select menu "xcode" - "open developer tool" - "more developer tools" open developer site, download installer os version , run it. ----- *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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 remain installed in /library/ruby/gems/2.0.0/gems/nokogiri-1.6.6.2 inspection. results logged /library/ruby/gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out admins-mbp-5:~ programming$ rails --version rails not installed on system. latest version, type: $ sudo gem install rails can rerun "rails" command.
the file "/usr/include/iconv.h" missing in build environment, means haven't installed xcode command line tools properly.
these lines tell haven't install xcode, it's necessary many console utilities.
also, install gems sudo - can cause several problems privileges later. recommend use rvm manage ruby installations, save lot of problems in future.
Comments
Post a Comment