no such file to load -- readline
来源:互联网 发布:最新网络暴利偏门项目 编辑:程序博客网 时间:2024/05/20 18:18
安装rails后进入控制台出现如题错误:
- /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
- 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
rvm pkg
install
readline
2
rvm remove 1.9.2
3
rvm
install
1.9.2 --with-readline-
dir
=$rvm_path/usr
这中方法比较慢 还有一种比较好的方法,实践可用
On Debian/Ubuntu:
apt-get install libreadline-dev
Or on RHEL/CentOS, try
yum install readline-devel
然后进入./rvm/src/ruby_path/ext /readline ruby extconf.rb make && make install
然后就ok了
- no such file to load -- readline
- no such file to load -- readline
- rails no such file to load — readline
- rails console" 提示`require': no such file to load -- readline 的问题
- : "no such file to load -- sqlite3" Rails
- no such file to load -- zlib
- ruby can not load such file readline
- 解决no such file to load — Mysql
- install rubyonrails( no such file to load -- zlib )
- Rubygem 缺少no such file to load zlib 错误
- `require_frameworks': no such file to load -- net/https (RuntimeError)
- rails no such file to load — mysql
- ROR no such file to load -- sqlite3 解决方法
- Solve: no such file to load -- sqlite3/sqlite3_native (LoadError)
- gem install 时报错,no such file to load -- zlib
- Ruby on rails: no such file to load -- openssl
- LoadError (no such file to load — openssl)
- no such file to load — zlib (LoadError)
- 反应性扩展框架(Reactive Extensions)
- 安装archlinux
- HDU 1711 裸KMP
- C++标准转换运算符dynamic_cast
- bat 文件编写!
- no such file to load -- readline
- bat 文件编写 !
- java softReference 详解
- C++中引用的用法
- SBJSON在xcode的应用中需要注意的
- struts validation
- hibernate(3.6)的添删改查研究
- HDU 2087 水KMP
- 2012年 上半年 第四周 C++程序设计 (八)