rgl icon indicating copy to clipboard operation
rgl copied to clipboard

Gem is not loading

Open AliceOJJm opened this issue 1 year ago • 2 comments

I appreciate this library exists, but I could not use it

ruby-3.2.2 Rails 7.1.2 Mac M1

rails new testrgl --api --skip-action-mailer --skip-action-cable --skip-test --skip-active-record

gem install rgl

irb/rails console

require 'rgl'

=> .rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require': cannot load such file -- rgl (LoadError)
RGL # or any RGL constant
=> (irb):1:in `<main>': uninitialized constant RGL (NameError)

AliceOJJm avatar Dec 14 '23 20:12 AliceOJJm

There is no 'rgl.rb' in the rgl gem. You therefore get this error. Please try:

require 'rgl/adjacency'
RGL

monora avatar Dec 15 '23 10:12 monora

@AliceOJJm did my answer solve your problem?

monora avatar Dec 25 '23 07:12 monora