我在运行twitter的ruby文件时遇到问题,我按照说明安装了nokogiri和ausca。出于某种原因,当我尝试运行该文件时,它给了我这个错误:
C:\用户\乔纳森> C:\用户\ jonathan.gem \红宝石\ 2.2.0 \ BIN \ twitter_bot.rb
C:/Users/jonathan/Ruby/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require
.rb:54:在`require':无法加载这样的文件 - nokogiri / nokogiri(LoadError)
此后出现了更多错误,但我认为它主要是因为这个错误。我尝试运行sudo命令来安装它,但sudo在命令提示符下使用ruby并不适合我。我只是想运行一个基本的ruby文件,没有什么疯狂所以请帮忙。在此先感谢,熬夜试图让这个工作。
以下是我对gem env的结果:
C:\ Users \ jonathan \ Ruby> gem env
RubyGems环境:
- RUBYGEMS VERSION:2.4.6
- RUBY VERSION:2.2.1(2015-02-26 patchlevel 85)[x64-mingw32]
- INSTALLATION DIRECTORY:C:/Users/jonathan/Ruby/lib/ruby/gems/2.2.0
- RUBY EXECUTABLE:C:/Users/jonathan/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY:C:/ Users / jonathan / Ruby / bin
- SPEC CACHE DIRECTORY:C:/Users/jonathan/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY:C:/ ProgramData
- RUBYGEMS PLATFORMS:
- GEM路径:
- C:/Users/jonathan/Ruby/lib/ruby/gems/2.2.0
- C:/Users/jonathan/.gem/ruby/2.2.0
- GEM配置:
- :update_sources =>真
- :verbose =>真
- :backtrace =>假
- :bulk_threshold => 1000
- 远程来源:
- SHELL PATH:
- C:\ Program Files(x86)\ ActiveState Komodo Edit 8 \
- C:\ Windows \ System32下
- C:\视窗
- C:\ Windows \ System32下\ WBEM
- C:\ Windows \ System32下\ WindowsPowerShell \ V1.0 \
- C:\ Program Files(x86)\ ATI Technologies \ ATI.ACE \ Core-Static
- C:\用户\乔纳森\红宝石\ BIN