Closed frissyn closed 2 years ago
Hi,
I got this gem working on Windows 10 x86_64 using Git Bash (and I think the standard Command Prompt) with the MSYS2 and MingW toolchains installed, but using ruby-3.0.2
How about you try that Ruby version first (ruby-3.0.2) just in case there is an issue with the newer Ruby versions?
Also, what version of Windows are you on (10 or 11) and are you on an x86_64 (aka x64) CPU architecture?
Thanks for the swift response!
I'm currently using MINGW provided out of the box with Git Bash and Git GUI on Windows 10 x86_64. I'll try your suggestion of downgrading Ruby and come back to you in a bit.
OK, I just installed Ruby 3.1.1 from RubyInstaller in Windows 10 x64 and I was able to install the glimmer-dsl-gtk 0.0.9 gem successfully from the Command Prompt (I encountered one tiny error, but it did not stop any of the GTK gems from installing successfully).
Afterwards, I ran this command and it brought up Hello, World! successfully:
ruby -r glimmer-dsl-gtk -e "require 'samples/hello/hello_world'"
I updated the Windows instructions in the README with more details, which I am including below for your convenience.
Please follow the updated instructions exactly and let me know if installing glimmer-dsl-gtk works afterwards from the Command Prompt. Also, please avoid the mingw shell for the time being. I want to know if the installation works from the Command Prompt as the simplest scenario to start.
Make sure to install Ruby+Devkit from RubyInstaller. When prompted to run ridk install
at the end, go ahead with it, and then make sure to run all 3 commands in order:
Sorry for replying so late! Thanks a bunch for the in-depth guide.
After some poking around it looks like the residue left behind when messing around JRuby, RVM, and MSYS2 was causing some errors with gem
and ruby
. I uninstalled everything and went through the steps you listed and was able to get everything set up, so the problem was definitely on my end, though I wasn't able to pin down exactly what it was.
Edit: Installing from both Command Prompt and Git Bash works just fine with a clean Ruby+Devkit installation.
Thanks again!
When running
gem install glimmer-dsl-gtk
, I run into an error that saysFailed to build gem native extension.
It looks like the gem
glib2
is what's throwing the error, but I'm running the command from MINGW, with the MSYS2 toolchain installed, so I can't really pin down what exactly is causing the problem.Full Error: