Rails 教程 3.6,'bin' 未被识别为内部或外部命令 [英] Rails tutorial 3.6, 'bin' is not recognized as an internal or external command
问题描述
我被困在 railstutorial.org 的第 3.6 节,特别是当我运行时
I'm stuck at section 3.6 of railstutorial.org, specifically when I run
> bin/rspec spec/
在我的 Windows 7 机器上,我得到bin"未被识别为内部或外部命令.
on my Windows 7 machine I get 'bin' is not recognized as an internal or external command.
我已经输入了
> bundle --binstubs
我这里没有 RVM.我应该安装它吗?
I don't have RVM on here. Should I install it?
当我进入 cd bin 并执行 rspec 时,我得到
When I go cd bin and execute rspec, I get
'load': cannot load such file
我的宝石文件:
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
提前致谢.
推荐答案
只是想重申一下作者对这部分的警告:
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."
作为旁注...我最初尝试在 Windows 机器上使用 ruby on rails,但我发现很多支持社区使用苹果或 linux 机器.自从我开始双启动进入 Ubuntu 以来,我一直很开心.转换比我预期的要容易,而且我遇到的 gem 问题也更少.
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.
这篇关于Rails 教程 3.6,'bin' 未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!