Ruby/Rails/Mongrel 需要版本匹配
2007年11月2日星期五
请不要随意更新 Ruby 或 mongrel , 在ruby 1.8.5 + mongrel 1.0.4 时会出现以下错误:
NoMemoryError (negative allocation size (or too big)):
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:86:in `sprintf’
改正方法如下:
yay1# ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [x86_64-linux]
yay1# gem list rails*** LOCAL GEMS ***
rails (1.2.5, 1.2.2)
Web-application framework with template engine, control-flow layer,
and ORM.
yay1# gem list mongrel*** LOCAL GEMS ***
mongrel (1.0.4)
A small fast HTTP library and server that runs Rails, Camping, Nitro
and Iowa apps.
注:在 Debian 安装 ruby 1.8.6 (2007-09-23 patchlevel 110) 时,在 Console 下运行 Rails 需要 readline :
sudo apt-get install libncurses5-dev libreadline5-dev
sudo updatedb
slocate ext/ |grep ext/readline
cd ext/readline
sudo ruby extconf.rb
sudo make
sudo make install
标签: Technologies
发表评论
订阅 博文评论 [Atom]
<< 主页