Gem 安装 Rails Zlib.so 加载错误
尝试将 Ruby 与 Wamp 服务器一起安装,以便我可以在 Rails 中进行编程。当我在 CMD 中“gem install Rails”时,出现以下错误:
C:/wamp/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in 'require': 126: 找不到指定的模块。 - C:/wamp/ruby/lib/ruby/1.9.1/i386-mswin32/zlib.so(加载错误)
我已经检查过,zlib.so肯定在那里。我哪里出错了?
Trying to install Ruby alongside a Wamp Server so I can program in Rails. When I "gem install rails" in CMD, I get the following error:
C:/wamp/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in 'require': 126: The specified module could not be found. - C:/wamp/ruby/lib/ruby/1.9.1/i386-mswin32/zlib.so (Load Error)
I've checked and the zlib.so is definitely there. Where have I gone wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要 zlib DLL 文件。您可以从此处下载并将其复制到与 zlib.so 文件相同的文件夹中作为
zlib .dll
。下载中的它可能名为zlib1.dll
,并且您的计算机上可能已经有一个zlib1.dll
,您需要将其重命名为zlib.dll< /代码>
You probably need the zlib DLL file. You can download it from here and copy it into the same folder as that zlib.so file as
zlib.dll
. It may be calledzlib1.dll
in the download, and there may already be azlib1.dll
on your machine that you need to rename tozlib.dll