当我在控制台中运行任何特定于rails的命令时,它会给我一个错误。例如,我试过
rails -v,然后它会给出错误
/usr/local/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb:194:in `each': rehash occurred during iteration (RuntimeError)
from /usr/local/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb:194:in `<module:RbConfig>'
from /usr/local/lib/rub
我正在尝试安装ruby插件,但是当我运行安装程序时,会出现以下错误
C:\Users\186\Downloads\ruby-xslt-master>ruby setup.rb
setup.rb:283: warning: key "bin-dir" is duplicated and overwritten on line 284
Traceback (most recent call last):
2: from setup.rb:1578:in `<main>'
1: from setup.rb:768:in `in
从终端
$ sudo gem install passenger
Building native extensions. This could take a while...
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.
/Users/dan/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
extconf.rb:13:in `block in <main>': Use RbConfig instea
我是ruby的新手,在Heroku上推送我的项目时,我发现了一个问题。
当我执行时:
Heroku login
结果是:
rbconfig/datadir.rb and {Rb}Config.datadir is being deprecated from RubyGems.
It will be removed completely on or after June 2011. If you wish to rely on a
datadir, please use Gem.datadir.
/usr/local/lib/site_ruby/1.9.1/rubygems.rb:124
你好,我在Ubuntu 14.04上安装shoes有问题
我已经安装了所有需要的东西,像make,gcc,开罗,pango和ruby。
这是来自我的终端的日志,它似乎与一些标题有问题,但我不知道,谷歌没有帮助我与这一个。
$ make
cleaning
shoes build options:
CC = cc
-e:1: Use RbConfig instead of obsolete and deprecated Config.
RUBY = /home/user/.rvm/rubies/ruby-1.9.3-p547
OPTIONS =
ruby 1.9.3p547
我试图在我的pdf应用程序中使用wicked_pdf gem来生成rails。我的文件中有下面的代码。
gemfile
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
和config/initializers/ and _pdf.rb文件中的
WickedPdf.config = {
# Path to the wkhtmltopdf executable: This usually isn't needed if using
# one of the wkhtmltopdf-binary family
我对MacOS、塞拉利昂发布的版本10.12非常有野心,但它确实让我感到沮丧,因为它导致了开发环境的崩溃。我的大部分项目都崩溃了,这些项目都是在OS X El Capitan的早期版本上顺利开发和部署的。Ruby显示了以下消息:
$ gem -v
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16/rbconfig.rb:213: warning: Insecure world writable dir /usr/local/bin in PATH, mode
我是ruby和rails的新手。我不明白为什么我的rake db:迁移返回给我这个错误
/usr/lib/ruby/供应商_ruby/rake.rb:30:在require': no such file to load -- rbconfig(LoadError) from /usr/lib/ruby/vendor_ruby/rake.rb:30 from /usr/bin/rake:25:in中需要‘from /usr/bin/rake:25
谢谢!
我想安装菲德纳的学校管理系统。当我键入rake gems:install时,我得到以下错误:
/usr/local/share/gems/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /var/www/html/fedena)
rake aborted!
undefined method `name' for "Ascii85":String
(See full trace by running task wi
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /Users/kalemmacbookpro/Desktop/coding/v5 in PATH, mode 040707 当我在ionic项目中为ios添加新平台时,我得到了这个,但我的插件无法工作。我尝试了一些chmod示例,但仍然是一样的。请帮帮我,谢谢
当我执行command-bundle exec rake db:create时,我得到一个错误
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in C:/Users/Misha/Documents/readers_door)
C:/Ruby193/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized co
虽然,这似乎是一个流行的问题,但我没有找到任何相关的东西。问题是,当我使用Sinatra应用程序时,控制台中总是出现这样的错误
/home/alan/.rvm/gems/ruby-1.9.3-p327/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
我以如下方式运行应用程序
bundle exec shotgun
我该怎么做才能摆脱它?
我在安装的Ruby版本冲突时遇到了问题。我安装了1.8.6版本,然后安装了1.8.7,这就导致了问题。当我尝试运行我的ruby on rails应用程序时,我得到了以下错误:
/usr/local/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.6) doesn't match executable version (1.8.7) (RuntimeError)
我想以某种方式删除1.8.7,只使用1.8.6,但不知道如何去做。