我正在尝试学习rails3。
我尝试遵循 guides.rails.info 中的安装指南,我安装了
sudo gem install rake rack-test rack-mount erubis mail
sudo gem install tzinfo builder i18n memcache-client
sudo gem install text-format thor
和轨道 3 通过
sudo gem install rails --pre
现在我创建了一个新应用
rails abc
并尝试
rake db:create
哪个失败了
Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the sources.
所以我尝试安装sqlite3-ruby
sudo gem install sqlite3-ruby
哪个失败了
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
所以我通过 apt-get 安装它
sudo aptitude install libsqlite3-ruby1.8
.
并且仍然得到同样的错误rake db:create
。