今天学习ruby,下载了ruby并安装,之后参考相关入门教程开始第一个小程序,在命令行直接运行:
ruby -e "print 'hello, yiditushe'",回车之后,提示如下错误:
C:\Documents and Settings\yiditushe>ruby -e "print 'hello, world'"
C:/Ruby/lib/ruby/1.8/date.rb:197:in `require': no such file to load -- date/format (LoadError)
from C:/Ruby/lib/ruby/1.8/date.rb:197
from C:/Ruby/lib/ruby/1.8/yaml/rubytypes.rb:2:in `require'
from C:/Ruby/lib/ruby/1.8/yaml/rubytypes.rb:2
from C:/Ruby/lib/ruby/1.8/yaml.rb:396:in `require'
from C:/Ruby/lib/ruby/1.8/yaml.rb:396
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:7:in `require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:7
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:882:in `require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:882
from C:/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:in `require'
from C:/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10
开始在网上查了下资料,说是C:\Ruby\lib\ruby\1.8\date\目录下的format.rb不存在导致的,但我到该目录下查看,发现该文件存在,但是我用UE不能打开它,提示如下:
又到其它目录看用同样方法打开其它的文件,发现可以打开。这下就奇怪了。左想右想,又是卸载又是重新安装,还是不行。折腾了几个小时后,最后居然发现当我把McAfee的按访问扫描关闭后,文件可以正常打开!
再次运行那个程序,成功了!晕,McAfee这也行。
C:\Documents and Settings\yiditushe>ruby -e "print 'hello, world'"
hello, world
C:\Documents and Settings\yiditushe>
以后运行ruby程序就只好把McAfee关闭咯。还没找到可以修改McAfee的什么配置。
- 大小: 8.8 KB
分享到:
相关推荐
标题中的错误信息"`require': no such file to load -- sqlite3/sqlite3_native"是一个常见的Ruby编程语言中的加载错误,通常发生在尝试使用SQLite3数据库驱动时。这个错误表明系统无法找到指定的sqlite3_native库,...
本文实例讲述了Laravel框架访问...`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autolo
报错内容: Error: Cannot find module 'react-dev-... at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/mod
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 相信你既然看到,那就是遇到了这个问题了
该项目可以分析 Windows-Execute-File 的函数列表。 php-analyzes-execute-file-format 的项目将支持未来的功能,如 next。 安装 您有多种安装 php-analyzes-execute-file-format 的方法。 作曲家 在您的项目中安装 ...
var DateTime = require ( 'date-time-string' ) ; console . log ( DateTime . toDateTimeString ( ) ) ; // 2014-12-15 21:58:56.450 console . log ( DateTime . toDateString ( ) ) ; // 2014-12-15 console . ...
简单加载脚本非常简单的基于Promise的脚本加载器和JSONP 基于承诺( ) 使用addEventListener(IE9 +)安装npm install --save simple-load-script进口// es5 CommonJSconst loadScript = require ( 'simple-load-...
var load = require ( 'load-script-once' ) ; load ( '//www.google-analytics.com/ga.js' ) ; 加载到Google Analytics(分析)库中(假设它不在页面上) var load = require ( 'load-script-once' ) ; load ( ...
EmberSimpleAuth::Rails 资产管道的 ember-simple-auth 如果你想要一个新版本运行 $ rake update 并提交拉取请求 安装 将此行添加到应用程序的 Gemfile 中: gem 'ember_simple_auth...//= require "ember-simple-au
const loadJsonFile = require('load-json-file'); loadJsonFile('./path/to/your/file.json') .then(data => { console.log(data); // 输出解析后的JavaScript对象 }) .catch(err => { console.error('Error ...
-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). Later is ...
const postmanToOpenApi = require ( 'postman-to-openapi' ) // Postman Collection Path const postmanCollection = './path/to/postman/collection.json' // Output OpenAPI Path const outputFile = './api/...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-...
/*= require bootstrap-markdown-editor */ 链轮也需要JS: //= require ace-rails-ap //= require ace/theme-tomorrow //= require ace/mode-markdown //= require ace/ext-language_tools //= require ...
如果收到此错误: /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...
无论运行php composer.phar require --prefer-dist metalguardian/yii2-file-processor-module "*"或添加"metalguardian/yii2-file-processor-module": "*"到composer.json文件的require部分。用法安装扩展程序后,...