A
A
Alexander Pankov2015-03-28 15:57:38
Ruby on Rails
Alexander Pankov, 2015-03-28 15:57:38

How to start a Ruby on Rails server?

Hello, I started to study RoR, I decided to start the server to see what rails created there automatically ... /
as a result I get this ...
DO NOT tell me where to dig?
What is the problem?

C:\WINDOWS\system32>cd /

C:\>cd Sites\demo

C:\Sites\demo>rails server
C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.1.
8/lib/rails/app_rails_loader.rb:37:in `exec': No such file or directory - "C:/Pr
ogram Files/RailsInstaller/Ruby2.0.0/bin/ruby.exe" (Errno::ENOENT)
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/
railties-4.1.8/lib/rails/app_rails_loader.rb:37:in `block in exec_app_rails'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/
railties-4.1.8/lib/rails/app_rails_loader.rb:32:in `loop'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/
railties-4.1.8/lib/rails/app_rails_loader.rb:32:in `exec_app_rails'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/
railties-4.1.8/lib/rails/cli.rb:5:in `<top (required)>'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/rubygems/c
ore_ext/kernel_require.rb:55:in `require'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/rubygems/c
ore_ext/kernel_require.rb:55:in `require'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/
railties-4.1.8/bin/rails:9:in `<top (required)>'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/bin/rails:23:in `load'
        from C:/Program Files/RailsInstaller/Ruby2.0.0/bin/rails:23:in `<main>'

C:\Sites\demo>

Answer the question

In order to leave comments, you need to log in

7 answer(s)
I
Ilya Bondarenko, 2015-03-28
@PankovAlxndr

Try to install RailsInstaller not in Program Files, but directly on drive C.
The error is most likely due to a space between Program and Files. Ruby is very sensitive to this.

E
Eugene Burmakin, 2015-03-28
@Freika

Step #1: Install Linux...
Seriously, or at least a virtual machine.

R
Rikcon, 2015-03-28
@Rikcon

No such file or directory - "C:/
Program Files/RailsInstaller/Ruby2.0.0/bin/ruby.exe" (Errno::ENOENT)

S
selen11, 2015-04-01
@selen11

Try https://bitnami.com/stack/ruby/installer#windows - it will save you unnecessary trouble on windows but install a bunch of unnecessary things that you can disable.
It's best not to use windows - this will slow down learning, but will increase your skill in fixing errors under windows.

V
Vitaly Liber, 2015-05-07
@VitalyLiber

https://putshello.wordpress.com/2015/03/03/easy-ra... Try Vagrant. This will help you quickly deploy a ready-made development environment on Windows.

A
artem_music, 2015-07-10
@artem_music

At the beginning of the study of rails, I struggled with the settings and installation. Then I decided to take a chance and spend the evening installing Ubuntu with the settings and all the problems disappeared. Now there are just two systems on the PC: Ubuntu and Windows.

N
Neznaikin, 2015-08-13
@Neznaikin

That's right, rails and Windows are incompatible things. Checked on myself.
In general, rubymine is a good go. Even under Windows!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question