Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 调用bundle安装(Ruby on Rails安装)后出错_Ruby On Rails_Ruby_Terminal_Gem - Fatal编程技术网

Ruby on rails 调用bundle安装(Ruby on Rails安装)后出错

Ruby on rails 调用bundle安装(Ruby on Rails安装)后出错,ruby-on-rails,ruby,terminal,gem,Ruby On Rails,Ruby,Terminal,Gem,我试图初始化rails应用程序,但遇到了一些问题。运行时:rails新建-Mhttps://raw.github.com/RailsApps/rails-composer/master/composer.rb 我遇到了这个问题: Could not find gem 'quiet_assets (>= 0) ruby' in the gems available on this machine. Run `bundle install` to install missing gems.

我试图初始化rails应用程序,但遇到了一些问题。运行时:
rails新建-Mhttps://raw.github.com/RailsApps/rails-composer/master/composer.rb

我遇到了这个问题:

Could not find gem 'quiet_assets (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
当我尝试运行bundle安装时,会出现以下错误:

An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling.
当我运行该命令时,我得到:

ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.
有什么想法吗?我有下面的完整输出(从问题开始的地方,composer尝试安装gems包的地方):

composer安装gems。这需要一段时间。
运行捆绑包安装--不从“”进行生产
从中获取gem元数据https://rubygems.org/........
从中获取附加元数据https://rubygems.org/..
正在解析依赖项。。。
使用rake 10.3.2
使用i18n 0.6.11
使用json 1.8.1
使用minitest 5.4.0
使用线程安全0.3.4
使用tzinfo 1.2.1
使用activesupport 4.1.4
使用builder 3.2.2
使用erubis 2.7.0
使用actionview 4.1.4
使用机架1.5.2
使用机架测试0.6.2
使用actionpack 4.1.4
使用mime类型1.25.1
使用polyglot 0.3.5
使用treetop 1.4.15
使用mail 2.5.4
使用actionmailer 4.1.4
使用ActiveModel4.1.4
使用arel 5.0.1.20140414130214
使用activerecord 4.1.4
使用可寻址2.3.6
使用bcrypt 3.1.7
使用coderay 1.1.0
使用更好的错误1.1.0
使用debug_inspector 0.0.2
使用调用方0.7.2的绑定
使用sass 3.2.19
使用引导sass 3.2.0.1
使用bundler 1.6.2
使用colorize 0.7.3
使用NetSSH2.9.1
使用NetSCP1.2.1
使用sshkit 1.5.1
使用capistrano 3.0.1
使用capistrano捆绑机1.1.2
使用capistrano rails 1.1.0
使用capistrano rails控制台0.2.0
使用capistrano rvm 0.1.1
使用mini_portile 0.6.0
使用nokogiri 1.6.3.1
使用XPath2.0.0
使用水豚2.4.1
使用计时器1.1.0
使用赛璐珞0.15.2
使用ffi 1.9.3
使用childprocess 0.5.3
使用coffee脚本源代码1.7.1
使用execjs2.2.1
使用coffee脚本2.3.0
使用thor 0.19.1
使用扶手4.1.4
使用coffee rails 4.0.1
使用database_cleaner 1.3.0
使用orm_适配器0.5.0
使用典狱长1.2.3
使用Desive 3.2.4
使用diff lcs 1.2.5
使用factory_girl 4.4.0
使用工厂女孩轨道4.4.1
使用faker 1.4.2
使用1.2.3
使用multi_json 1.10.1
使用tilt 1.4.1
使用链轮2.11.0
使用链轮导轨2.1.3
使用rails 4.1.4
使用figaro 1.0.0.rc1
使用formatador 0.2.5
使用rb fsevent 0.9.4
使用rb inotify 0.9.5
使用listen 2.7.9
使用伐木工1.0.9
使用方法_来源0.8.2
使用slop 3.6.0
使用撬杆0.10.0
使用防护罩2.6.1
使用guard bundler 2.0.0
使用护栏0.5.3
使用rspec支持3.0.3
使用rspec core 3.0.3
使用rspec期望值3.0.3
使用rspec模拟3.0.3
使用rspec 3.0.0
使用防护罩rspec 4.3.1
使用HAML4.1.0.beta.1
使用sexp_处理器4.4.3
使用ruby_解析器3.1.3
使用haml2slim 0.4.7
使用高压2.2.1
使用hpricot 0.8.6
使用html2haml 1.0.1
使用轮毂1.12.2
使用拦截0.5
使用JBuilder2.1.3
使用jquery rails 3.1.1
使用launchy 2.4.2
Gem::Ext::BuildError:错误:无法生成Gem本机扩展。
/Users/*********/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
正在检查ruby/thread.h。。。对
正在检查ruby/thread.h中是否有rb\u线程调用\u而没有\u gvl()。。。对
正在检查rb\u线程\u阻塞\u区域()。。。对
正在检查rb_wait_for_single_fd()。。。对
正在检查rb_hash_dup()。。。对
正在检查rb_intern3()。。。对
正在-lmysqlclient中检查mysql_query()。。。不
正在检查-lm中的main()。。。对
正在-lmysqlclient中检查mysql_query()。。。不
正在检查-lz中的main()。。。对
正在-lmysqlclient中检查mysql_query()。。。不
正在-lsocket中检查main()。。。不
正在-lmysqlclient中检查mysql_query()。。。不
正在检查-lnsl中的main()。。。不
正在-lmysqlclient中检查mysql_query()。。。不
正在检查-lmygcc中的main()。。。不
正在-lmysqlclient中检查mysql_query()。。。不
***extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少必要的
库和/或标题。有关详细信息,请查看mkmf.log文件。你可以
需要配置选项。
提供的配置选项:
--使用opt dir
--不带opt dir
--选择包含
--不带opt include=${opt dir}/include
--使用opt lib
--不带opt lib=${opt dir}/lib
--用make prog
--没有make prog
--srcdir=。
--库尔迪尔
--ruby=/Users/*********/.rvm/rubies/ruby-2.1.2/bin/ruby
--使用mysql目录
--没有mysql目录
--使用mysql包括
--不带mysql include=${mysql dir}/include
--使用mysql库
--没有mysql-lib=${mysql-dir}/lib
--使用mysql配置
--没有mysql配置
--使用mysql目录
--没有mysql目录
--使用mysql包括
--不带mysql include=${mysql dir}/include
--使用mysql库
--没有mysql-lib=${mysql-dir}/lib
--使用mysqlclientlib
--没有mysqlclientlib
--使用mlib
--没有mlib
--使用mysqlclientlib
--没有mysqlclientlib
--与zlib
--没有zlib
--使用mysqlclientlib
--没有mysqlclientlib
--用socketlib
--没有socketlib
--使用mysqlclientlib
--没有mysqlclientlib
--与nsllib合作
--没有nsllib
--使用mysqlclientlib
--没有mysqlclientlib
--用mygcclib
--没有mygcclib
--使用mysqlclientlib
--没有mysqlclientlib
extconf失败,退出代码1
Gem文件将继续安装在/Users/*********/.rvm/gems/ruby-2.1中。2@myapp/gems/mysql2-0.3.16进行检查。
结果记录到/Users/************/.rvm/gems/ruby-2.1。2@myapp/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.16/gem_make.out
安装mysql2(0.3.16)时出错,绑定程序无法继续。
在绑定之前,请确保'gem install mysql2-v'0.3.16'成功。
编写器正在更新gem路径。
警告:Gem::Specification.reset期间未解析的规范:
小型试验(~>5.1)
耙(大于等于0.8.7)
警告:清除未解析的规范。
如果这导致问题,请报告错误。
作曲家舞台
composer  Installing gems. This will take a while.
         run    bundle install --without production from "."
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.0
Using thread_safe 0.3.4
Using tzinfo 1.2.1
Using activesupport 4.1.4
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.4
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.4
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.4
Using activemodel 4.1.4
Using arel 5.0.1.20140414130214
Using activerecord 4.1.4
Using addressable 2.3.6
Using bcrypt 3.1.7
Using coderay 1.1.0
Using better_errors 1.1.0
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using sass 3.2.19
Using bootstrap-sass 3.2.0.1
Using bundler 1.6.2
Using colorize 0.7.3
Using net-ssh 2.9.1
Using net-scp 1.2.1
Using sshkit 1.5.1
Using capistrano 3.0.1
Using capistrano-bundler 1.1.2
Using capistrano-rails 1.1.0
Using capistrano-rails-console 0.2.0
Using capistrano-rvm 0.1.1
Using mini_portile 0.6.0
Using nokogiri 1.6.3.1
Using xpath 2.0.0
Using capybara 2.4.1
Using timers 1.1.0
Using celluloid 0.15.2
Using ffi 1.9.3
Using childprocess 0.5.3
Using coffee-script-source 1.7.1
Using execjs 2.2.1
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.1.4
Using coffee-rails 4.0.1
Using database_cleaner 1.3.0
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.2.4
Using diff-lcs 1.2.5
Using factory_girl 4.4.0
Using factory_girl_rails 4.4.1
Using faker 1.4.2
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.1.3
Using rails 4.1.4
Using figaro 1.0.0.rc1
Using formatador 0.2.5
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using listen 2.7.9
Using lumberjack 1.0.9
Using method_source 0.8.2
Using slop 3.6.0
Using pry 0.10.0
Using guard 2.6.1
Using guard-bundler 2.0.0
Using guard-rails 0.5.3
Using rspec-support 3.0.3
Using rspec-core 3.0.3
Using rspec-expectations 3.0.3
Using rspec-mocks 3.0.3
Using rspec 3.0.0
Using guard-rspec 4.3.1
Using haml 4.1.0.beta.1
Using sexp_processor 4.4.3
Using ruby_parser 3.1.3
Using haml2slim 0.4.7
Using high_voltage 2.2.1
Using hpricot 0.8.6
Using html2haml 1.0.1
Using hub 1.12.2
Using interception 0.5
Using jbuilder 2.1.3
Using jquery-rails 3.1.1
Using launchy 2.4.2

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/**********/.rvm/rubies/ruby-2.1.2/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
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 mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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/*********/.rvm/rubies/ruby-2.1.2/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-mysqlclientlib
    --without-mysqlclientlib
    --with-nsllib
    --without-nsllib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-mygcclib
    --without-mygcclib
    --with-mysqlclientlib
    --without-mysqlclientlib

extconf failed, exit code 1

Gem files will remain installed in /Users/**********/.rvm/gems/ruby-2.1.2@myapp/gems/mysql2-0.3.16 for inspection.
Results logged to /Users/************/.rvm/gems/ruby-2.1.2@myapp/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.16/gem_make.out
An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling.
    composer  Updating gem paths.
WARN: Unresolved specs during Gem::Specification.reset:
      minitest (~> 5.1)
      rake (>= 0.8.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
    composer  Stage Two (running recipe 'stage_two' callbacks).
    composer  importing html2haml and haml2slim conversion tools
locale
gems
        gems  recipe stage two
        gems  configuring database
      remove    config/database.yml
      create    config/database.yml
      option  Username for MySQL? (leave blank to use the app name) root
        gsub    config/database.yml
      option  Password for MySQL user root? root
        gsub    config/database.yml
        gems  set config/database.yml for username/password root/root
        gsub    config/database.yml
        gsub    config/database.yml
        gsub    config/database.yml
      option  Okay to drop all existing databases named myapp? 'No' will abort immediately! (y/n) n
https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1256:in `block in apply': aborted at user's request (RuntimeError)
    from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2127:in `call'
    from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2127:in `block in apply'
    from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2127:in `each'
    from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2127:in `apply'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/actions.rb:223:in `instance_eval'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/actions.rb:223:in `apply'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/railties-4.1.4/lib/rails/generators/app_base.rb:144:in `apply_rails_template'
    from (eval):1:in `apply_rails_template'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/************/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/railties-4.1.4/lib/rails/commands/application.rb:17:in `<top (required)>'
    from /Users/*************/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/*************/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/railties-4.1.4/lib/rails/cli.rb:14:in `<top (required)>'
    from /Users/*************/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/*************/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/*************/.rvm/gems/ruby-2.1.2@myapp/gems/railties-4.1.4/bin/rails:9:in `<top (required)>'
    from /Users/************/.rvm/gems/ruby-2.1.2@myapp/bin/rails:23:in `load'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/bin/rails:23:in `<main>'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/bin/ruby_executable_hooks:15:in `eval'
    from /Users/***********/.rvm/gems/ruby-2.1.2@myapp/bin/ruby_executable_hooks:15:in `<main>'
:myapp ***********$ An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
-bash: syntax error near unexpected token `('
:myapp ***********$ rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
Could not find gem 'quiet_assets (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
:myapp ***********$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.0
Using thread_safe 0.3.4
Using tzinfo 1.2.1
Using activesupport 4.1.4
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.4
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.4
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.4
Using activemodel 4.1.4
Using arel 5.0.1.20140414130214
Using activerecord 4.1.4
Using addressable 2.3.6
Using bcrypt 3.1.7
Using coderay 1.1.0
Using better_errors 1.1.0
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using sass 3.2.19
Using bootstrap-sass 3.2.0.1
Using bundler 1.6.2
Using colorize 0.7.3
Using net-ssh 2.9.1
Using net-scp 1.2.1
Using sshkit 1.5.1
Using capistrano 3.0.1
Using capistrano-bundler 1.1.2
Using capistrano-rails 1.1.0
Using capistrano-rails-console 0.2.0
Using capistrano-rvm 0.1.1
Using mini_portile 0.6.0
Using nokogiri 1.6.3.1
Using xpath 2.0.0
Using capybara 2.4.1
Using timers 1.1.0
Using celluloid 0.15.2
Using ffi 1.9.3
Using childprocess 0.5.3
Using coffee-script-source 1.7.1
Using execjs 2.2.1
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.1.4
Using coffee-rails 4.0.1
Using database_cleaner 1.3.0
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.2.4
Using diff-lcs 1.2.5
Using factory_girl 4.4.0
Using factory_girl_rails 4.4.1
Using faker 1.4.2
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.1.3
Using rails 4.1.4
Using figaro 1.0.0.rc1
Using formatador 0.2.5
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using listen 2.7.9
Using lumberjack 1.0.9
Using method_source 0.8.2
Using slop 3.6.0
Using pry 0.10.0
Using guard 2.6.1
Using guard-bundler 2.0.0
Using guard-rails 0.5.3
Using rspec-support 3.0.3
Using rspec-core 3.0.3
Using rspec-expectations 3.0.3
Using rspec-mocks 3.0.3
Using rspec 3.0.0
Using guard-rspec 4.3.1
Using haml 4.1.0.beta.1
Using sexp_processor 4.4.3
Using ruby_parser 3.1.3
Using haml2slim 0.4.7
Using high_voltage 2.2.1
Using hpricot 0.8.6
Using html2haml 1.0.1
Using hub 1.12.2
Using interception 0.5
Using jbuilder 2.1.3
Using jquery-rails 3.1.1
Using launchy 2.4.2

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/*************/.rvm/rubies/ruby-2.1.2/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
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 mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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/***************/.rvm/rubies/ruby-2.1.2/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-mysqlclientlib
    --without-mysqlclientlib
    --with-nsllib
    --without-nsllib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-mygcclib
    --without-mygcclib
    --with-mysqlclientlib
    --without-mysqlclientlib

extconf failed, exit code 1

Gem files will remain installed in /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/mysql2-0.3.16 for inspection.
Results logged to /Users/***********/.rvm/gems/ruby-2.1.2@myapp/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.16/gem_make.out
An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling.
:myapp ***************$ gem install mysql2 -v '0.3.16'
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.

    /Users/************/.rvm/rubies/ruby-2.1.2/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
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 mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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/**************/.rvm/rubies/ruby-2.1.2/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-mysqlclientlib
    --without-mysqlclientlib
    --with-nsllib
    --without-nsllib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-mygcclib
    --without-mygcclib
    --with-mysqlclientlib
    --without-mysqlclientlib

extconf failed, exit code 1

Gem files will remain installed in /Users/***********/.rvm/gems/ruby-2.1.2@myapp/gems/mysql2-0.3.16 for inspection.
Results logged to /Users/*************/.rvm/gems/ruby-2.1.2@myapp/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.16/gem_make.out
brew install mysql