1
1
123 1232016-09-06 13:53:24
Ruby on Rails
123 123, 2016-09-06 13:53:24

Rails new: The system cannot find the specified path?

I decided to learn Ruby on Rails, downloaded - railsinstaller.org/ru-RU , installed it. I wrote Rails new on the command line. Answer: The system cannot find the specified path. I installed rails on ubuntu and ended up with the gem not being able to pull up mysql. But I'm now interested on Windows, what's the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RsT1992, 2017-01-05
@JustFool

Good day, if the problem is still relevant, there is an answer (for subsequent errors, I am not responsible)
And so to fix this error you need to:
1. Follow the path to rails.bat (for those who don’t know, C:\RailsInstaller\Ruby2 is set by default .3.0\bin rails.bat );
2. Open it with a notepad;
3. Erase everything and paste this path
@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" %*

4. Save, type rails -v into cmd again and voila.
Thank you for your attention.
For clarity, I leave a picture
57d63b4f47e94db48e12dded648f0e1a.jpg

A
airwall, 2016-09-08
@airwall

I'm not sure, but it seems that in order for the command line to work, rails newyou need Node.js

S
s_katala, 2017-08-24
@s_katala

Through Git Bash there are no such problems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question