0
我在Windows上,使用RailsInstaller安裝Ruby 2.0。使用RailInstaller在Windows上安裝gems:「您必須安裝zlib」
當我試圖安裝使用gem install id3lib-ruby
id3lib,紅寶石,我得到如下:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing id3lib-ruby:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb
checking for main() in -lstdc++... yes
checking for main() in -lz... no You must have zlib installed.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
Check the mkmf.log file for more details.
You may need configuration options.
在mkmf.log,它包括行:
c:/railsinstaller/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lz
collect2: ld returned 1 exit status
我在C:\RailsInstaller\Ruby2.0.0\bin
zlib1.dll
,將文件重命名爲zlib.dll
不起作用。所以,它看起來像RubyInstaller已經包含了zlib庫,但仍然導致gem安裝失敗。有任何想法嗎?