1. 程式人生 > >ruby 2.1.1 rails 4.2.0 安裝gemset 卻少 mysql ,command line tool for mac osx

ruby 2.1.1 rails 4.2.0 安裝gemset 卻少 mysql ,command line tool for mac osx

Last login: Wed Aug 17 13:13:31 on ttys000
kevindeMacBook-Pro:~ kevin$ gem sources
*** CURRENT SOURCES ***

https://rubygems.org/
kevindeMacBook-Pro:~ kevin$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
kevindeMacBook-Pro:~ kevin$ rvm gemset list

gemsets for ruby-2.1.1 (found in /Users/kevin/.rvm/gems/ruby-2.1.1)
   (default)
   global
=> rails420

kevindeMacBook-Pro:~ kevin$ rails -v
Rails 4.2.0
kevindeMacBook-Pro:~ kevin$ raisl server
-bash: raisl: command not found
kevindeMacBook-Pro:~ kevin$ rvm use 2.1,
[email protected]
ruby-2.1,1 is not installed. To install do: 'rvm install ruby-2.1,1' kevindeMacBook-Pro:~ kevin$ rvm use [email protected] Using /Users/kevin/.rvm/gems/ruby-2.1.1 with gemset rails420 kevindeMacBook-Pro:~ kevin$ rails server Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) [--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile -B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install -G, [--skip-git], [--no-skip-git] # Skip .gitignore file [--skip-keeps], [--no-skip-keeps] # Skip source control .keep files -O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files -S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files [--skip-spring], [--no-skip-spring] # Don't install Spring application preloader -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) # Default: sqlite3 -j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library # Default: jquery -J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files [--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout [--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository [--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem -T, [--skip-test-unit], [--no-skip-test-unit] # Skip Test::Unit files [--rc=RC] # Path to file containing extra configuration options for rails command [--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file Runtime options: -f, [--force] # Overwrite files that already exist -p, [--pretend], [--no-pretend] # Run but do not make any changes -q, [--quiet], [--no-quiet] # Suppress status output -s, [--skip], [--no-skip] # Skip files that already exist Rails options: -h, [--help], [--no-help] # Show this help message and quit -v, [--version], [--no-version] # Show Rails version number and quit Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify. You can specify extra command-line arguments to be used every time 'rails new' runs in the .railsrc configuration file in your home directory. Note that the arguments specified in the .railsrc file don't affect the defaults values shown above in this help message. Example: rails new ~/Code/Ruby/weblog This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. kevindeMacBook-Pro:~ kevin$ bundle install Could not locate Gemfile or .bundle/ directory kevindeMacBook-Pro:~ kevin$ gem update Updating installed gems Updating actionmailer Fetching: activesupport-5.0.0.1.gem (100%) ERROR: Error installing actionmailer: activesupport requires Ruby version >= 2.2.2. Updating actionpack ERROR: Error installing actionpack: activesupport requires Ruby version >= 2.2.2. Updating actionview ERROR: Error installing actionview: activesupport requires Ruby version >= 2.2.2. Updating activejob ERROR: Error installing activejob: activesupport requires Ruby version >= 2.2.2. Updating activemodel ERROR: Error installing activemodel: activesupport requires Ruby version >= 2.2.2. Updating activerecord ERROR: Error installing activerecord: activesupport requires Ruby version >= 2.2.2. Updating bigdecimal Fetching: bigdecimal-1.2.7.gem (100%) Building native extensions. This could take a while... Successfully installed bigdecimal-1.2.7 Parsing documentation for bigdecimal-1.2.7 Installing ri documentation for bigdecimal-1.2.7 Installing darkfish documentation for bigdecimal-1.2.7 Done installing documentation for bigdecimal after 1 seconds Updating executable-hooks Fetching: executable-hooks-1.3.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing executable-hooks: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb /Users/kevin/.rvm/gems/
[email protected]
/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `initialize': Permission denied @ rb_sysopen - /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/fuzzy_match (Errno::EACCES) from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `open' from /Users/kevin/.rvm/gems/
[email protected]
/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:71:in `block in try_to_fix_binstubs' from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:69:in `map' from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:69:in `try_to_fix_binstubs' from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:46:in `block in execute_no_wrapper' from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:44:in `each' from /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:44:in `execute_no_wrapper' from extconf.rb:19:in `<main>' bundler 1.12.5 bundler 1.6.1 byebug 9.0.5 erubis 2.7.0 executable-hooks 1.3.1 fuzzy_match 2.0.4 extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/executable-hooks-1.3.2 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/executable-hooks-1.3.2/gem_make.out Updating fuzzy_match Fetching: fuzzy_match-2.1.0.gem (100%) Successfully installed fuzzy_match-2.1.0 Parsing documentation for fuzzy_match-2.1.0 Installing ri documentation for fuzzy_match-2.1.0 Installing darkfish documentation for fuzzy_match-2.1.0 Done installing documentation for fuzzy_match after 0 seconds Updating io-console Fetching: io-console-0.4.6.gem (100%) Building native extensions. This could take a while... Successfully installed io-console-0.4.6 Parsing documentation for io-console-0.4.6 Installing ri documentation for io-console-0.4.6 Installing darkfish documentation for io-console-0.4.6 Done installing documentation for io-console after 0 seconds Updating json Fetching: json-2.0.2.gem (100%) Building native extensions. This could take a while... Successfully installed json-2.0.2 Parsing documentation for json-2.0.2 Installing ri documentation for json-2.0.2 Installing darkfish documentation for json-2.0.2 Done installing documentation for json after 1 seconds Updating psych Fetching: psych-2.1.0.gem (100%) Building native extensions. This could take a while... Successfully installed psych-2.1.0 Parsing documentation for psych-2.1.0 Installing ri documentation for psych-2.1.0 Installing darkfish documentation for psych-2.1.0 Done installing documentation for psych after 1 seconds Updating rack ERROR: Error installing rack: rack requires Ruby version >= 2.2.2. Updating rails ERROR: Error installing rails: activesupport requires Ruby version >= 2.2.2. Updating rails-dom-testing Fetching: rails-dom-testing-2.0.1.gem (100%) Successfully installed rails-dom-testing-2.0.1 Parsing documentation for rails-dom-testing-2.0.1 Installing ri documentation for rails-dom-testing-2.0.1 Installing darkfish documentation for rails-dom-testing-2.0.1 Done installing documentation for rails-dom-testing after 0 seconds Updating railties ERROR: Error installing railties: activesupport requires Ruby version >= 2.2.2. Updating rdoc Fetching: rdoc-4.2.2.gem (100%) Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! Successfully installed rdoc-4.2.2 Parsing documentation for rdoc-4.2.2 Installing ri documentation for rdoc-4.2.2 Installing darkfish documentation for rdoc-4.2.2 Done installing documentation for rdoc after 13 seconds Updating rubygems-bundler Building native extensions. This could take a while... # In case of problems run the following command to update binstubs: gem regenerate_binstubs Successfully installed executable-hooks-1.3.2 Fetching: rubygems-bundler-1.4.4.gem (100%) Successfully installed rubygems-bundler-1.4.4 Parsing documentation for executable-hooks-1.3.2 Installing ri documentation for executable-hooks-1.3.2 Installing darkfish documentation for executable-hooks-1.3.2 Parsing documentation for rubygems-bundler-1.4.4 Installing ri documentation for rubygems-bundler-1.4.4 Installing darkfish documentation for rubygems-bundler-1.4.4 Done installing documentation for executable-hooks, rubygems-bundler after 0 seconds Updating test-unit Fetching: power_assert-0.3.0.gem (100%) Successfully installed power_assert-0.3.0 Fetching: test-unit-3.2.1.gem (100%) Successfully installed test-unit-3.2.1 Parsing documentation for power_assert-0.3.0 Installing ri documentation for power_assert-0.3.0 Installing darkfish documentation for power_assert-0.3.0 Parsing documentation for test-unit-3.2.1 Installing ri documentation for test-unit-3.2.1 Installing darkfish documentation for test-unit-3.2.1 Done installing documentation for power_assert, test-unit after 3 seconds Gems updated: activesupport activesupport activesupport activesupport activesupport activesupport bigdecimal executable-hooks fuzzy_match io-console json psych rack activesupport rails-dom-testing activesupport rdoc executable-hooks rubygems-bundler power_assert test-unit kevindeMacBook-Pro:~ kevin$ rails -v Rails 4.2.0 kevindeMacBook-Pro:~ kevin$ ruby -v ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] kevindeMacBook-Pro:~ kevin$ cd /Volumes/WORK/CodingNetHeiPis/dangqi kevindeMacBook-Pro:dangqi kevin$ rails sever Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. kevindeMacBook-Pro:dangqi kevin$ ruby -v ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] kevindeMacBook-Pro:dangqi kevin$ rvm use [email protected] Using /Users/kevin/.rvm/gems/ruby-2.1.1 with gemset rails420 kevindeMacBook-Pro:dangqi kevin$ rails server Could not find nokogiri-1.6.6.2 in any of the sources Run `bundle install` to install missing gems. kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ Could not verify the SSL certificate for https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. kevindeMacBook-Pro:dangqi kevin$ gem sources *** CURRENT SOURCES *** https://rubygems.org/ kevindeMacBook-Pro:dangqi kevin$ gemfile sources -bash: gemfile: command not found kevindeMacBook-Pro:dangqi kevin$ Gemfile sources -bash: Gemfile: command not found kevindeMacBook-Pro:dangqi kevin$ sudo gem sources Password: *** CURRENT SOURCES *** https://rubygems.org/ kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -r https://rubygems.org/ https://rubygems.org/ removed from sources kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -a https://ruby.ruby-china.org/ Error fetching https://ruby.ruby-china.org/: no such name (https://ruby.ruby-china.org/specs.4.8.gz) kevindeMacBook-Pro:dangqi kevin$ sudo gem sources -a https://gems.ruby-china.org/ https://gems.ruby-china.org/ added to sources kevindeMacBook-Pro:dangqi kevin$ sudo gem sources *** CURRENT SOURCES *** https://gems.ruby-china.org/ kevindeMacBook-Pro:dangqi kevin$ gem sources *** CURRENT SOURCES *** https://gems.ruby-china.org/ kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ Could not verify the SSL certificate for https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. kevindeMacBook-Pro:dangqi kevin$ rails server Could not find nokogiri-1.6.6.2 in any of the sources Run `bundle install` to install missing gems. kevindeMacBook-Pro:dangqi kevin$ curcurl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem -bash: curcurl: command not found kevindeMacBook-Pro:dangqi kevin$ curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/etc/openssl/cert.pem % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 304 100 304 0 0 203 0 0:00:01 0:00:01 --:--:-- 203 kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ Could not verify the SSL certificate for https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. kevindeMacBook-Pro:dangqi kevin$ gem sources *** CURRENT SOURCES *** https://gems.ruby-china.org/ kevindeMacBook-Pro:dangqi kevin$ sudo gem sources Password: *** CURRENT SOURCES *** https://gems.ruby-china.org/ kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ Could not verify the SSL certificate for https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. kevindeMacBook-Pro:dangqi kevin$ open .rvm The file /Volumes/WORK/CodingNetHeiPis/dangqi/.rvm does not exist. kevindeMacBook-Pro:dangqi kevin$ open ./rvm The file /Volumes/WORK/CodingNetHeiPis/dangqi/rvm does not exist. kevindeMacBook-Pro:dangqi kevin$ open /usr/bin/ kevindeMacBook-Pro:dangqi kevin$ rvm pkg install openssl Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'. Checking requirements for osx. Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date. Requirements installation successful. Fetching openssl-1.0.1i.tar.gz to /Users/kevin/.rvm/archives % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4318k 100 4318k 0 0 545k 0 0:00:07 0:00:07 --:--:-- 955k Extracting openssl to /Users/kevin/.rvm/src/openssl-1.0.1i.... Configuring openssl in /Users/kevin/.rvm/src/openssl-1.0.1i....................- Compiling openssl in /Users/kevin/.rvm/src/openssl-1.0.1i......................- Installing openssl to /Users/kevin/.rvm/usr....................................| Please note that it's required to reinstall all rubies: rvm reinstall all --force Updating openssl certificates.... kevindeMacBook-Pro:dangqi kevin$ rails server Could not find nokogiri-1.6.6.2 in any of the sources Run `bundle install` to install missing gems. kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ ^Z [1]+ Stopped bundle install kevindeMacBook-Pro:dangqi kevin$ where gemfile -bash: where: command not found kevindeMacBook-Pro:dangqi kevin$ gemfile -h -bash: gemfile: command not found kevindeMacBook-Pro:dangqi kevin$ gem sources *** CURRENT SOURCES *** https://gems.ruby-china.org/ kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching source index from https://ruby.taobao.org/ Could not verify the SSL certificate for https://ruby.taobao.org/quick/Marshal.4.8/nokogiri-1.6.6.2.gemspec.rz. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching gem metadata from https://gems.ruby-china.org/............ Fetching version metadata from https://gems.ruby-china.org/.. Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.8.2 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile 0.6.2 Using rack 1.6.4 Installing mime-types 2.4.3 Using arel 6.0.3 Installing awesome_print 1.6.1 Installing bcrypt 3.1.10 with native extensions Installing coderay 1.1.0 Using debug_inspector 0.0.2 Using bundler 1.12.5 Installing cancancan 1.13.1 Installing hitimes 1.2.3 with native extensions Installing chinese_pinyin 1.0.0 Using thor 0.19.1 Installing connection_pool 2.2.0 Installing dotenv 2.0.2 Installing request_store 1.2.0 Installing multipart-post 2.0.0 Installing multi_xml 0.5.5 Installing jwt 1.5.2 Installing open4 1.3.4 Installing mina-scp 0.1.2 Installing multi_json 1.11.2 Installing mysql2 0.3.20 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no ----- libmysqlclient is missing. Trying again with extra runtime libraries... ----- checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for main() in -lnsl... no checking for main() in -lmygcc... no ----- libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again. ----- *** 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/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib --with-nsllib --without-nsllib --with-mygcclib --without-mygcclib extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/mysql2-0.3.20 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out Installing netrc 0.11.0 Installing oauth 0.4.7 Installing puma 2.15.3 with native extensions Installing ruby-hmac 0.4.0 Installing rails_param 0.9.0 Installing redis 3.2.1 Installing rufus-scheduler 3.1.8 Installing settingslogic 2.0.9 Installing faker 1.5.0 Using tzinfo 1.2.2 Installing nokogiri 1.6.6.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/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=/Users/kevin/.rvm/rubies/ruby-2.1.1/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 extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/nokogiri-1.6.6.2 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/nokogiri-1.6.6.2/gem_make.out Using rack-test 0.6.3 Installing sprockets 3.4.0 Installing mail 2.6.3 Installing better_errors 2.1.1 Installing binding_of_caller 0.7.2 with native extensions Installing timers 4.1.1 Installing faraday 0.9.2 Installing httparty 0.13.7 Installing mina 0.3.7 An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.20'` succeeds before bundling. kevindeMacBook-Pro:dangqi kevin$ gem list *** LOCAL GEMS *** actionmailer (4.2.0) actionpack (4.2.0) actionview (4.2.0) activejob (4.2.0) activemodel (4.2.0) activerecord (4.2.0) activesupport (4.2.6, 4.2.0) arel (7.1.1, 6.0.3) awesome_print (1.6.1) bcrypt (3.1.10) better_errors (2.1.1) bigdecimal (1.2.7, 1.2.4) binding_of_caller (0.7.2) builder (3.2.2) bundler (1.12.5, 1.6.1) bundler-unload (1.0.2) byebug (9.0.5) cancancan (1.13.1) chinese_pinyin (1.0.0) coderay (1.1.0) coffee-script-source (1.10.0) concurrent-ruby (1.0.3.pre3, 1.0.2) connection_pool (2.2.0) crass (1.0.2) debug_inspector (0.0.2) dotenv (2.0.2) erubis (2.7.0) execjs (2.7.0) executable-hooks (1.3.2, 1.3.1) faker (1.5.0) faraday (0.9.2) ffi (1.9.14) fuzzy_match (2.1.0, 2.0.4) gem-wrappers (1.2.7, 1.2.4) globalid (0.3.7) hitimes (1.2.3) httparty (0.13.7) i18n (0.7.0) io-console (0.4.6, 0.4.2) json (2.0.2, 1.8.3, 1.8.1) jwt (1.5.2) loofah (2.1.0.rc2) mail (2.6.4, 2.6.3) method_source (0.8.2) mime-types (3.1, 2.4.3) mime-types-data (3.2016.0521) mina (0.3.7) mina-scp (0.1.2) mini_portile (0.6.2) mini_portile2 (2.1.0) minitest (5.9.0, 5.8.2, 4.7.5) multi_json (1.12.1, 1.11.2) multi_xml (0.5.5) multipart-post (2.0.0) nap (1.1.0) netrc (0.11.0) nio4r (1.2.1) nokogiri (1.6.8) oauth (0.4.7) open4 (1.3.4) pkg-config (1.1.7) power_assert (0.3.0) psych (2.1.0, 2.0.3) puma (3.6.0, 2.15.3) rack (1.6.4) rack-test (0.6.3) rails (4.2.0) rails-deprecated_sanitizer (1.0.3) rails-dom-testing (2.0.1, 1.0.7) rails-html-sanitizer (1.0.3) rails_param (0.9.0) railties (4.2.0) rake (11.2.2, 10.4.2, 10.1.0) rb-fsevent (0.9.7) rdoc (4.2.2, 4.1.0) redis (3.2.1) request_store (1.2.0) ruby-hmac (0.4.0) rubygems-bundler (1.4.4, 1.4.3) rufus-scheduler (3.1.8) rvm (1.11.3.9) sass (3.4.22) settingslogic (2.0.9) spring (1.7.2) sprockets (4.0.0.beta2, 3.4.0) sprockets-rails (3.1.1) sqlite3 (1.3.11) test-unit (3.2.1, 2.1.1.0) thor (0.19.1) thread_safe (0.3.5) tilt (2.0.5) timers (4.1.1) turbolinks-source (5.0.0) tzinfo (1.2.2) websocket-extensions (0.1.2) kevindeMacBook-Pro:dangqi kevin$ rails server Could not find nokogiri-1.6.6.2 in any of the sources Run `bundle install` to install missing gems. kevindeMacBook-Pro:dangqi kevin$ bundle install Fetching gem metadata from https://gems.ruby-china.org/............ Fetching version metadata from https://gems.ruby-china.org/.. Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.8.2 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile 0.6.2 Using rack 1.6.4 Using mime-types 2.4.3 Using arel 6.0.3 Using awesome_print 1.6.1 Using bcrypt 3.1.10 Using coderay 1.1.0 Using debug_inspector 0.0.2 Using bundler 1.12.5 Using cancancan 1.13.1 Using hitimes 1.2.3 Using chinese_pinyin 1.0.0 Using thor 0.19.1 Using connection_pool 2.2.0 Using dotenv 2.0.2 Using request_store 1.2.0 Using multipart-post 2.0.0 Using multi_xml 0.5.5 Using jwt 1.5.2 Using open4 1.3.4 Using mina-scp 0.1.2 Using multi_json 1.11.2 Installing mysql2 0.3.20 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no ----- libmysqlclient is missing. Trying again with extra runtime libraries... ----- checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for main() in -lnsl... no checking for main() in -lmygcc... no ----- libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again. ----- *** 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/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib --with-nsllib --without-nsllib --with-mygcclib --without-mygcclib extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/mysql2-0.3.20 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out Using netrc 0.11.0 Using oauth 0.4.7 Using puma 2.15.3 Using ruby-hmac 0.4.0 Using rails_param 0.9.0 Using redis 3.2.1 Using rufus-scheduler 3.1.8 Using settingslogic 2.0.9 Using faker 1.5.0 Using tzinfo 1.2.2 Installing nokogiri 1.6.6.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/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=/Users/kevin/.rvm/rubies/ruby-2.1.1/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 extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/nokogiri-1.6.6.2 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/nokogiri-1.6.6.2/gem_make.out Using rack-test 0.6.3 Using sprockets 3.4.0 Using mail 2.6.3 Using better_errors 2.1.1 Using binding_of_caller 0.7.2 Using timers 4.1.1 Using faraday 0.9.2 Using httparty 0.13.7 Using mina 0.3.7 An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.20'` succeeds before bundling. kevindeMacBook-Pro:dangqi kevin$ gem install mysql2 -v 0.3.20 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no ----- libmysqlclient is missing. Trying again with extra runtime libraries... ----- checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for main() in -lnsl... no checking for main() in -lmygcc... no ----- libmysqlclient is missing. You may need to 'brew install mysql' or 'port install mysql', and try again. ----- *** 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/kevin/.rvm/rubies/ruby-2.1.1/bin/ruby --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib --with-nsllib --without-nsllib --with-mygcclib --without-mygcclib extconf failed, exit code 1 Gem files will remain installed in /Users/kevin/.rvm/gems/[email protected]/gems/mysql2-0.3.20 for inspection. Results logged to /Users/kevin/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/mysql2-0.3.20/gem_make.out kevindeMacBook-Pro:dangqi kevin$ brew install mysql ==> Downloading https://homebrew.bintray.com/bottles/mysql-5.7.14.el_capitan.bot ######################################################################## 100.0% ==> Pouring mysql-5.7.14.el_capitan.bottle.tar.gz ==> /usr/local/Cellar/mysql/5.7.14/bin/mysqld --initialize-insecure --user=kevin ==> Caveats We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation To connect run: mysql -uroot To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start ==> Summary

相關推薦

ruby 2.1.1 rails 4.2.0 安裝gemset mysql command line tool for mac osx

Last login: Wed Aug 17 13:13:31 on ttys000 kevindeMacBook-Pro:~ kevin$ gem sources *** CURRENT SOURCES *** https://rubygems.org/ kevinde

4.1 df命令 4.2 du命令 4.3/4.4 磁盤分區

4.1 df命令 4.2 du命令 4.3/4.4 磁盤分區4.1 df命令4.2 du命令4.3/4.4 磁盤分區擴展學習 parted分區gpt格式 http://www.apelearn.com/bbs/thread-7243-1-1.html4.1 df命令df -h查看swapdf -i 查看系統使

三周第四次課 4.1 df命令 4.2 du命令 4.3/4.4 磁盤分區

df du 磁盤分區 4.1 df命令1、df命令查看磁盤情況命令查看inodes4.2 du命令1、du命令du命令查看目錄的大小4.3/4.4 磁盤分區磁盤分區使用fdisk 命令進行查看重啟後能識別出硬盤三周第四次課 4.1 df命令 4.2 du命令 4.3/4.4 磁盤分區

三周第四次課 4.1 df命令 4.2 du命令 4.3/4.4 磁盤分區 擴展學習 part

學習 打卡三周第四次課4.1 df命令4.2 du命令4.3/4.4 磁盤分區擴展學習 parted分區gpt格式 http://www.apelearn.com/bbs/thread-7243-1-1.html # df 查看文件系統的使用情況 # free 查看swap分區 #

Atitit 軟體方法論法典概論 attilax著作 目錄 1. 基本法通則總則 2 2. 流程方法 3 2.1. 工具鏈建設法 4 2.2. 程式碼編寫法 4 2.3. 註釋法 4 2.4. 文件法

Atitit 軟體方法論法典概論 attilax著作   目錄 1. 基本法通則總則 2 2. 流程方法 3 2.1. 工具鏈建設法 4 2.2. 程式碼編寫法 4 2.3. 註釋法 4 2.4. 文件法 4 2.5. 原始碼管理法 4 2.6. 開

目錄 1.1. JVM記憶體模型總體架構圖 1 1.2. JAVA堆 2 1.3. 方法區 元空間(Metaspace) 2 1.4. 虛擬機器棧 3 1.5. 本地方法區 4 2. 垃圾回收演算法 4 2

目錄 1.1. JVM記憶體模型總體架構圖 1 1.2. JAVA堆 2 1.3. 方法區 元空間(Metaspace) 2 1.4. 虛擬機器棧 3 1.5. 本地方法區 4 2. 垃圾回收演算法 4 2.1. 標記-清除演算法(Mark-Sweep) 4

osg3.2.1+vs2010++QT5.4.2+win7 64編譯方法

(一) VS2010     VS2010的安裝網上教程很多,不再敘述。 (二) Qt     在VS中開發程式,需要下載Qt安裝包和Qt的VS外掛。     我用的版本是Qt5.4.2 for Windows(VS2010,OpenGL)、VisualStud

節目--標籤 0 , 1矩陣的建立(0代表節目有這個標籤1代表沒有這個標籤)

原始的節目及所包含的標籤型別對應的格式如下: import pandas as pd import numpy as np import os os.chdir('E:/廣電大資料營銷推薦專案案例/資料清洗/電視節目資訊資料預處理') tv = pd.read_csv('./wordsb

FreeSwitch 1.9.0 安裝配置及使用MySQL管理賬戶並實現視訊通話

最近因為專案上的需要入手了FreeSwitch。 之前嘗試過Asterisk,但個人感覺對H264的支援不是特別友好,所以用才選擇了FreeSwitch。 安裝FreeSwitch前的準備工作: 1、VMare上安裝一個CentOS的虛擬機器 安裝CentOS 7:

QT環境搭建: QT-4.8.6在windows下的使用 -(1)QT-4.8.6安裝配置使用

參考:    方案1-2  Qt4.8.6/Qt4.8.7 for Windows(Qt Creator+MinGW)    這裡我增加了QT編譯的過程,不過還是對該文件的原編寫者表示感謝!     玩QT一段時間了,一直都是在linux下的環境,前幾天突然想著可不可以

解決/usr/local/lib/libglog.so.0: error adding symbols: DSO missing from command line

轉自 https://blog.csdn.net/u010987458/article/details/72235408 第一步: // 檢視目錄 /usr/lib 或 /usr/local/lib的目錄下是否存在libglog.so.0 $ find libglog* libglog

Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安裝手冊(一抹曦陽)

oracl track microsoft sun msu ica http net ref Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安裝手冊(一抹曦陽).pdf下載地址 ,step by step

11.2.0.1升級到11.2.0.4報錯之中的一個:UtilSession failed: Patch 9413827

popu undle util all weight 文檔 fail sta ack UtilSession failed: Patch 9413827 requ

Hollong 低功耗藍芽4.0/4.1/4.2 BLE Sniffer協議分析儀

名稱:緯圖Hollong BLE藍芽 監控分析儀 品牌:ViewTool/緯圖 型號:VTH201A 典型應用: - 抓取BLE藍芽傳輸資料,分析資料傳輸協議; - 實時捕獲、顯示、分析、過濾協議資料,減少除錯時間,加速產品進入市場; - 協助開發除錯BLE相關

Hollong 藍芽4.0/4.1/4.2 BLE協議監控分析儀

品牌:ViewTool/緯圖型號:VTH201A   典型應用: - 抓取BLE藍芽傳輸資料,分析資料傳輸協議; - 協助開發除錯BLE相關軟體,韌體; - 實時捕獲、顯示、解析、過濾和偵測協議錯誤,減少除錯時間,加速產品進入市場; - 幫助學習BLE藍芽傳輸協議; &nb

藍芽協議4.04.14.2的比較

SIG在2010年釋出了4.0的specification,2013年釋出了4.1的specification,一年以後,在2014年又釋出了4.2的specification,specification的調整很快。從4.0版本起,革命性的加入了BLE協議部分,同時將2.1

Oracle 10 2 0 1 升級到 10 2 0 4

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

Windows10離線安裝Anaconda3-4.2.0-Windows-x86_64.exe(對應python3.5)和tensorflow_gpu-1.7.0-cp35-cp35m-win_amd

Windows10離線安裝Anaconda3-4.2.0-Windows-x86_64.exe(對應python3.5)和tensorflow_gpu-1.7.0-cp35-cp35m-win_amd64.whl(對應GPU版本的tensorflow,35表示著對應python3.5) 安裝這個

Amabri 2.6.1.5 +HDP-2.6.4.0部署文件

最近兩天公司要求部署Ambari叢集,我在網上找了一些資料,但是踩了許許多多的坑,我決定整理一下寫一篇部落格,與大家共享,如果有問題大家可以一起討論 環境:Amabri 2.6.1.5 +HDP-2.6.4.0、騰訊雲主機、Centos7.4   1、滿足最低系統要求 1.