<i id='CPgAo'><tr id='CPgAo'><dt id='CPgAo'><q id='CPgAo'><span id='CPgAo'><b id='CPgAo'><form id='CPgAo'><ins id='CPgAo'></ins><ul id='CPgAo'></ul><sub id='CPgAo'></sub></form><legend id='CPgAo'></legend><bdo id='CPgAo'><pre id='CPgAo'><center id='CPgAo'></center></pre></bdo></b><th id='CPgAo'></th></span></q></dt></tr></i><div id='CPgAo'><tfoot id='CPgAo'></tfoot><dl id='CPgAo'><fieldset id='CPgAo'></fieldset></dl></div>

          <bdo id='CPgAo'></bdo><ul id='CPgAo'></ul>

      1. <tfoot id='CPgAo'></tfoot>

        <small id='CPgAo'></small><noframes id='CPgAo'>

        <legend id='CPgAo'><style id='CPgAo'><dir id='CPgAo'><q id='CPgAo'></q></dir></style></legend>

        Ruby gem mysql2 安装失败

        时间:2023-05-24

          <legend id='E2L2A'><style id='E2L2A'><dir id='E2L2A'><q id='E2L2A'></q></dir></style></legend>

              <bdo id='E2L2A'></bdo><ul id='E2L2A'></ul>
              • <tfoot id='E2L2A'></tfoot>
                  <tbody id='E2L2A'></tbody>
              • <small id='E2L2A'></small><noframes id='E2L2A'>

                  <i id='E2L2A'><tr id='E2L2A'><dt id='E2L2A'><q id='E2L2A'><span id='E2L2A'><b id='E2L2A'><form id='E2L2A'><ins id='E2L2A'></ins><ul id='E2L2A'></ul><sub id='E2L2A'></sub></form><legend id='E2L2A'></legend><bdo id='E2L2A'><pre id='E2L2A'><center id='E2L2A'></center></pre></bdo></b><th id='E2L2A'></th></span></q></dt></tr></i><div id='E2L2A'><tfoot id='E2L2A'></tfoot><dl id='E2L2A'><fieldset id='E2L2A'></fieldset></dl></div>
                  本文介绍了Ruby gem mysql2 安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  当我尝试安装 mysql2 gem 时,它失败且没有明显错误.有谁知道如何解决这个问题,以便安装 mysql2?

                  When I try to install the mysql2 gem, it fails with no apparent errors. Does anyone know what to do to work around this so mysql2 installs?

                  $ sudo gem install mysql2
                  Building native extensions.  This could take a while...
                  ERROR:  Error installing mysql2:
                      ERROR: Failed to build gem native extension.
                  
                  /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
                  checking for rb_thread_blocking_region()... no
                  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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
                      --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
                  
                  
                  Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6 for inspection.
                  Results logged to /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/ext/mysql2/gem_make.out
                  

                  推荐答案

                  您的机器上必须安装 64 位 MySQL,以及安装 xcode 时获得的构建工具.

                  You have to have 64-bit MySQL installed on your machine, plus the build tools you get when you install xcode.

                  这篇关于Ruby gem mysql2 安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何遍历表的所有行?(MySQL) 下一篇:将 MySQL 数据库导入 MS SQL Server

                  相关文章

                • <legend id='sRNuG'><style id='sRNuG'><dir id='sRNuG'><q id='sRNuG'></q></dir></style></legend>
                      <bdo id='sRNuG'></bdo><ul id='sRNuG'></ul>

                  1. <tfoot id='sRNuG'></tfoot>

                    1. <small id='sRNuG'></small><noframes id='sRNuG'>

                    2. <i id='sRNuG'><tr id='sRNuG'><dt id='sRNuG'><q id='sRNuG'><span id='sRNuG'><b id='sRNuG'><form id='sRNuG'><ins id='sRNuG'></ins><ul id='sRNuG'></ul><sub id='sRNuG'></sub></form><legend id='sRNuG'></legend><bdo id='sRNuG'><pre id='sRNuG'><center id='sRNuG'></center></pre></bdo></b><th id='sRNuG'></th></span></q></dt></tr></i><div id='sRNuG'><tfoot id='sRNuG'></tfoot><dl id='sRNuG'><fieldset id='sRNuG'></fieldset></dl></div>