当我运行bundle install时,它显示:
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
You have requested:
rails = 4.2.1
The bundle currently has rails locked at 4.1.0.
Try running `bundle update rails`
然后我运行:bundle up
我需要一些帮助将我的Rails更新到正确的版本。我不知道该如何做。当我“捆绑安装--没有生产”时,我会得到以下错误:
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.1.8) ruby depends on
actionpack (= 4.1.8) ruby
我做了一个包安装和包更新,发现在终端中一直有相同的错误:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack (~> 5.0.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0
我正在尝试升级到Rails5。我删除了我的Gemfile.lock文件,编辑了我的Gemfile,如下所示
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for styl
当我在Heroku中部署时,我遇到了一个问题: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem': Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your Gemfi
我在nginx后面的thin 1.2.11上运行了一个应用程序。我试图在一台开发机器上使用bundle update将我的应用程序更新到最新版本的gem,提交到git,然后运行cap deploy。但是,thin给出了以下错误:
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.14/lib/bundler/runtime.rb:31:in `block in setup': You have already activated rack 1.3.0, but your Gemfile requires rack 1.2.3. Consid
我已经准备好了我的应用程序的生产,我正在努力寻找我的数据库。它给了我这个错误:
PG::UndefinedTable: ERROR: relation "events" does not exist
: ALTER TABLE "events" ADD "code" character varying
这是我的database.yml文件:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
#
我的Rails应用程序在开发模式下运行良好。然后通过执行bundle install --without development test切换到生产模式。当我尝试运行rake (rake routes)时,会得到以下错误:
拉克流产了!Gem::LoadError:为数据库适配器指定了“sqlite3”,但是gem没有加载。将gem 'sqlite3'添加到Gemfile中
我的Gemfile:
group :development, :test do
gem 'sqlite3', '1.3.10'
end
group :produc
我在我的新项目中安装了Bootstrap,bundler说所有gem在包安装后都安装正确了,但是我在根页面上的测试h1不是以Bootstrap风格呈现的。任何建议都将不胜感激。
在我的Gemfile中:
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.8'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use boot
我的第一篇文章是关于在我的Ubuntu系统(Ubuntu18.04.3LTS/bionic)上设置Yocto开发环境的,这是基于这个web链接()文档中所包含的信息。
All is well until... ~/poky/build$ bitbake core-image-sato
which results in this error:
File "/usr/local/lib/python3.5/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: No m
正在学习Hart的rails教程,并且无法通过此错误:
remote: Your Gemfile has no gem server sources. If you need gems that are not already on
remote: your machine, add a line like this to your Gemfile:
remote: source 'https://rubygems.org'
remote: Could not find rake-10.4.2 in any of the
我正在将rails从4.2升级到5.0,我遇到了一些严重的依赖问题。当我运行bundle update时,我得到以下输出。问题是,当我查看消息时,在查看版本要求时,看起来gem应该能够很好地安装。 我也试着删除我的Gemfile.lock,但没有帮助。 如有任何建议,我们将不胜感激。 Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
当我"git push heroku master“返回一些类似如下的信息时:
remote: Make sure that `gem install sqlite3 -v '1.3.11'` succeeds
before bundling.
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Detected sqlite3 gem which is not supported on Heroku.
remote:
我正在尝试部署一个rails应用程序,以便在线测试它。尽管云主机返回以下错误:
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'nokogiri'
这里有更大的日志文件:
Use ruby 2.3.3
Fetch the dependencies
Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile
我对ruby on rails的开发很陌生。我目前在生成一个新的rails控制器时遇到了困难。下面是我在终端中输入的内容:
$ rails generate controller static_pages home help
以下是我收到的答复:
/usr/local/rvm/gems/ruby-2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/connection_specification.rb:177
:in `rescue in spec': Specified 'sqlite3
运行rails server时,我加载以下警告: Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). 但是我的gemfile里有宝石 group :development do
gem 'sqlite3' 是什么导
我一直为activemodel找到不兼容的问题。当前的误差是;
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
mongoid (~> 4.0.0) was resolved to 4.0.0, which depends on
activemodel (~> 4.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activemodel (
我第一次尝试将我的Ruby应用程序迁移到Heroku,首先我将我的Ruby版本更新到了2.4.1,我还将我的sqlite3迁移到了开发中:
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'sqlite3','~> 1.3.13'
我有一个rails 3.1应用程序,我想把它推给Heroku。当我按下它时,它总是失败。
Installing sqlite3 (1.3.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/usr/local/lib/ruby/1.9.