rails console" 提示`require': no such file to load -- readline 的问题
2011-07-13 00:15
561 查看
最近在拼命学rails,这个问题似乎在我两台电脑上都出现过,希望写下来能帮到以后学习的同学吧。症状范例 :
如果尼没有使用RVM,那么可以按照那文中的方法:
如果用了RVM,那么照葫芦画个瓜啦:
////
That is it! Enjoy ~
parano@paranoServer:~/rails_projects/sample_app$ rails console /home/parano/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (LoadError) from /home/parano/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>' from /home/parano/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.9/lib/rails/commands/console.rb:3:in `require' from /home/parano/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.9/lib/rails/commands/console.rb:3:in `<top (required)>' from /home/parano/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.9/lib/rails/commands.rb:20:in `require' from /home/parano/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.9/lib/rails/commands.rb:20:in `<top (required)>' from script/rails:6:in `require'T T尝试了各种方法,直到看到这东西 ,解决方法:首先补上这两个东西(Ubuntu, Debian, mac用户自行修改一下咯)
sudo apt-get install libncurses5-dev sudo apt-get install libreadline5-dev
如果尼没有使用RVM,那么可以按照那文中的方法:
cd /usr/src/ruby-1.8.7-p72/ext/readline ruby extconf.rb make sudo make install
如果用了RVM,那么照葫芦画个瓜啦:
cd ~/.rvm/src/ruby-1.9.2-p180/ext/readline ruby extconf.rb make make install
////
That is it! Enjoy ~
相关文章推荐
- watir 学习问题in `require': no such file to load -- watir (LoadError)
- watir 学习问题in `require': no such file to load -- watir (LoadError)
- require "watir"报装载库文件错误(no such file to load -- watir)
- : "no such file to load -- sqlite3" Rails
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- require "watir"报装载库文件错误(no such file to load -- watir)
- `require_frameworks': no such file to load -- net/https (RuntimeError)
- arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory 问题的解决
- 编译出错提示 error trying to exec 'cc1': execvp: No such file or directory
- rails no such file to load — readline
- 运行ase的sybase central 时提示错误unable to load language dll 'scsslgzh',怎么解决这个问题,
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory"
- CentOS下安装rails,遇到no such file to load -- zlib错误...
- Android问题集锦之二十九:Cannot run program "/xx/build-tools/xx/aapt": error=2, No such file or directory
- 错误 'Cannot run program "/home/uv/IDE/adt/sdk/platform-tools/adb": error=2, No such file or directory
- rails no such file to load — mysql
- Unable to open log device '/dev/log/main': No such file or directory
- Android Studio下NDK开发之"No such file or direct"和“no rule to make target”
- Erlang 编译时出现"no such file or directory" 与 当前工作目录问题