未找到 Ruby TK 库
我正在尝试使用“tk”库在 Windows 平台上运行一个简单的 ruby 程序,但是当我运行该程序时,出现以下错误:
`require': no such file to load -- tk (LoadError)
我在 http://www.tkdocs.com/tutorial/install.html
它说我必须安装活动 tcl 并且必须编译 ruby 源来生成库,但是当我正在按照文档中给出的步骤进行操作,我收到以下错误:
C:\Ruby192\Ruby192>win32\configure.bat --prefix=c:\Ruby192 cl -nologo -MD rtname.c user32.lib -link > nul Checking unicows.lib Creating Makefile.new find: `=': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x1' Stop.
我安装了 Visual C++,设置了所有必需的路径..
没有得到问题所在
I am trying to run a simple ruby program on windows platform using 'tk' library but when I run the program I am getting following error:
`require': no such file to load -- tk (LoadError)
I checked tk docs on http://www.tkdocs.com/tutorial/install.html
it says I have to install active tcl and have to compile ruby source to generate library but when I am following the steps given in the doc I am getting following error
C:\Ruby192\Ruby192>win32\configure.bat --prefix=c:\Ruby192 cl -nologo -MD rtname.c user32.lib -link > nul Checking unicows.lib Creating Makefile.new find: `=': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x1' Stop.
I have visual c++ installed, set all required paths..
not getting what is the problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用最新的 http://rubyinstaller.org 它里面有所有 Tk 和绑定
Use latest http://rubyinstaller.org it has all Tk and bindings inside