-
Notifications
You must be signed in to change notification settings - Fork 117
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
Bundle and Rails Command Destination not found #70
Comments
I think I have the same problem. When I try to install the latest version of rails on windows I get a rails.bat which looks thinks ruby.exe is at:. I'm guessing "emachnic" is one of the devs that worked on this? Installing the older version of RailsInstaller fixed this problem. |
I'm currently testing a new patch version. |
I've got no idea why this is not working properly. For the time being, go ahead and reinstall the gems you need. |
Change path in bundle.bat and rails.bat file. Thanks @anirudhy and @dacoinminster |
Just reinforcing what was already said. running "bundle" or "rails" gives me the following: C:\RailsInstaller\Ruby2.2.0\bin>rails And as mentioned above, I also see "emachnic" in a filepath bundle.bat. Guessing this would only work on your machine. Thank you, |
Are there any plans to fix this? RailsInstaller current Windows version is non functional when installed using the official package. To help clarify, there are actually over a dozen batch files in the ruby2.2.0 bin folder that have hard coded paths to the stage folder on emachnic's personal pc. |
@nullnvoid Please submit a patch. I have no idea how to fix this right now |
@emachnic I'm building RailsInstaller locally, and I can't repro the user-specific paths embedded in
Can you rebuild and see if you still have your home directory embedded in the If you're still seeing the issue, then assuming I'm able to build the final .exe I'd be happy to submit it for testing and deployment as a replacement for the current broken build. |
Actually scratch that, I was on master. I do see the issue on the ruby2.2 branch. |
My guess now is that this has something to do with a differing behavior in RubyGems on windows between Ruby 2.0 and 2.2. |
Just search for every *.bat file inside the C:\RailsInstaller\Ruby2.2.0\bin folder which contains "emachnic" paths, and replace the whole content of them with this code:
|
@jpmermoz the problem is that the files are generated this way during the build process. So it's going to crop up again with every build, until someone can get to the root of why the .bat files are generated that way. |
@avdi you're right.. I was just proposing a temporal solution for anyone having this issue after installing everything on windows |
I think it's likely a change in how RubyGems makes .bat stub files. I'm not ready to say it's bug, though. In the common case, generating stubs with hard-coded paths makes sense. I'm not sure they were ever intended to be redistributed like this. |
It looks like there's some kind of stage/production setting that has been On 12 April 2016 at 08:47, Avdi Grimm [email protected] wrote:
|
I think the part that's unanticipated here is that binstub batch files It looks like there's some kind of stage/production setting that has been On 12 April 2016 at 08:47, Avdi Grimm [email protected] wrote:
— |
Any updates on this? Trying to get into ruby on rails programming, but kinda tough when the go-to installer doesn't even work. |
If youre looking to get started, just go to an earlier version. http://github.com/railsinstaller/railsintaller-windows/release Just keep going backwards until you find a version that doesnt have this error. And remember: https://gist.github.com/fnichol/867550 If youre just starting out, youre not gonna miss out on much by going to an earlier version. |
This bug is often followed by the windows ssl cert problem, one or both of which prevent an alarming number of those wanting to learn rails from even starting. I'm sure there are many who turn away and never chime in anywhere. I hope these entry-barrier bugs soon receive the community attention they probably deserve. Unfortunately, it is out of mine and many others expertise. So please let's all pass this plea around to friends who know how to cook on Windows. |
This probably deserves a thread of its own, but:
I know this project must be a lot of effort to maintain. These days, as far
as I can tell, Chocolatey seems to work great for installing all the
necessities for Ruby on Rails development. Does it make sense to keep
offering a separate RailsInstaller?
I am *not* trying to denigrate the great work here. I'm just guessing that
nobody really loves maintaining this kind of stuff. Now that there's a
half-decent open source package manager on Windows, maybe that time could
be spent elsewhere?
…On Wed, Dec 7, 2016 at 6:34 PM, michael-wise ***@***.***> wrote:
This bug is often followed by the windows ssl cert problem, one or both of
which prevent an alarming number of those wanting to learn rails from even
starting. I'm sure there are many who turn away and never chime in
anywhere. I hope these entry-barrier bugs soon receive the community
attention they probably deserve. Unfortunately, it is out of mine and many
others expertise. So please let's all pass this plea around to friends who
know how to cook on Windows.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAD1nr75nyutJolUVxPPpy2JjpuSrbGks5rF0KfgaJpZM4HZqGF>
.
|
The advantage that RailsInstaller would offer is that it automatically sets
up the DevKit but really, you are very correct.
…On Thu, Dec 8, 2016 at 11:01 AM Avdi Grimm ***@***.***> wrote:
This probably deserves a thread of its own, but:
I know this project must be a lot of effort to maintain. These days, as far
as I can tell, Chocolatey seems to work great for installing all the
necessities for Ruby on Rails development. Does it make sense to keep
offering a separate RailsInstaller?
I am *not* trying to denigrate the great work here. I'm just guessing that
nobody really loves maintaining this kind of stuff. Now that there's a
half-decent open source package manager on Windows, maybe that time could
be spent elsewhere?
On Wed, Dec 7, 2016 at 6:34 PM, michael-wise ***@***.***>
wrote:
> This bug is often followed by the windows ssl cert problem, one or both
of
> which prevent an alarming number of those wanting to learn rails from
even
> starting. I'm sure there are many who turn away and never chime in
> anywhere. I hope these entry-barrier bugs soon receive the community
> attention they probably deserve. Unfortunately, it is out of mine and
many
> others expertise. So please let's all pass this plea around to friends
who
> know how to cook on Windows.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#70 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAAD1nr75nyutJolUVxPPpy2JjpuSrbGks5rF0KfgaJpZM4HZqGF
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKUOmm0WBfxSSr5h_8AaRpPecsHKJIzks5rGDfvgaJpZM4HZqGF>
.
|
Hi all, please download the latest version of RI with Ruby 2.2 and let me know if that resolves your issue. |
@emachnic Still experiencing the same issue, had to edit rails.bat and bundle.bat in order to make this work. (This is with Ruby 2.3 on Windows 10 Enterprise - attempted install with elevated permissions) |
I just saw this when trying to upgrade my existing installation on Windows from Ruby 2.0 to 2.2. If the problem only lies with RailsInstaller but not RubyInstaller, then can I just install Ruby 2.2 using RubyInstaller? The inferior/lack of Windows support is not good news, but RailsInstaller is still a popular tool for Windows users trying to learn Rails. Although, the advanced users will eventually move on to other platforms for more serious work. |
INstalled 2.2 version on windows 10 64bit. No issues!!! |
Still relevant. |
Just replaced D:\RailsInstaller\Ruby2.3.0\bin*.bat with the patch. There are 17 files. |
Bundle and Rails command are not working from CMD in 64 bits v3.2.0. I checked the bat file in the ruby directory and found that you added the static file destination for the ruby.exe.
Please fix that.
The text was updated successfully, but these errors were encountered: