Rails - The system cannot find the path specified
Go into C:\RailsInstaller\Ruby2.2.0. In some of the .bat files, you'll find the following:
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe" "C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.2.0/bin/tilt" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe" "%~dpn0" %*
Delete that and paste in the text below:
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
The system cannot find the path specified after reinstalling RoR
The rails.bat file contained a wrong path. @"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe"
Maybe it is one of the developers that worked on this.
A temporary fix is to change the rails.bat file as the below code:
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
The system cannot find the path specified, whenever gem
Given the directory paths showing in your error output it appears that you are running on Windows. The problem is that the whenever gem is a wrapper for the unix/linux command 'cron' which doesn't exist on Windows. See this answer for more details.
Related Topics
Ruby: How to Add "# Encoding: Utf-8" Automatically
Ruby on Rails - Drop Down Box on Change Event
How to Find the Namespace/Module Name Programmatically in Ruby on Rails
Colon (:) Appears as Forward Slash (/) When Creating File Name
How to Require Active Record Working Outside of Rails
Rails Route to Username Instead of Id
How to Use Hash Keys as Methods on a Class
Yaml How Many Spaces Per Indent
How to Add Migration with Multiple References to the Same Model in One Table? Ruby/Rails
How to Generate Zip File Without Saving to the Disk with Ruby
Installing Ruby on MAC Os X 10.8.2
How to Get the Current Time as 13-Digit Integer in Ruby