How to run ScottKit?

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.

1 Like

Although Raspberry Pi has Ruby, I still had to do a full install. Search for “ruby full install”

1 Like

Thanks! It was the command sudo gem install scottkit I was missing.

You would this would be mentioned somewhere in the documentation, but apparently not.

3 Likes