我无法在停靠器CLI中运行rails g命令。
即使所有东西都已经安装和运行,它也会抛出以下错误。
Could not find rake-12.3.2 in any of the sources
Run `bundle install` to install missing gems.
rails db:create和rails db:migrate都很好。
我尝试过从docker内部运行命令,并通过运行命令,它们也会抛出相同的错误。
我的dockerfile名为Dockerfile.dev,如下所示
# syntax=docker/dockerfile:1
FROM ruby:2.6.2-
我最近通过使用以下命令安装了gem的“回形针”:
gem“回形针”,git:“git://github.com/thoughtbot/paperclip clip.git”
Bundler找不到gem“activesupport”的兼容版本:在Gemfile中:回形针解析为5.1.0,这取决于activesupport (>= 4.2.0)
rails (= 4.1.5) was resolved to 4.1.5, which depends on
activesupport (= 4.1.5)
rails (= 4.1.5) was resolved to 4.1.5, whi
我正在升级到openproject lastest版本6,但是在运行bundle install时,我得到了以下错误:
Bundler找不到gem“rails”的兼容版本:在快照中(Gemfile.lock):rails (= 4.2.7.1)
在~>中: rails (>= 4.2.7.1,Gemfile 4.2.7)
health_check was resolved to 1.5.1, which depends on
rails (>= 2.3.0)
openproject-translations was resolved to 6.0.5, which de
我有一个关于rails的问题
bundle install
命令找不到本地的gemfile。
gem位于以下位置::
~/.gem/ruby/2.1.5/gems/mygemname-1.5.0.SNAPSHOT
我在我的Gemfile中包含了宝石。但是当我尝试捆绑我的应用程序时,它得到这个错误::
Could not find gem 'mygemname-1.5.0.SNAPSHOT' (>= 0) ruby' in the gems available on this machine.
我可以看到gem在我的硬盘上,但是bundle install命令
我跑了
bundle install
它没有错误地完成,只是在最后一行打印了:
Your bundle is complete! It was installed into ./linecache
Gemfile中没有提到linecache。我甚至尝试了删除我的Gemfile.lock并再次调用bundle install的极端措施。同样的结果。
到底怎么回事?
我想用capistrano3推送一个Rails4应用程序。但是当我尝试的时候,我得到了这些错误:
INFO [c7c799a8] Running /containers/30054/.rvm/bin/rvm 2.0.0-p598 do bundle install --path /containers/30054/sites/myapp/shared/bundle --without development test --deployment --quiet as user@MYSERVER
DEBUG [c7c799a8] Command: cd /containers/30054/site
我将omniauth gem添加到我的gemfile中,并尝试运行bundle install,但收到一条关于rails和bundler版本不兼容的消息。我试图更新rails,但得到了与其他gem不兼容的消息。如何将bundler降级到1.0?
$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "
我是一个刚接触Rails的Django人。我正在尝试让rspec-rails为我工作,但是当我运行
$ bundle exec rails generate rspec:install
我明白了..。
Could not find diff-lcs-1.2.5 in any of the sources
Run `bundle install` to install missing gems.
这很麻烦,因为
diff-lcs (1.2.5)
在Gemfile.lock中我已经删除了Gemfile.lock并重新运行了包,但是没有用。我也添加了gem 'diff-lcs‘到我的Gemf
我使用的不是RVM,而是brew来安装和更新Ruby和Gem的最新版本。但是当我尝试bundle install时,我得到了一个错误,显示Ruby版本要求不符合。
我将ruby '2.1.9'添加到了Gemfile中,并做了一些检查:
(●—●) ↪ bundle platform
Your platform is: universal.x86_64-darwin16
Your app has gems that wo
我的应用程序在混血儿(本地)中运行良好,但突然apache和passenger给我带来了麻烦。它工作得很好,但现在我得到了这个错误,我还没有设法解决:
Could not find multi_json-1.1.0 in any of the sources (Bundler::GemNotFound)
我的Gemfile:
source 'http://rubygems.org'
gem 'rails'
gem 'mysql2'
gem 'tzinfo'
gem 'jquery-rails'
gem '
如何在我的Gemfile中启用详细标志,这样我就可以准确地跟踪在构建本机扩展时发生的事情。因为它通常需要很长时间才能安装。
gem install libv8
Fetching: libv8-3.11.8.11.gem (100%)
Building native extensions. This could take a while...
我正试着用这个命令向Heroku推送一些东西
git push heroku master
它给了我这个错误:
Your Ruby version is 2.6.4, but your Gemfile specified 2.6.3 Failed to install gems via Bundler. Detected a mismatch between your Ruby version installed and Ruby version specified in Gemfile or Gemfile.lock.
You can correct this by running: $ b
我最近尝试更新到Rails5,但它似乎不能工作。我在我的gemfile中从4.2.6切换过来,并删除了gemfile.lock。然后我运行了gem update rails,它看起来运行得很好,但是后来我运行了bundle update,我得到了这些错误
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 5.0.0)
devise-heroku was resolved to 0.1.0, which depends on
rails (>=
在我的ruby on rails应用程序中运行bundle install后,我得到了一个错误消息,错误消息是:
Your Gemfile.lock contains merge conflicts.
Run `git checkout HEAD -- Gemfile.lock` first to get a clean lock.
因此,我在同一个终端上尝试了git checkout HEAD -- Gemfile.lock,但是,它没有改变任何事情。当我尝试捆绑时,Gemfile.lock包含合并冲突错误仍然显示。
我还尝试了git checkout Gemfile.lock,它返回了“U
当试图在docker下运行rails控制台时,我遇到了一些问题。所有其他rails命令都按预期工作,但控制台不工作。
➜ octopus git:(master) ✗ docker-compose run web bundle exec rails c
Creating octopus_web_run ... done
Could not find rake-13.0.6 in any of the sources
Run `bundle install` to install missing gems.
ERROR: 1
安装了耙。
➜ octopus git:(master) ✗ do