I was trying to read data from mysql and output it on Sketchup Webdialog with ruby. I have successfully connected ruby with sql, and ruby with sketchup Make. However, the command: require ‘mysql’ always puts a error: LoadError: cannot load such file – mysql, no matter I write this in a ruby file or directly in the ruby console in sketchup UI. Hope to know what can I do to fix this problem. Thx.
The ruby version is 2.1.4,
And mysql is Ver 14.14 Distrib 5.6.22, for osx10.10 (x86_64) using EditLine wrapper
Sketchup is 2015 Make
Error: #LoadError: cannot load such file – mysql
require' /Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire’