Failed to build gem native extension

来源:互联网 发布:python xpath 编辑:程序博客网 时间:2024/05/22 13:59
Building native extensions.  This could take a while...ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)    ERROR: Failed to build gem native extension.ruby extconf.rb install mysqlchecking for mysql_query() in -lmysqlclient... nochecking for main() in -lm... yeschecking for mysql_query() in -lmysqlclient... nochecking for main() in -lz... yeschecking for mysql_query() in -lmysqlclient... nochecking for main() in -lsocket... nochecking for mysql_query() in -lmysqlclient... nochecking for main() in -lnsl... yeschecking for mysql_query() in -lmysqlclient... no*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack ofnecessary libraries and/or headers.  Check the mkmf.log file for moredetails.  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-mysqlclientlibGem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out



解决:

apt-get install libmysqld-dev

原创粉丝点击