当我运行RailsTorrent()时,我得到以下错误:
[root@sookcha railstorrent]# rails s
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `generators' for #<Rails::Railtie::Configuration:0x000000024eef38> (NoMethodError)
from /usr/
我得到这个捆绑错误,我如何解决它。
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
bundler (>= 1.3.0, < 2.0)
Curren
我正在尝试在我的Rails应用程序中安装最新版本的haml、simple_form和devise,但我似乎无法让它们使用这个绑定器工具。我应该怎样做才能通过依赖问题呢?
这是Bundler工具引发的错误:
Bundler找不到与gem“activemodel”兼容的版本:
In snapshot (Gemfile.lock):
activemodel (= 5.1.1)
In Gemfile:
rails (~> 5.1.1) was resolved to 5.1.1, which depends on
activemodel (= 5.1.1)
试图加载创业板“丑器”时出错。
Gem Load Error is: wrong argument type Class (expected Module)
Backtrace for gem load error is:
/usr/local/lib/ruby/gems/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `include'
/usr/local/lib/ruby/gems/2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in `block
在将Xamarin窗体升级到最新版、Visual升级到最新版和Mac升级到最新版本之后,我们现在得到了这个相当神秘的消息。我们已经尝试过设置Linker设置,回滚一些nuget包等等,但是似乎没有什么效果。只提供释放模式。在其他地方我们能找到更有用的东西吗?
2> C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(804,3): error MT3001: Could not AOT the assembly
我刚接触过ruby,我试着运行我的第一个应用程序,但是当我启动服务器时,我得到了以下错误:
Bundler could not find compatible versions for gem "nokogiri": In Gemfile:
capybara (>= 2.15) x86-mingw32 was resolved to 3.15.1, which depends on
nokogiri (~> 1.8)
Could not find gem 'nokogiri (~> 1.8)', which is req
我正在尝试从Ruby2.3移到2.4.2和monogID 5.0到5.2。
我得到一个捆绑更新错误。
我正在使用rbenv,并在本地安装和设置2.4.2。
然后我不得不运行->,它安装了2.0.1
然后我运行包更新,并得到这个错误。
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
iron_worker_ng was resolved to 1.6.10, which depends on
bundler
rai
我遵循了,它涵盖了使用rspec,capybara等测试驱动程序。我在Gemfile中添加了以下内容:
group :test, :development do
gem 'turn'
gem 'rspec-rails'
gem 'capybara'
gem 'guard-rspec'
gem 'growl_notify'
end
运行bundle install,现在获取:
juco@jucoiMac ~/Desktop/rails-test $ rails s
ge
我正在尝试开始使用rails。我已经创建了一个rails项目,现在我正在尝试启动服务器,但得到了这个。
C:\Users\Home\Documents\Sites\simple_cms>rails server
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x64-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannot load such file -- mysql2/2.2/mysql2 (LoadError)
from C:/Ruby22-x64/lib/rub
在我尝试在我的kali linux上安装Ruby on Rails之后,我不能再运行以下命令:
service metasploit start
我得到了这个错误:
Starting Metasploit web server: thin/opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.1.0 in any of the sources (B
我甚至对ruby都不是新手。我必须运行一个现有的应用程序,该应用程序用作Java应用程序的接口(我理解)。当我尝试获取所有依赖项(在Linux Mint上)时,我会看到以下内容:
$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
b
在升级最新版本的rails应用程序时,我遇到了parsel is no longer supported. Use at your own risk问题,这是访问令牌gem的运行时依赖项。 `parsel` is no longer supported. Use at your own risk. 从/home/sunflower/.rvm/gems/ruby-2.6.5@formyula_er_plus/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in“/home/sunflower/.rvm/gems/ruby-2.6.5@formyula_
在将rails版本更新到Rails3之前,我在windows.It上使用rails by Instantrails可以很好地运行。错误消息是:来自E:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.的nil:NilClass (N oMethodError)的E:\InstantRails-2.0-win\rails_apps\myproject>rails服务器E:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundle
在博客文件夹中运行rails服务器时(我还成功地在博客文件夹中安装了所需的捆绑包),我收到以下错误:
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:423:in `block in error_message': undefined method `>' for < 2.0, >= 1.3.0:Gem::Requirement (NoMethodError)
from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:410:in `each'
from /usr/
我正在尝试将rails应用程序从4.2更新到5,但执行bundle update时会看到以下错误
In Gemfile:
actionpack
activerecord-session_store (= 1.1.0) was resolved to 1.1.0, which depends on
actionpack (< 5.2, >= 4.0)
rails (= 5.0.7.2) was resolved to 5.0.7.2, which depends on
actionpack (= 5.0.7.2)
rs
我试图创建一个OCR应用程序,在将gem添加到运行服务器的gem文件"tesseract-ocr“之后,它显示了以下错误:
/Users/brijesh/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.10/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open library '/var/folders/1z/tn3pp1b90fvb5dh_7t2_kt2c0000gn/T/.ffi-inline-501/55a18292181116dcb44d5cd16f74500e379
我正在尝试用以下命令创建新的ruby on rails项目:
rails new . --no-ri --no-rdoc
但在执行此命令的末尾,我得到了:
run bundle install
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.6) was resolved to 4.2.6, which depends on
bundler (< 2.0, >= 1.3.0)
Current
我在UbuntuServer14.04LTS的新安装上安装了一个带有CRM插件的干净Redminine3.0。我成功地使用了redmine和一个小插件,但CRM插件给了我这样的印象:
# bundle install --without development test RAILS_ENV=production
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for al
第一次用堆叠式提问,如果我的英语不好,很抱歉,但希望有人能帮我:
因此,一个项目正在使用:
ruby '2.4.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.2.0'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use
我尝试了下面的bundle install,但没有成功。
我尝试了很多方法,我在这里和那里发现:
我试过和苏多在一起,
我试过捆绑更新,
我删除了Gemfile.lock
我手动安装了json1.8.6。但它只想使用1.8.0。当它找不到其他宝石的时候,就退出安装。
请注意,我在Ruby相对较新,因此它可能是一些简单的解决方案。例如,我应该以某种方式使用1.8.6解释包,但我不知道如何做。
sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed
我已经看过关于这个问题的几个答案,似乎没有一个能解决这个问题。这是在windows上,我迷失了想法。谢谢你的帮助!
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcrypt_ext.rb:2:in require': cannot load such fil e -- 2.0/bcrypt_ext (LoadError) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.1-x86-mingw32/lib/bcr
我尝试使用ruby gem和RVM安装bundler,但在运行bundle init命令时遇到以下错误:
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (>= 0) among 13 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/CalebKleveter/.rvm/gems/ruby-2.2.3:/Users/CalebKleveter/.rvm/g
我正在升级到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