`

Installing mysql (2.8.1) with native extensions Failed to build gem native ext

 
阅读更多
Installing mysql (2.8.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
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... yes
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=/usr/local/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 /home/naitnix/.bundler/tmp/27806/gems/mysql-2.8.1 for inspection.
Results logged to /home/naitnix/.bundler/tmp/27806/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
An error occured while installing mysql (2.8.1), and Bundler cannot continue.
Make sure that `gem install mysql -v '2.8.1'` succeeds before bundling.


解决办法:

sudo apt-get install libmysqlclient15-dev


分享到:
评论

相关推荐

    freedesktop.org.xml内容错误解决方案文件

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby26/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic C:/Ruby26/bin/ruby.exe -rrubygems C:/Ruby26/lib...

    mac os gem安装json出现error failed的解决办法

    升级到最新的mac os Mavericks。装json出现错误: ... ERROR: Failed to build gem native extension.  /usr/local/var/rbenv/versions/2.0.0-p247/bin/ruby extconf.rb creating Makefile make “DESTDIR=”

    MySQL V5.5帮助文档

    1.8.4. MySQL Extensions to Standard SQL 1.8.5. MySQL Differences from Standard SQL 1.8.6. How MySQL Deals with Constraints 1.9. Credits 1.9.1. Contributors to MySQL 1.9.2. Documenters and translators ...

    Build.Native.Cross-Platform.Apps.with.Appcelerator

    Did you know that with Appcelerator you can use your existing web experience to build 100% native apps that follow the native platform user interface guidelines, and all from a single code base?...

    Use MySQL with Python - M. MOka

    Use MySQL with Python - M. MOka (mobi,pdf 高清英文原版) This book demonstrates how to boost the productivity of your Python applications by integrating them with the MySQL database server, the world...

    mysql安装失败

    The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES) ...

    Professional Parallel Programming with C#: Master Parallel Extensions with .NET 4

    Visual Studio 2010 ships with version 4 of the .NET Framework, the fi rst release to include Parallel Extensions. C# 4 and .NET Framework 4 allow you to shift to a modern task-based programming model ...

    Android代码-react-native-ble-manager

    After installing, you need to link the native library. You can either: Link native library with react-native link, or Link native library manually Both approaches are described below. Link Native ...

    wangzhebufangqi.github.io:基于博客的 Github Pages 和 jekyll

    Error installing jekyll: ERROR: Failed to build gem native extension. gem install jekyll Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... ERROR: ...

    c++ 连接 mysql 官方文档

    Installing MySQL Connector/C++ ?Runtime Dependencies ?IDE for Developing C++ Applications ?Create the City Table in the test Database for Code Examples ?Testing the MySQL Database Connectivity With ...

    global-diversity-cfp-day-site

    Installing pg 0.18.4 with native extensionsGem::Ext::BuildError: ERROR: Failed to build gem native extension.安装要使该站点在本地运行: git clone git@github....

    《PHP & MySQL: Novice to Ninja, 6th Edition》- 2017 英文原版

    The easiest way to learn PHP ...PHP & MySQL: Novice to Ninja, 6th Edition is a hands-on guide to learning all the tools, principles, and techniques needed to build a professional web application using ...

    visualbuildtools_14.0.zip

    running build_ext building 'fasttext_pybind' extension error: Microsoft Visual C++ ...Failed to build fasttext Installing collected packages: fasttext Running setup.py install for fasttext ... error

    MySQL 系统管理员指南

    MySQL Administrator's Guide is the official guide to installing, administering and working with MySQL 5.0 and MySQL databases. Starting with the basics, you will learn to store, manage and retrieve ...

    Beginning PHP and MySQL: From Novice to Professional, 5th Edition

    You'll not only receive extensive introductions to the core features of PHP, MySQL, and related tools, but you'll also learn how to effectively integrate them in order to build robust data-driven ...

    Mysql系统管理员指南

    MySQL Administrator's Guide is the official guide to installing, administering and working with MySQL 5.0 and MySQL databases. Starting with the basics, you will learn to store, manage and retrieve ...

    MySQL Bible.rar

    Coverage of NuSphere MySQL: Due to the growing popularity of the NuSphere MySQL package, this book covers its enhancements and how to install and develop with NuSphere MySQL. Running database ...

    MySQL管理员指南

    MySQL Administrator's Guide is the official guide to installing, administering and working with MySQL 5.0 and MySQL databases. Starting with the basics, you will learn to store, manage and retrieve ...

    Beyond Spreadsheets with R: A beginner’s guide to R and RStudio

    Beyond Spreadsheets with R shows you how to take raw data and transform it for use in computations, tables, graphs, and more. You’ll build on simple programming techniques like loops and conditionals...

    Failed to install Tomcat6 service(Tomcat6安装失败解决方法)

    Failed to install Tomcat6 service(Tomcat6安装失败解决方法)

Global site tag (gtag.js) - Google Analytics