Gem is not loading
AliceOJJm opened this issue · 2 comments
AliceOJJm commented
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)
monora commented
There is no 'rgl.rb' in the rgl gem. You therefore get this error. Please try:
require 'rgl/adjacency'
RGL
monora commented
@AliceOJJm did my answer solve your problem?