Rake on windows: poor interpreter: permission denied

I have JRuby and Git for installed windows. Then I installed Ruby 2.3 x64 using RubyInstaller. Then I installed x64 devkit. I installed json gem and it worked correctly. Running rake --version gives me an error:

bash: / c / Ruby23-x64 / bin / rake: C: /Users/Justin/Projects/rubyinstaller/sandbox/ruby23_mingw/bin/ruby.exe: poor interpreter: Permission denied

My name is Justin, there are no users on my computer or network called Justin, and I donโ€™t even have friends named Justin. What causes this problem?

+8
ruby rake
source share
1 answer

Go to the bin folder of your ruby โ€‹โ€‹setup and edit the rake file. Change the first line from #!C:/Users/Justin/Projects/rubyinstaller/sandbox/ruby23_mingw/bin/ruby.exe to #!ruby.exe or the absolute path to the ruby โ€‹โ€‹executable file if it is not in your PATH.

+10
source share

All Articles