First steps with Sequel, sorry for a very newbie question! The following program doesn't work:
#!/usr/bin/env ruby require 'rubygems' require 'sequel' puts "OK" I get the warning "/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_rquire.rb:55:in 'require': cannot load such file -- /usr/local/bin/sequel (LoadError)" and execution aborts. Same thing if I replace "require 'sequel'" with "require '/usr/local/bin/sequel'" or if I add "/usr/local/bin" to the PATH variable. Running "gem update" and "gem clean" didn't help either. If I replace "require" with "load", things get a little better. I get the warning "/var/lib/gems/2.3.0/gems/sequel-4.36.0/lib/sequel/adapters/mock.rb:345: warning: instance variable @shared_adapter not initialized", then the message "Your database is stored in DB". Then irb opens. I type "exit" and then the fourth line is executed (printing message "OK"). If I type "service mysql status" the system says "active (running)". Running "gem list", I have the lines "mysql2 (0.4.4)" and "sequel (4.36.0, 4.35.0)". Software versions: OS X 10.15.5, Virtualbox 5.0.24, Ubuntu Server 5.3.1, MySQL 5.7.12, Ruby 2.3.1, Sequel 4.36.0. What is my error? Thank you very much in advance for your help. -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
