Инструменты пользователя

Инструменты сайта

A PCRE internal error occured. This might be caused by a faulty plugin

soft:ruby:gem:sqlite3-ruby:checking_for_sqlite3.h..._no

====== checking for sqlite3.h... no ====== Версии: **FreeBSD 7.2**, **ruby-enterprise-1.8.7**. ===== Описание ===== При попытке сборки gem'а sqlite3-ruby выдаётся ошибка: <code console> $ sudo /usr/local/ruby/1.8.7e/bin/gem install sqlite3-ruby Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/local/ruby/1.8.7e/bin/ruby extconf.rb checking for fdatasync() in -lrt... no checking for sqlite3.h... 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/ruby/1.8.7e/bin/ruby --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib --with-rtlib --without-rtlib --with-sqlite3lib --without-sqlite3lib </code> ===== Решение ===== Надо вручную прописать пути к каталогам /usr/local/include и /usr/local/lib: <code console> $ sudo env CONFIGURE_ARGS="with-sqlite3-include=/usr/local/include --with-sqlite3-lib=/usr/local/lib" /usr/local/ruby/1.8.7e/bin/gem install sqlite3-ruby Building native extensions. This could take a while... Successfully installed sqlite3-ruby-1.2.5 1 gem installed Installing ri documentation for sqlite3-ruby-1.2.5... Installing RDoc documentation for sqlite3-ruby-1.2.5... </code>

Дискуссия

Enter your comment
 
soft/ruby/gem/sqlite3-ruby/checking_for_sqlite3.h..._no.txt · Последние изменения: 28.01.2010 12:47 (внешнее изменение)

Инструменты страницы