草庐IT

adt-bundle-windows-x

全部标签

ruby - 在 Windows 上的 Ruby 1.9.1 上安装 Hpricot

我正在尝试使用以下命令安装hpricot:>geminstallhpricot-v0.8.2Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallinghpricot:ERROR:Failedtobuildgemnativeextension.C:/Ruby19/bin/ruby.exeextconf.rbcheckingforstdio.h...*extconf.rbfailed*CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibr

ruby - bundle exec 和 require 'bundler/setup' 是否等效?

这些事情完成的是否完全相同?使用bundleexecruby​​foo.rb启动ruby​​进程将require"bundler/setup"作为foo.rb的第一行 最佳答案 在您的特定示例中,它们可以被认为是相同的,但实际上它们并不相同。bundleexec对bundler/setup没有进行的环境进行了一些更改。如果您的foo.rb从不运行子shell,或者从不尝试在子shell中运行其他ruby​​可执行文件,那么这两个版本是等效的(它们都将正确加载bundle的gem并且工作完全相同)。bundleexec的整个想法是让您

ruby-on-rails - 错误 "' Validate_default_type !': An option' s default must match its type (ArgumentError)"when running Ruby on Rails generate on Windows

我正在关注thistutorial并且刚刚开始。我已经使用geminstallrails安装了RubyonRails,并使用railsnewblog创建了一个博客。教程现在说我需要运行railsgeneratecontrollerWelcomeindex,但是当我这样做时,我得到了这个错误:C:/Ruby22/lib/ruby/gems/2.2.0/gems/thor-0.19.2/lib/thor/parser/option.rb:130:in`validate_default_type!':Anoption'sdefaultmustmatchitstype.(ArgumentErr

ruby-on-rails - bundle 安装 : ERROR: Failed to build gem native extension. nio4r gem

我目前正在使用以下项目进行项目:rvm1.26.11ruby2.2.1p85我尝试运行bundleinstall但不断收到以下错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.并且,以下:Anerroroccurredwhileinstallingnio4r(1.0.0),andBundlercannotcontinue.Makesurethat`geminstallnio4r-v'1.0.0'`succeedsbeforebundling.当我尝试运行geminstallnio4r-v'1.0.0'时:Buil

ruby-on-rails - 由于 'eventmachine 1.0.3',无法 bundle 安装

$bundle安装Errno::ENOENT:Nosuchfileordirectory@rb_sysopen-/Users/Sean/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/ext/gem_make.outAnerroroccurredwhileinstallingeventmachine(1.0.3),andBundlercannotcontinue.Makesurethat`geminstalleventmachine-v'1.0.3'`succeedsbeforebundling.$ge

ruby-on-rails - Ruby 1.9.2 如何在 Windows 上安装 RMagick?

我目前正在升级一个旧的Rails应用程序以使用Rails3和Ruby1.9.2,而RMagick是我需要安装的最后一个gem。然而,似乎没有任何适用于Windows的1.9.2下载,标准的gem安装RMagick也不起作用。有人能为我指出正确的方向来安装这个gem吗? 最佳答案 我刚刚使用Rubyv1.9.x在Windows上成功安装了RMagick2.13.1!在我忘记之前,让我把程序说出来。安装开发工具包:https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

ruby-on-rails - 当我运行 `bundle exec rake test:prepare` 时它出错了,但是 `bundle exec rake db:test:prepare` 运行正常但有警告。这是怎么回事?

所以根据thislink一个是快捷方式包装器(所以我猜它们是一样的)。当我运行bundleexecrakedb:test:prepare时,我得到了这个错误:Don'tknowhowtobuildtask'test:prepare'/Users/aj/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin/ruby_executable_hooks:15:in`eval'/Users/aj/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin/ruby_executable_hoo

ruby - zsh : command not found: bundle (after gem install bundle)

为什么zsh:commandnotfound:bundle在geminstallbundler之后?我尝试设置path=(/usr/local/lib/ruby/gems/2.2/gems/~/bin/bin/sbin/usr/bin/usr/sbin/usr/local/bin/usr/local/sbin)在/etc/zshrc和source/etc/zshrc中无济于事。root@dev:/home/dev#geminstallbundlerSuccessfullyinstalledbundler-1.7.12Parsingdocumentationforbundler-1.7.

Windows PowerShell在CSV文件中的每个对象的开头添加文本

我有这样的CSV文件:samaccountname,enableduser1,falseuser2,false我想在samaccaountname列中使用每个条目,并添加此确切的文本:C:\Users\然后,我需要创建一个新的CSV文件,该文件仅包含一个带有这样的新数据的单列:headerC:\Users\User1C:\Users\User2C:\Users\User3完成此操作的最佳方法是什么?看答案这只猫皮肤的另一种方法是通过Select-Object使用自定义属性创建:import-csv$yourcsv|Select-Object*,@{Name="fullpath";Express

ruby-on-rails - 运行 bundle install 时出现 Nokogiri 错误

尝试让克隆的Rails应用程序运行。运行bundleinstall时出现此错误:Usingmini_portile(0.5.0)Installingnokogiri(1.6.0)Gem::InstallError:nokogirirequiresRubyversion>=1.9.2.Anerroroccurredwhileinstallingnokogiri(1.6.0),andBundlercannotcontinue.Makesurethat`geminstallnokogiri-v'1.6.0'`succeedsbeforebundling.但这是rbenvversion的输出: