- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试执行我的 RoR 应用程序,但是当我执行命令时:rails s
显示以下错误:
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/bin/rails:6: warning: previous definition of APP_PATH was here
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate" (short-cut alias: "d")
plugin new Generates skeleton for developing a Rails plugin
runner Run a piece of code in the application environment (short-cut alias: "r")
但是,当我执行命令时:
$ rake rails:update:bin
rake aborted!
LoadError: dlopen(/Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore-6.Q16.2.dylib
Referenced from: /Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle
Reason: image not found - /Users/Jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `block in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:247:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/gems/rmagick-2.13.2/lib/rmagick.rb:11:in `<top (required)>'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in `each'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in `block in require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `each'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in `require'
/Users/Jarvis/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.3/lib/bundler.rb:132:in `require'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/config/application.rb:7:in `<top (required)>'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/Rakefile:4:in `require'
/Users/Jarvis/Documents/Projects/Vincubo/vincubo/Rakefile:4:in `<top (required)>'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/Jarvis/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
gem 文件:
source 'https://rubygems.org'
source 'http://rubygems.org'
if RUBY_VERSION =~ /1.9/ # assuming you're running Ruby ~1.9
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end
gem 'rails', '4.1.2'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'cells'
gem 'paperclip'
gem "mail"
gem "jquery-fileupload-rails"
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
gem "rmagick"
gem 'will_paginate', '~> 3.0'
gem 'pg'
gem 'roadie'
gem 'rubyXL'
gem 'spreadsheet'
gem 'fileutils'
gem 'iconv'
gem 'roo'
最佳答案
你的配置文件在
config/initializers
我在删除 dragonfly_s3、dragonfly 和 s3_direct_upload 时出现此错误
在执行 bundle install 和 rails s 之后
同样的错误
删除了初始化文件,它工作了
关于ruby-on-rails - 箱/rails :6: warning: already initialized constant APP_PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24501615/
我正在尝试将 keras.initializers 引入我的网络,following this link : import keras from keras.optimizers import RMS
我正在为程序创建某种前端。为了启动程序,我使用了调用 CreateProcess(),其中接收到一个指向 STARTUPINFO 结构的指针。初始化我曾经做过的结构: STARTUPINFO star
我已经模板化了 gray_code 类,该类旨在存储一些无符号整数,其基础位以格雷码顺序存储。这里是: template struct gray_code { static_assert(st
我已经查看了之前所有与此标题类似的问题,但我找不到解决方案。所有错误都表明我没有初始化 ArrayList。我是否没有像 = new ArrayList 这样初始化 ArrayList? ? impo
当涉及到 Swift 类时,我对必需的初始化器和委托(delegate)的初始化器有点混淆。 正如您在下面的示例代码中所见,NewDog 可以通过两种方式中的一种进行初始化。如您所见,您可以通过在初始
几天来我一直在为一段代码苦苦挣扎。我在运行代码时收到的错误消息是: 错误:数组初始值设定项必须是初始值设定项列表 accountStore(int size = 0):accts(大小){} 这里似乎
我想返回一个数组,因为它是否被覆盖并不重要,我的方法是这样的: double * kryds(double linje_1[], double linje_2[]){ double x = linje
尝试在 C++ 中创建一个简单的 vector 时,出现以下错误: Non-aggregates cannot be initialized with initializer list. 我使用的代码
如何在构造函数中(在堆栈上)存储初始化列表所需的临时状态? 例如,实现这个构造函数…… // configabstraction.h #include class ConfigAbstraction
我正在尝试编写一个 native Node 插件,它枚举 Windows 机器上的所有窗口并将它们的标题数组返回给 JS userland。 但是我被这个错误难住了: C:\Program Files
#include using namespace std; struct TDate { int day, month, year; void Readfromkb() {
我很难弄清楚这段代码为何有效。我不应该收到“数组初始值设定项必须是初始值设定项列表”错误吗? #include class B { public: B() { std::cout << "B C
std::map m = { {"Marc G.", 123}, {"Zulija N.", 456}, {"John D.", 369} }; 在 Xcode 中,我将 C+
为了帮助你明白这一点,我给出了我的代码:(main.cpp),只涉及一个文件。 #include #include using namespace std; class test{ public
这在 VS2018 中有效,但在 2008 中无效,我不确定如何修复它。 #include #include int main() { std::map myMap = {
我有一个类: #include class Object { std::shared_ptr object_ptr; public: Object() {} template
我正在为 POD、STL 和复合类型(如数组)开发小型(漂亮)打印机。在这样做的同时,我也在摆弄初始化列表并遇到以下声明 std::vector arr{ { 10, 11, 12 }, { 20,
我正在使用解析实现模型。 这是我的代码。 import Foundation import UIKit import Parse class User { var objectId : String
我正在观看 Java 内存模型视频演示,作者说与 Lazy Initialization 相比,使用 Static Lazy Initialization 更好,我不清楚他说的是什么想说。 我想接触社
如果您查看 Backbone.js 的源代码,您会看到此模式的多种用途: this.initialize.apply(this, arguments); 例如,这里: var Router =
我是一名优秀的程序员,十分优秀!