0
|
I installed Rails from http://railsinstaller.org/en on my Windows 7 desktop and the installation went fine. However, after installation when I do:
|
--------------------------------------------------------------------------------------------------------------
After much digging around I found errors in a few of the
*.bat
(nokogiri, scss,...) files located in C:\path\to\RailsInstaller\Ruby2.2.0\bin
.
This was the content of
rails.bat
:@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/rails" %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" %*`
After removing the hardcoded paths
C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\
, the rails
command reports the correct version:C:\path\to\RailsInstaller3.2\Ruby2.2.0\bin>rails -v
Rails 4.2.5.1
----------------------------------------------------------------------------------------------------------------
goto c:\railsinstaller\ruby\bin\
gem install rails
-----------------------------------------------------
goto c:\RailsInstaller\develpmentkit\
-> ruby dk.rb init
-> ruby dk.rb install
if it won't work last command then edit the "config.yml"
--------------------------------------------------------
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:\RailsInstaller\Ruby2.3.0
--------------------------------------------------
=> rails new myrubyblog
if any gems fail follow the above procedure
---------------------------------------------------------------------
error installing websocket
==> goto devkit
-------------------------------------------------------------------
*any gems installation problem try below
--------------------------