无法在 dreamhost 上构建 sqlite3-ruby (debian lenny/5.0.8)

发布于 2024-11-19 02:24:50 字数 1239 浏览 8 评论 0原文

我无法在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み青杉依旧 2024-11-26 02:24:50

你试过

sudo apt-get upgrade sqlite3
sudo apt-get install libsqlite3-dev

之后:

gem install sqlite3-ruby

have you tried

sudo apt-get upgrade sqlite3
sudo apt-get install libsqlite3-dev

and after that:

gem install sqlite3-ruby

?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文