Can't Install Rails - Windows 8, Ruby 2.0.0p247

I'm relatively new to Ruby on Rails. I tried to install it using this guide , but I seem to get an error

ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --include-dependencies

I am running Windows 8, and my version of Ruby is 2.0.0p247. If someone could tell me what it is, how I can fix it, etc., That would be great. Thank!

+1
source share
1 answer

I slowly created my own personal reference on how to run the descent development environment (including git, ruby, ruby โ€‹โ€‹devkit and rails) on Windows. I used this on Windows 7, 8 and 10. It is time to finally send it somewhere.

Ruby 2.1.6 32-bit, 64- . , ruby โ€‹โ€‹2.2.2, , . , , , , Git Windows GitExtensions, . , , , msys.

  • PuTTY 64-bit
  • Java JRE 64-
  • PostgreSQL 64-
  • NodeJS 64-
  • msysgit 32-
  • KDiff3 64-
  • GitExtensions 64-bit
  • ruby โ€‹โ€‹2.1.6 32-
  • ruby โ€‹โ€‹DevKit 32-

C:\Ruby21\bin;C:\RubyDevKit\bin;C:\RubyDevKit\mingw\bin; C:\Users\Username\AppData\Roaming\npm\; C:\Program Files\Java\jre1.8.0_60\bin

  1. http://curl.haxx.se/ca/cacert.pem C:\RubyDevKit\ssl\certs
    • :

SSL_CERT_FILE=C:\RubyDevKit\ssl\certs\cacert.pem

  1. Windows DevKit.
  2. Windows (, Admin?), : gem install rails
    • ( )
  3. , : gem update rake
    • yes, rake Ruby21/bin, .

, !

?

  • therubyracer - :
    • poltergeist (phantomjs) capybara-webkit
    • bootstrap-sass less-rails-bootstrap
0

Source: https://habr.com/ru/post/1699579/


All Articles