十一月
02

请不要随意更新 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

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>