首页 > 解决方案 > exerb -> 我做错了什么?

问题描述

我正在尝试通过gem 文件编译简单puts "hello world"的程序。exerb

mkexy test.rb => 这是工作的
exerb test.exy => 这是不工作

我做错了什么?

Traceback (most recent call last):
        5: from C:/Ruby26-x64/bin/exerb.bat:196:in `<main>'
        4: from C:/Ruby26-x64/bin/exerb.bat:67:in `main'
        3: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:85:in `create_archive'
        2: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:85:in `each'
        1: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:86:in `block in create_archive'
C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/exerb/recipe.rb:146:in `add_file_entry': test.exy: no such file -- C:/Ruby26-x64/lib/ruby/2.6.0/delegate.rb (RuntimeError)

标签: ruby

解决方案


该文件test.exy不是 Ruby 文件,因此会引发错误。仅 Ruby 生态系统支持 Gem。不知道你为什么要尝试完成,exy但那是行不通的。


推荐阅读