当我在我的rails应用程序中运行脚本/控制台时,我收到了错误readline.bundle

时间:2009-07-22 12:58:21

标签: ruby-on-rails

我在运行'script / console'

时遇到问题

环境

os:macosx

ruby​​版本:ruby 1.8.7p5000(2009-03-03)[i386-darwin9.6.0]

rails版本:Rails 2.3.2


加载开发环境(Rails 2.2.2)

/usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle:dlopen(/usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle,9):找不到符号:_rl_filename_completion_function(LoadError)

参考文献:/usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle

期望:平面命名空间

  • /usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle

    from /usr/local/lib/ruby/1.8/irb/completion.rb:10
    
    from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
    
    from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
    
    from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
    
    from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
    
    from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
    
    from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
    
    from /usr/local/bin/irb:13
    

1 个答案:

答案 0 :(得分:1)

您的问题似乎在描述here。具体而言,马修哈钦森的最后评论说:

  

再次下载ruby源,解压缩   它,然后进入分机/阅读线   ruby源目录和类型:

ruby extconf.rb 
make
sudo make install