版本是:
bash-3.2$ rails -v
Rails 3.2.9
我的 ruby 是 MacOSX 上的内置 ruby:
bash-3.2$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
bash-3.2$ which ruby
/usr/bin/ruby
我的问题是在rails new
(run bundle install
)的最后一步,rails似乎需要连接互联网才能下载一些包。通常我需要 5 分钟等待rails
使用rails new
.
我想知道某些东西是否没有为我的计算机上的 rails 配置好。
另一个奇怪的是,在我完成后rails new PROJECT_NAME
,它显示:
Using sqlite3 (1.3.6)
Using uglifier (1.3.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
但是,当我尝试时,似乎sqlite3
已经安装了:
bash-3.2$ bundle show sqlite3
Could not locate Gemfile
它仍然抱怨sqlite3
没有安装。也许这rails new
就是速度慢的原因(即使sqlite3
已经安装过一次。它仍然需要下载捆绑包)
之前bundle install
,rails 询问我的系统密码:
Enter your password to install the bundled RubyGems to your system
但是我仍然不确定这些软件包是否已经安装到系统中,因为bundle show sqlite3
失败了。
有没有人知道rails new
我的电脑为什么这么慢?谢谢!