简体   繁体   English

当我在Rails应用中运行脚本/控制台时,出现错误readline.bundle

[英]When I run script/console in my rails app, I got error readline.bundle

I have problem with running 'script/console' 我在运行“脚本/控制台”时遇到问题

Environments 环境环境

os : macosx os:macosx

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

rails version : Rails 2.3.2 rails版本:Rails 2.3.2


Loading development environment (Rails 2.2.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): Symbol not found: _rl_filename_completion_function (LoadError) /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)

Referenced from: /usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle 引用自:/usr/local/lib/ruby/1.8/i386-darwin9.6.0/readline.bundle

Expected in: flat namespace 预期于:平面名称空间

  • /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 

Your problem seems to be described here . 您的问题似乎在这里描述。 Specifically, the last comment by Matthew Hutchinson says to do this: 具体来说,马修·哈钦森(Matthew Hutchinson)的最后评论说:

Download ruby source again, extract it, then go into ext/readline in the ruby source directory and type: 再次下载ruby源,解压缩,然后进入ruby源目录中的ext / readline并键入:

ruby extconf.rb 
make
sudo make install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于readline中的错误,我按下按钮时Rails脚本/控制台崩溃 - Rails script/console crashes when I press up button because of bug in readline 该站点运行正常,但是运行“捆绑程序执行度测试”时出现错误-2 - The site is working perfect but I've got an error when I run “bundle exec rake test” -2 该网站运行正常,但是当我运行“ bundle exec rake test”时出现错误 - The site is working perfect but I've got an error when I run “bundle exec rake test” 当我尝试在Rails中运行命令时,我不断收到错误消息(捆绑安装,Rails服务器等) - When I try to run commands in rails, I keep getting an error (bundle install, rails server, etc) 在终端中运行bundle exec时出错 - Error when I run bundle exec in terminal 我在新的Rails应用程序中创建了一个文件,当我运行http:// localhost页面时,我收到一条Missing Template错误消息 - I created a file in my new rails app and when I run the http://localhost page I get a Missing Template error message 当我用ruby 1.9.3运行我的rails4.0应用程序时出现uintptr_t错误 - When I run my rails4.0 app with ruby 1.9.3 getting uintptr_t error 我尝试运行简单的Rails应用程序时出错,我该如何解决? 我输入错误 - Error while i am try to run simple rails app.how can i solve it? i got type error 如何运行ruby脚本,我将其放入我的Rails应用程序中的/ lib / tasks /目录中一次? - How do I run a ruby script, that I put in my /lib/tasks/ directory in my Rails app, once? 为什么在运行捆绑软件时Rails安装新版本? - Why is rails installing a newer version when I run bundle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM