views:

191

answers:

1
bash-3.2# rails console
/opt/local/lib/ruby1.9/1.9.1/irb/completion.rb:9:in `require': dlopen(/opt/local/lib/ruby1.9/1.9.1/i386-darwin10/readline.bundle, 9): Library not loaded: /opt/local/lib/libncurses.5.dylib (LoadError)
  Referenced from: /opt/local/lib/ruby1.9/1.9.1/i386-darwin10/readline.bundle
  Reason: no suitable image found. Did find:
/opt/local/lib/libncurses.5.dylib: no matching architecture in universal wrapper
/usr/lib/libncurses.5.dylib: no matching architecture in universal wrapper - /opt/local/lib/ruby1.9/1.9.1/i386-darwin10/readline.bundle
from /opt/local/lib/ruby1.9/1.9.1/irb/completion.rb:9:in `<top (required)>'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.0.beta3/lib/rails/commands/console.rb:3:in `require'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.0.beta3/lib/rails/commands/console.rb:3:in `<top (required)>'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.0.beta3/lib/rails/commands.rb:32:in `require'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.0.beta3/lib/rails/commands.rb:32:in `<top (required)>'
from script/rails:9:in `require'
from script/rails:9:in `<main>'

while "rails server" works pretty well

any help would be appreciated.

+2  A: 

You're missing the ncurses library.
You must install it in order to launch the console.

Damien MATHIEU
i get this error when installing the gem ?!form_wrap.c: In function ‘make_arg’:form_wrap.c:1126: error: ‘struct RArray’ has no member named ‘len’form_wrap.c:1130: warning: format not a string literal and no format argumentsmake: *** [form_wrap.o] Error 1
Waheedi