添加到gemfile失败了,因此我尝试了gem install rabl。它失败了,下面的错误消息,看起来像它的操作系统特定的.我在Windows 7上使用Ruby2.2 on 5API
G:/Ruby/ruby/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:388:in `symlink': symlink() function is unimplemented on this machine (NotImplementedError)
from G:/Ruby/ruby/lib/ruby/site_ruby/2.2.0/r
所以我一直试图在我的windows上安装rails,但我一直收到这个错误。我的ruby版本是2.3.3p222。
我已经把我的gem更新到了2.7.8
到目前为止,我在安装其他gem时没有遇到任何问题,在此之前,我还安装了rake或rake之类的gem。
这是我得到的错误-
C:\Users\rafeh\RubymineProjects\untitled>gem install rails
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while.
我刚刚尝试通过安装Ruby on Rails。一切都很顺利,直到我尝试创建我的第一个应用程序。基本上我在跑步
rails new 'first_app'
它会创建所有合适的文件,但在尝试运行'bundle install‘时会抛出以下错误消息
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require': 193: %1 is not a valid Win32 application. - C:/RailsInstaller
我已经使用Ruby 1.9.3-p194一键安装程序在我的windows7个人电脑上安装了ruby1.93。我可以使用ruby命令来解释文件,但当我键入irb时,它会显示以下错误:
C:\Users\Acer>irb
F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2111:in `expand_path': non-absolute home
(ArgumentError)
from F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline
捆绑包安装出现Bundler::Dsl::DSLError错误 bundle install
/usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:120:in `rescue in filesystem_access': Bundler::Dsl::DSLError
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:118
在运行ruby安装时,我希望只加载一个postgresql gem。 通常这是使用gem install postgresql完成的,但是我遇到了以下错误: MAINPATH\Ruby\bin>gem install postgresql --debug
NOTE: Debugging mode prints all exceptions even when rescued
Exception 'NameError' at MAINPATH/Ruby/lib/ruby/2.3.0/fiddle/import.rb:154 - uninitialized constan
当我尝试使用taza gem从cmd提示符创建项目时,我会遇到以下错误:
无法加载这样的文件- i18n (LoadError)
我甚至提高了宝石,但仍然得到同样的错误。
我的系统规范:
Windows 7
ruby版本:1.9.3
日志:
D:\>taza Example
You don't have i18n installed in your application. Please add it to your Gemfile
and run bundle install
D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygem
这里有一个来自fxri的小拷贝/粘贴。为什么会发生这种事,我该怎么解决呢?Ruby版本是;ruby1.8.6(2008-0811-patchlevel 287) i 386-mswin32 32在64位windows 7上。
irb(main):334:0> pp "a"
NoMethodError: undefined method `<<' for #<FXIrb:0x6229524>
from ..../Ruby/lib/ruby/1.8/prettyprint.rb:146:in `text'
from ..../Ruby/
我在mac上安装crypt-ruby 3.0.1时遇到了问题。现在有没有人知道这是什么原因?下面是下面的输出错误。
Dorians-MacBook-Pro:rentsnap_webapp dorianflowers$ gem install bcrypt-ruby -v '3.0.1'
Building native extensions. This could take a while...
ERROR: Error installing bcrypt-ruby:
ERROR: Failed to build gem native extension.
我试图为段落中的每一个单词添加一个红宝石标签。html文档看起来像这样
<div class = "bodyTxt">
<p>Lorem ipsum dolor sit amet, no postea maiorum sadipscing quo, ad illum percipitur
inciderint usu. Rebum vidisse apeirian an vel. Vis nostro iudicabit instructior ex, ne eos
facer iudicabit. Nec ludus ridens
C:/Ruby187/lib/ruby/gems/1.8/gems/highline-1.6.19/lib/highline/system_extensions.rb:81: undefined method `dlload' for HighLine::SystemExtensions::WinAPI:Module(NoMethodError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
from C:/Ruby187
我已经有这个错误几个星期了,并且一直放弃尝试解决它,忘记它,然后重新发现它。痛苦的循环一直在折磨着我。 /Users/Samudabamu/.rvm/rubies/ruby-2.1.10/lib/ruby/site_ruby/2.1.0/rubygems/resolver.rb:231:in `search_for': Unable to resolve dependency: user requested 'executable-hooks (= 1.6.0)' (Gem::UnsatisfiableDependencyError)
from /Users/
我试图在我的Mac上运行"pod安装“和"gem更新”命令。实际上,它不仅是"pod安装“或”创业板更新“,任何pod或gem命令。当我运行这些命令时,我会得到以下错误。
4: from /Users/waiyanhein/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
3: from /Users/waiyanhein/.rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
2: from /Users
尝试在Aptana Studio 3中启动调试器时出现此错误,内部版本: 3.0.1.201104291443
Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.10.4) listens on 127.0.0.1:32650
Fatal exception in DebugThread loop: The requested service provider could not be loaded or initialized. - socket(2)
Backtrace:
C:/RailsInstaller/Ruby1.8.7/
我有个奇怪的问题。当我尝试ro make rails s时,它说:
C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/conne
ction_adapters/mysql_adapter.rb:411:in `real_connect': Can't connect to MySQL se
rver on '127.0.0.0' (10060) (Mysql::Error)
from C:/Ruby/ruby/lib/ruby/gems/1.9.1
安装木偶后,我有以下错误:
# puppet master --version
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/mo
我已经升级到了rails 2.3.11和ruby 1.9.2,因为我的一些gem与以前的版本不兼容。现在我无法执行rake命令。当我使用rake gems时,我得到了以下错误:install or rake db:migrate。
(in C:/Ruby/New/Facebook)
rake aborted!
can't convert Symbol into Integer
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/rails/gem_dependency.rb:53:
in `[]'
C:/Ruby192/li