“gem 安装 wxruby”但需要“wxruby”行不通
我
gem install wxruby
在 Win 7
和 Ruby 1.8.6 上
require 'rubygems'
require 'wxruby'
执行了此操作,但它会显示
c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- wxruby (LoadError)
from c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from go.rb:5
更新:,我将其更改为 require 'wx'
,现在显示 MSVCP71.dll
缺失...如果不是来自 MS 的官方网站,我有点犹豫要不要从随机站点下载 dll 并运行它。
I did
gem install wxruby
on Win 7
and in Ruby 1.8.6
require 'rubygems'
require 'wxruby'
but it will say
c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- wxruby (LoadError)
from c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from go.rb:5
Update: I changed it to require 'wx'
and it is now saying MSVCP71.dll
missing... I am somewhat hesitant to download a dll and run it from a random site if it is not from MS's official website.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为 wxruby 有自己的 windows ruby 分发版,不是吗?这可能有您需要的所有依赖项......
I think wxruby has their own windows ruby distributable's, don't they? That might have all the dependencies you need...
我在 x64 ubuntu linux 下安装 wxruby 时遇到问题,所以我在 Windows 7 下尝试,对我有用的是:
然后只需要 'wx' 就可以在你的脚本中工作,至少我似乎不需要 rubygems。
I had trouble installing wxruby under x64 ubuntu linux, so I tried under Windows 7, what worked for me was:
Then just requiring 'wx' should work in your scripts, at least I dont seem to need to require rubygems.