When I type rails console, I get this error:
[root@trebek2 readline]# /usr/local/bin/myapp/script/console
Loading development environment.
/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
solution:
My solution on Ubuntu Linux is:
* apt-get install libncurses5-dev
apt-get install libreadline5-dev
* make the readline module for ruby,
i.e. go to the <ruby_src>/ext/readline,
ruby extconf.rb #generate valid makefile
make
make install
分享到:
相关推荐
标题中的错误信息"`require': no such file to load -- sqlite3/sqlite3_native"是一个常见的Ruby编程语言中的加载错误,通常发生在尝试使用SQLite3数据库驱动时。这个错误表明系统无法找到指定的sqlite3_native库,...
本文实例讲述了Laravel框架访问出错提示:`Warning require(vendorautoload.php) failed to open stream No such file or dire解决方法。分享给大家供大家参考,具体如下: 错误信息: `Warning: require(/...
ruby sample: @echo off cd D:\proj\demo ...rem load test data (it depends on the db:environment and db:migrate tasks) call rake db:load_test_data call ruby script/server webrick @echo on
在本文中,我们将探讨在Ubuntu 16.04系统上安装Ruby 2.7.0时遇到的一个常见问题:`cannot load such file — openssl (LoadError)`。这是一个与Ruby和OpenSSL库集成有关的问题,通常发生在试图安装或运行依赖于...
解决redis集群配置时出现的一个错误;..../redis-trib.rb:24:in `require': no such file to load -- rubygems (LoadError) from ./redis-trib.rb:24 yum install rubygems 相信你既然看到,那就是遇到了这个问题了
解决redis集群配置时出现的一个错误;..../redis-trib.rb:24:in `require': no such file to load -- rubygems (LoadError) from ./redis-trib.rb:24 yum install rubygems 相信你既然看到,那就是遇到了这个问题了
离线安装包,亲测可用
离线安装包,亲测可用
离线安装包,亲测可用
文章目录CentOS 8.0 安装docker 报错:Problem: package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >= 1.2.2-31、错误内容2、分析原因3、解决4、...package docker-ce-3:19.03.2-3.el7.x86_64 require
然后运行yarn build % yarn buildyarn run v1.22.10$ next build> Build error occurredError: Cannot find module 'terser-webpack-plugin'Require stack:- my-app-yarn/node_modules/next-pwa/build-custom-...
Error: Cannot find module 'react-dev-utils/crossSpawn' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) ...
const loadJsonFile = require('load-json-file'); loadJsonFile('./path/to/your/file.json') .then(data => { console.log(data); // 输出解析后的JavaScript对象 }) .catch(err => { console.error('Error ...
离线安装包,亲测可用
const { loadConfig } = require('babel-load-config'); module.exports = { // 其他Webpack配置... module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', ...
4)....Added "--el_injectjcl", "--el_createjcl", and "--el_createdbg" command-line options for ecc32/emake to inject JEDI/JCL debug info, create .jdbg file, and create .dbg file (Microsoft debug format...
:sign_of_the_horns: :sign_of_the_horns: :wrench: 安装npm install --save no-try :guitar: 用法首先,我们需要设置导入JavaScript(全部) const useTry = require ( "no-try" ) . useTry ;const useTryAsync = ...
var load = require ( 'load-script-once' ) ; load ( '//www.google-analytics.com/ga.js' ) ; 加载到Google Analytics(分析)库中(假设它不在页面上) var load = require ( 'load-script-once' ) ; load ( ...
如果收到此错误: /jekyll/commands/serve/servlet.rb:3:in 'require': cannot load such file -- webrick (LoadError) :3: /jekyll/commands/serve/servlet.rb:3:in 'require': cannot load such file -- webrick...