griest
griest

Reputation: 410

rake on windows: bad interpreter: permission denied

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

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

My name is not Justin, there are no users on my computer or network named Justin, and I don't even have any friends named Justin. What is causing this issue?

Upvotes: 8

Views: 1691

Answers (1)

griest
griest

Reputation: 410

Go into the bin folder of your ruby installation 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 your ruby executable if its not in your PATH.

Upvotes: 11

Related Questions