I find the fix for the above problem is very simple.
The problem arises because in the installation directory the package you have takes the default path. For example, let's say that you run the following command: install the package Now, to execute this command, the package batch file must be configured correctly. By default, the batch file will have the following structure:
@ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.3.0\bin\ruby.exe" "C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.3.0/bin/bundle" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.3.0\bin\ruby.exe" "%~dpn0" %
For me, the rails are installed in the C drive: C: \ RailsInstaller \ Ruby2.3.0 \ bin , so the above batch file should be configured something like this:
@ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"C:/RailsInstaller/Ruby2.3.0/bin/ruby.exe" "C:/RailsInstaller/Ruby2.3.0/bin/bundle" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"C:/RailsInstaller/Ruby2.3.0/bin/ruby.exe" "%~dpn0" %
This will solve the above problem.
The above solution should be applied if we are faced with the problem of executing a command.
Pranjal Feb 23 '17 at 20:05 2017-02-23 20:05
source share