当前位置: 首页 > 工具软件 > wxRuby > 使用案例 >

[ruby] wxRuby安装

马沛
2023-12-01
sudo gem install wxruby

测试是否安装成功:

bluefrog@bluefrog-laptop:~/code/ruby$ irb
irb(main):001:0> require "wx"
LoadError: no such file to load -- wx
    from (irb):1:in `require'
    from (irb):1
    from :0
irb(main):002:0>

如果出现以上问题请先require "rubygems"

irb(main):002:0> require "rubygems"
=> true
irb(main):003:0> require "wx"
=> true
irb(main):004:0>
 类似资料: