-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake doesn't work in 2.3.0 installer #317
Comments
That fix also worked for me. |
There are other examples of this in the same directory; they are all in the .cmd (where presumably the DOS-based shell would see them), or in the binaries where I don't think they'll be visible except in error reports. In any case, this should be patched somehow in the build process. |
Hmmm, I'll look into this. But the full executable path has never been hard coded like that before. |
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. |
i tried the way you guys said,but it seems didn't work on me. i changed the first line, and the alert was disappear, but the rake file still did not work. |
The issue is caused by You can solve that permantly by installing gem-exefy and ensuring all executables exposed by gems are To install perform https://github.com/bosko/gem-exefy#synopsis The only requirement is RubyInstaller + DevKit in place and working. See the installation instructions on the wiki for the DevKit here Remember to use the correct DevKit for your Ruby installation. |
You can also workaround that by setting
You can apply that to all gems ( ---
gem: --no-document --env-shebang Hope that helps. |
Immensely! Thanks! Joe |
@luislavena does it maybe make sense to make the above ~/.gemrc the default for oneclick installer? |
@wycats I think is possible using |
@luislavena @wycats This is only happening with prepackaging Interestingly enough all the other prepackaged binaries use |
@luislavena Also the way to set the defaults in Gem::ConfigFile::OPERATING_SYSTEM_DEFAULTS.merge!({'gem' => '--env-shebang'}) But any configuration in your |
I solved this issue in RubyInstaller2 here:
https://github.com/oneclick/rubyinstaller2/blob/master/recipes/sandbox/40-generate-rake-cmd.rake
|
On my machine there is no user
Justin
, this is likely this way from the machine where the installer was built.For me it's fixable by changing the first line of the
rake
command to#!/c/Ruby23/bin/ruby.exe
or (because it's in my PATH)#!ruby.exe
The text was updated successfully, but these errors were encountered: