无法在 dreamhost 上构建 sqlite3-ruby (debian lenny/5.0.8)
我无法在 dreamhost 上构建 sqlite3-ruby gem(尝试设置 diaspora),我收到以下错误
Installing sqlite3 (1.3.3) with native extensions /usr/lib/ruby/1.8/rubygems
/installer.rb:482:in `build_extensions': ERROR: Failed to build gem native
extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... no
checking for sqlite3_initialize()... no
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
*** extconf.rb failed ***
我尝试在 $HOME/sqlite 安装较新的 sqlite3 版本(3.6.23),但 gem 和捆绑程序似乎都无法针对这个新的 sqlite 版本进行构建,但它失败并显示相同的错误消息。
我还尝试
gem install sqlite3-ruby -- --with-sqlite3-dir=$HOME/sqlite
将以下行添加到 appdir/.bundler/config
BUNDLE_BUILD__SQLITE3-RUBY: --with-sqlite3-dir=$HOME/sqlite
我能够构建 1.2.1 版本的 sqlite3-ruby 但在 appdir/.bundler/config 中设置它没有帮助。
任何解决这个问题的想法都会很好。我应该能够使用较旧的 sqlite3-ruby 版本,或者我应该能够针对较新的本地安装的 sqlite 进行构建。
更新:
幸运的是,sqlite3 仅是开发模式的要求,所以
~/gems/bin/bundle install --path vendor/bundle_gems --without development
成功了(跳过 sqlite3)!
I'm not able to build sqlite3-ruby gem on dreamhost (trying to setup diaspora), I get following errors
Installing sqlite3 (1.3.3) with native extensions /usr/lib/ruby/1.8/rubygems
/installer.rb:482:in `build_extensions': ERROR: Failed to build gem native
extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... no
checking for sqlite3_initialize()... no
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
*** extconf.rb failed ***
I tried installing a newer sqlite3 version (3.6.23) at $HOME/sqlite but neither gem nor bundler seems to be able to build against this new sqlite version, but it fails with same error message.
I tried
gem install sqlite3-ruby -- --with-sqlite3-dir=$HOME/sqlite
also added following lines to appdir/.bundler/config
BUNDLE_BUILD__SQLITE3-RUBY: --with-sqlite3-dir=$HOME/sqlite
I'm able to build 1.2.1 version of sqlite3-ruby but setting that in appdir/.bundler/config didn't help.
Any ideas to fix this would be nice. I should be able to use an older sqlite3-ruby version or I should be able to build against the newer locally installed sqlite.
Update:
Luckily sqlite3 was a requirement only for development mode, so
~/gems/bin/bundle install --path vendor/bundle_gems --without development
succeeded (skipping sqlite3)!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你试过
之后:
?
have you tried
and after that:
?