ITeye博客

do_mysql problem

xxj · 2008-06-05 11:16 · Markdown

martin@martin-laptop:~/$ sudo gem install data_objects do_sqlite3 do_mysql dm-core dm-more ..... ..... Building native extensions. This could take a while... ERROR: Error installing do_mysql: ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install data_objects do_sqlite3 do_mysql dm-core dm-more 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/bin/ruby1.8 --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

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/do_mysql-0.9.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/do_mysql-0.9.1/ext/gem_make.out

http://groups.google.com/group/datamapper/browse_thread/thread/f2bd7ba7365e95bf/0e71c069e6d52245?lnk=raot

This is consecuence of lacking the development libraries of mysql which (off course) include mysql.h

Once you install libmysqlclient15-dev using apt-get, aptitude or synaptic, you should get the missing file:

/usr/include/mysql/mysql.h

And be able to install withour problem:


sudo apt-get install libmysqlclient15-dev

Then install gems again.


sudo gem install do_mysql

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。