gpt4 book ai didi

ruby-on-rails - 在 ubuntu 上安装 sqlite3 效果不好

转载 作者:行者123 更新时间:2023-12-04 18:54:01 25 4
gpt4 key购买 nike

当尝试在 Ubuntu 上通过 jenkins 安装它时,我遇到了一些问题。我已经从 apt 中为 sqlite 和 bundler、vendored gem 添加了所有必需的文件。

bundle exec rake -T --trace
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:136:警告:不安全的世界可写目录/var/lib/jenkins/PATH 中的作业,模式 040777
rake 中止!
没有要加载的文件 -- sqlite3/sqlite3_native
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/sqlite3-1.3.4/lib/sqlite3.rb:6:in require'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/sqlite3-1.3.4/lib/sqlite3.rb:6:in
救援中'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/sqlite3-1.3.4/lib/sqlite3.rb:2:in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in
要求'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in block (2 levels) in require'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in
每个'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in block in require'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in
每个'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in require'
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler.rb:122:in
要求'
/var/lib/jenkins/jobs/invited-tests/workspace/config/application.rb:7:in <top (required)>'
/var/lib/jenkins/jobs/invited-tests/workspace/Rakefile:5:in
要求'
/var/lib/jenkins/jobs/invited-tests/workspace/Rakefile:5:in <top (required)>'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in
加载'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in load_rakefile'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in
raw_load_rakefile'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in block in load_rakefile'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
标准异常处理'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in load_rakefile'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in
阻止运行'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
跑'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/bin/rake:19:in
加载'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/bin/rake:19:in `'

gem 列表--本地

* 本地 gem *

捆绑器 (1.0.21)
rake (0.9.2)
sqlite3 (1.3.4)
sqlite3-ruby (1.3.3)

(我可以删除上述任何一个或两个 gem ,同样的问题)。

rvm --版本

rvm 1.5.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]

ruby -v

ruby 1.9.2p180(2011-02-18 修订版 30909)[x86_64-linux]

还要别的吗?

最佳答案

取消销售 gem 并为此环境设置 RVM 和特定 gemset 在这里工作。我建议将来让 gem 使用 native 扩展进行编译。

一旦我们有 postgres 或我们的生产类似数据库,我们也会从测试环境中完全删除 sqlite3。

关于ruby-on-rails - 在 ubuntu 上安装 sqlite3 效果不好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8058030/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com