Answer the question
In order to leave comments, you need to log in
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
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.
Step #1: Install Linux...
Seriously, or at least a virtual machine.
No such file or directory - "C:/
Program Files/RailsInstaller/Ruby2.0.0/bin/ruby.exe" (Errno::ENOENT)
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.
https://putshello.wordpress.com/2015/03/03/easy-ra... Try Vagrant. This will help you quickly deploy a ready-made development environment on Windows.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question