When I am installing the google-protobuf gem then I am getting the following error in console.
’
ERROR: Failed to build gem native extension.
current directory: C:/Users/Ajay/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Gems64/gems/google-protobuf-3.7.0/ext/google/protobuf_c
C:/Program\ Files/SketchUp/SketchUp\ 2021/Tools/bin/ruby.exe -I C:/Program\ Files/SketchUp/SketchUp\ 2021/Tools/RubyStdLib -r ./siteconf20220131-168-146xtyp.rb extconf.rb
extconf failedNo such file or directory - C:/Program Files/SketchUp/SketchUp 2021/Tools/bin/ruby.exe
Gem files will remain installed in C:/Users/Ajay/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Gems64/gems/google-protobuf-3.7.0 for inspection.
Results logged to C:/Users/Ajay/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Gems64/extensions/x64-mswin64-140/2.7.0/google-protobuf-3.7.0/gem_make.out'
using following source code
begin
installer = Gem::DependencyInstaller.new();
if (version == nil) then
installer.install(name);
else
installer.install(name, version);
end
rescue Exception => e
puts "Error in gem install :#{e}"
return false;
end
Any help would be appreciated.