0
我想運行一個ruby腳本,它基本上是一個Stomp客戶端,可以調用ActiveMQ代理。運行ruby腳本時出錯
當我運行該腳本,我得到這個錯誤:
going to startC:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:5
4:in `require': cannot load such file -- stomp (LoadError)
from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
from C:/Users/lokesh.kumar/Documents/issues/ActiveMQ-slowness/activemq-c
acti-plugin.rb:34:in `<main>'
以下是命令的gem env
C:\Users\lokesh.kumar>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.5.1
- RUBY VERSION: 2.2.5 (2016-04-26 patchlevel 319) [x64-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby22-x64/lib/ruby/gems/2.2.0
- RUBY EXECUTABLE: C:/Ruby22-x64/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby22-x64/bin
- SPEC CACHE DIRECTORY: Z:/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
- RUBYGEMS PLATFORMS:
- ruby
- x64-mingw32
- GEM PATHS:
- C:/Ruby22-x64/lib/ruby/gems/2.2.0
- Z:/.gem/ruby/2.2.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- C:\oracle\product\11.2.0\client_1\bin
- C:\Windows\system32
- C:\Windows
- C:\Windows\System32\Wbem
- C:\Windows\System32\WindowsPowerShell\v1.0\
- C:\Program Files\TortoiseHg\
- C:\Program Files\TortoiseSVN\bin
- C:\Program Files (x86)\Enterprise Vault\EVClient\
- C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
- C:\Program Files (x86)\GitExtensions\
- C:\Program Files (x86)\AMD\ATI.ACE\Core-Static
- C:\Program Files (x86)\Skype\Phone\
- c:\Program Files\TortoiseGit\bin
- C:\Ruby22-x64\bin
- C:\Users\lokesh.kumar\.babun
- D:\Installations\apache-maven-3.2.5\bin
- C:\Program Files\Java\jdk1.8.0_91\bin
我從來沒有在Ruby中工作的結果,所以它可能是一個基本的安裝錯誤。任何指針來解決這個問題?
你安裝了跺腳寶石?請顯示'gem哪個stomp'的輸出。 – Aleksey
@Aleksey:它說「錯誤:無法找到ruby庫文件或共享庫stomp」。你能給我命令來安裝Stomp嗎? – Lokesh
安裝gem run'gem install GEMNAME'。在這種特殊情況下'gem install stomp' – Aleksey