Rails tutorial 3.6, 'bin' is not recognized as an internal or external command

怎甘沉沦 提交于 2019-12-13 04:23:52

问题


I'm stuck at section 3.6 of railstutorial.org, specifically when I run

> bin/rspec spec/

on my Windows 7 machine I get 'bin' is not recognized as an internal or external command.

I have already typed

> bundle --binstubs

I don't have RVM on here. Should I install it?

When I go cd bin and execute rspec, I get

'load': cannot load such file

My gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.13'

group :development, :test do
  gem 'sqlite3', '1.3.5'
  gem 'rspec-rails', '2.11.0'
end

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '3.2.5'
  gem 'coffee-rails', '3.2.2'
  gem 'uglifier', '1.2.3'
end

gem 'jquery-rails', '2.0.2'

group :test do
  gem 'capybara', '1.1.2'
end

group :production do
  gem 'pg', '0.12.2'
end

Thank you in advance.


回答1:


Just thought I'd reiterate the author's warning about this section:

"This section should only be attempted by fairly advanced users and can be skipped without loss of continuity. Among other things, this material is likely to go out of date faster than the rest of the tutorial, so you shouldn’t expect everything on your system to match the examples exactly, and you may have to Google around to get everything to work."

As a side note... I originally tried to use ruby on rails on a windows machine but I found that much of the support community used apple or linux boxes. I have been much happier since I started dual-booting into Ubuntu. The transition was easier than I expected and I have had fewer issues with gems.



来源:https://stackoverflow.com/questions/17241372/rails-tutorial-3-6-bin-is-not-recognized-as-an-internal-or-external-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!