JRuby EventMachine no such file to download

I have included EventMachine in JRuby (I am using Win32). When I try the server example, I get an error when

require 'eventmachine'

Mistake:

C:\dev\em>jruby server.rb

server.rb: 1: in `require ': there is no such file to load - eventmachine (LoadError) from server.rb: 1

But the stone is set!

C:\dev\myapp>jruby -S gem install eventmachine
Successfully installed eventmachine-0.12.8-java
1 gem installed
Installing ri documentation for eventmachine-0.12.8-java...
Installing RDoc documentation for eventmachine-0.12.8-java...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README
+3
source share
2 answers

You need to download RubyGems first,

require 'rubygems'
+8
source

Pearls cannot be set for jruby. Tryjgem install eventmachine

0
source

Source: https://habr.com/ru/post/1718038/


All Articles