Tag: bundler

capistrano错误消息:请安装pg适配器:`gem install activerecord-pg-adapter`(无法加载此类文件 –

我正在使用capistrano并收到此错误消息: Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file — active_record/connection_adapters/pg_adapter) 我从我的Gemfile中删除了gem’pg’并bundle install d。 我在Gemfile.lock中没有看到pg gem。 我还将生产数据库更改为sqlite3适配器。 为什么Rails 3.2 / Capistrano / Bundler要求这个? 我没有使用它而不是Gemfile.lock,我该如何解决? 我正在服务器上使用ubuntu 12.04。 提前thx 此外,当我运行它告诉我运行的东西时,我得到: deploy@oahu:~$ gem install activerecord-pg-adapter ERROR: Could not find a valid gem ‘activerecord-pg-adapter’ (>= 0) in any repository ^CERROR: Interrupted deploy@oahu:~$ \ **编辑1 ** […]

在我的gemfile中从Github指定一个gem的分叉版本时,“找不到gem”错误

我正在尝试使用searchlogic gem的这个分叉版本 。 在我的gemfile中,我有 gem “searchlogic”, :git => “http://github.com/railsdog/searchlogic.git” 当我进行bundle install ,我收到此错误: Could not find gem ‘searchlogic (>= 0, runtime)’ in http://github.com/railsdog/searchlogic.git (at master). Source does not contain any versions of ‘searchlogic (>= 0, runtime)’ 导致此错误的原因是什么? 谢谢阅读。

每当Gem无法在Capistrano中正确运行“捆绑执行”

我在使用Capistrano将Whenever gem部署到我的生产环境时遇到了问题。 这个问题源于一个bundle exec whenever命令触发一些’缺少gem’问题(但是从shell运行bundle install会显示事实上一切都在那里!)。 我的感觉是发生了两件事之一:Bundler在调用bundle exec之前没有完全加载,或者某种程度上存在一个在错误的地方运行它的路径问题。 这是发生了什么: * executing `deploy’ * executing `deploy:update’ ** transaction: start * executing `deploy:update_code’ executing locally: “git ls-remote git@my-source-repository:mysource.git HEAD” command finished in 1847ms * executing “git clone -q git@my-source-repository:mysource.git /domains/myapp/releases/20130124211036 && cd /domains/myapp/releases/20130124211036 && git checkout -q -b deploy 90238bbcb993e3e7df2374ffaa13e7ed701c202e && (echo 90238bbcb993e3e7df2374ffaa13e7ed701c202e > /domains/myapp/releases/20130124211036/REVISION)” servers: [“myip”] […]

Rails 4 railties的可执行“rails”与rails冲突

我有rails 4,这是我的默认版本(我仍然想要它)。 但我想在我的电脑上添加rails 3.2。 在以下命令中: gem install rails -v 3.2.16 我有这个警告: railties’s executable “rails” conflicts with rails Overwrite the executable? [yN] 我想知道这是否会给我的4.0.1带来一些错误?

如何覆盖gem依赖?

我有2个gem依赖于相互冲突的hashie版本(一个需要〜> 1.2.0而另一个需要3.3.1): Bundler could not find compatible versions for gem “hashie”: In Gemfile: restforce (>= 0) ruby depends on hashie (~> 1.2.0) ruby omniauth (>= 0) ruby depends on hashie (3.3.1) 我想保留两个gem并使用更高版本的hashie。 有没有办法覆盖其中一个gem依赖项?

目前尚未安装程序“bundle”

虽然我试图运行这个代码“捆绑安装 – 没有生产”我收到一个错误,如“程序’包’目前没有安装。您可以通过键入以下来安装它:sudo apt-get install ruby​​-bundler”I已安装捆绑但仍然收到此错误。 这个问题发生在我从Harlt学习的时候发生的..在Heroku设置部分“更新Gemfile”

捆绑安装我的Rails应用程序冻结

有时在使用Rails应用程序时,运行bundle install命令会在处理Rails Gemfile时冻结。 我已经尝试清除缓存,没有任何改进。

无法使用JRuby构建gem原生扩展

我使用ruby-build将ruby版本从ruby 1.9.3-p125更改为JRuby 1.7.0-preview1。 当我在我的项目上执行jruby -S bundle install时,会出现一些错误,如下所示, … Using bson (1.6.2) Installing bson_ext (1.6.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/bin/jruby extconf.rb NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable. (root) at /Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/mkmf.rb:8 require at org/jruby/RubyKernel.java:991 (root) at /Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/rubygems/custom_require.rb:1 […]

Rails3服务器和bundler错误:未初始化的常量Bundler(NameError)

我只需要安装rails 3以及它所需的所有gem,但是当我尝试启动服务器时,它会说出启动脚本中的问题。 [rap-kasta@acerAspire testR3]$ script/rails server /home/rap-kasta/tmp/testR3/config/boot.rb:7:in `rescue in ‘: uninitialized constant Bundler (NameError) from /home/rap-kasta/tmp/testR3/config/boot.rb:2:in `’ from script/rails:9:in `require’ from script/rails:9:in ` 所以,我试图重新安装Bundler,安装“pre”-version(但实际上它的版本号低于我安装的gem install bundler 现在系统中有下一个gem: abstract (1.0.0) actionmailer (3.0.0.beta, 2.3.5, 2.3.4) actionpack (3.0.0.beta, 2.3.5, 2.3.4) activemodel (3.0.0.beta) activerecord (3.0.0.beta, 2.3.5, 2.3.4) activeresource (3.0.0.beta, 2.3.5, 2.3.4) activesupport (3.0.0.beta, 2.3.5, 2.3.4) arel (0.2.1, 0.2.pre) builder […]

获取错误:在部署/迁移到Heroku时更新rubygems

迁移到Heroku时出现以下错误。 Installing hoe (2.9.4) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in > install’:hoe需要RubyGems版本> = 1.4。 尝试’gem update –system’来更新RubyGems本身。 (gem:: InstallError)` 这就是rubygem版已经过时了。 有人知道我怎么能解决这个问题? 使用rails 3.0.5和ruby 1.9.2 bundler Using rake (0.8.7) Using RedCloth (4.2.2) Using abstract (1.0.0) Using activesupport (3.0.5) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.5) Using erubis (2.6.6) Using rack (1.2.2) Using rack-mount (0.6.14) Using rack-test (0.5.7) Using tzinfo […]