当试图通过jenkins在Ubuntu上安装时,我遇到了一些问题。我已经为apt添加了所有必需的文件,用于sqlite和bundler,vendored gems。
捆绑exec rake -T --trace
/usr/local/rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:136:警告:不安全的世界可写dir / var / lib / jenkins / PATH中的作业,模式040777
耙子流产了!
没有这样的文件加载--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
require'
/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
require'
/var/lib/jenkins/jobs/invited-tests/workspace/config/application.rb:7:in <top (required)>'
/var/lib/jenkins/jobs/invited-tests/workspace/Rakefile:5:in
require'
/ var / lib / jenkins / jobs / invite-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
load'
/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
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: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
run'
/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
load'
/var/lib/jenkins/jobs/invited-tests/workspace/vendor/ruby/1.9.1/bin/rake:19:in`'
*本地宝石*
bundler(1.0.21) 耙子(0.9.2) sqlite3(1.3.4) sqlite3-ruby(1.3.3)
(我可以删除上述任何一个或两个宝石,同样的问题)。
ruby 1.9.2p180(2011-02-18修订版30909)[x86_64-linux]
还有别的吗?
答案 0 :(得分:0)
为此环境展开gems并设置RVM和特定gemset。我建议将宝石在未来用原生扩展编译。
一旦我们有postgres或我们的生产类似数据库,我们也会从测试环境中删除sqlite3。