sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Cannot find current ruby version of rugged

Open slmjkdbtl opened this issue 6 years ago • 1 comments

I'm using the sonic-pi-tool cli tool and it is using the app/server/ruby/bin/sonic-pi-server.rb script to start the server, which is requiring rugged.rb, which is requiring

  ruby_api = RbConfig::CONFIG['ruby_version']
  require_relative "../../../rb-native/#{ruby_api}/rugged"

but there's only a 2.4.0 and 2.5.0 under rb-native/, my ruby version is 2.6.0, which it couldn't find. Renaming any of those two to 2.6.0 works, but feels like an ugly hack. Wondering if it's possible to add more versions under rb-native/, or change this particular requiring logic to make it work with all ruby versions?

slmjkdbtl avatar Jan 23 '19 18:01 slmjkdbtl

I used gem install rugged to get the latest version and then made the 2.6.0 directory myself and put the rugged.so there. However, I do agree that it should be bundled correctly.

lexmortis avatar Jan 30 '19 21:01 lexmortis