When trying to run ScottKit from the terminal in macOS Monterey, I keep getting:
% ~/Downloads/scottkit-1.6.0/bin/scottkit
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- scottkit/game (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from ~/Downloads/scottkit-1.6.0/bin/scottkit:19:in `<main>'
Does it have to be installed in some special location? I have tried installing Ruby with Homebrew, but there seems to already be a version provided by the system. I know nothing about running Ruby programs.
EDIT: I finally got it to run by changing the lines
require 'scottkit/game'
require 'scottkit/withio'
in the source to the absolute paths of the files game.rb
and withio.rb
on my HDD, but I imagine there is a better way.