Closed enumag closed 2 years ago
Hi, @enumag
It seemed that you installed a gem right away after you installed Ruby with devkit. But in my latest experience on Ruby 3.1.1, you should reboot first to make the env path work.
The ridk
command is surely a script like ridk.cmd
and ridk.ps1
, so I think you can try gem install zlib
again when your ridk
command not shows:
ridk: command not found
Hope it helps.
Hi @enumag - thanks for the detailed information. Can you try this:
I have edited the comment based on what I see with my setup.
I changed my path to the minimal:
$ path
PATH=C:\Ruby30-x64\bin;d:\tools;c:\Windows\System32
Then, I tried to install zlib and it worked fine for me.
$ gem install zlib
Fetching zlib-2.1.1.gem
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed zlib-2.1.1
Parsing documentation for zlib-2.1.1
Installing ri documentation for zlib-2.1.1
Done installing documentation for zlib after 1 seconds
1 gem installed
Just to confirm - I know you downloaded the version with the DevKit but did you install the DevKit? This all the more because of this note:
The development kit should be installed I think. I went through the steps during installation since you said: "You have to
install development tools first.
Could you take a look at the step-by-step instructions on this page: https://notepad.onghu.com/2021/ruby3-windows-day0-install-hello_world/ to see if you did all the steps? It's written for 3.0 but should be identical for Ruby 3.1 also.
I will install Ruby 3.1 on my side and try the same steps later today to see if I can replicate the issue that you are facing.
It started to work on it's own, even without reboot. The only thing I'm aware of doing differently is that I tried it from Window's command prompt instead of from git bash I got installed along with git for windows. Strange but I'm not complaining.
I met the same problem. And my solution is change the rubyinstaller-devkit from 3.1.1(newest) to 3.0.3. And I solve it.
What problems are you experiencing?
Steps to reproduce
rubyinstaller-devkit-3.1.1-1-x64.exe
)gem install zlib
The development kit should be installed I think. I went through the steps during installation. Not sure why the error above still says "You have to install development tools first."
Also I made sure to install Ruby into a directory without spaces since I read that it might cause issues.
What's the output from
ridk version
?I double checked that
C:\Ruby31-x64\bin
is inPATH
but there is noridk
orridk.exe
there. Onlyridk.cmd
andridk.ps1
. Not sure why.If I open terminal in
C:\Ruby31-x64\bin
and run./ridk.cmd version
then I get this: