Windows 7 x64에 bzip2-ruby gem을 설치하려고했습니다. 이제이 보석이 64 비트 Windows에서도 작동하는지 모르겠습니다. C : \ Program Files (x86) \ GnuWin32에 설치된 bzip2를 설치했습니다.bzip2-ruby Windows 설치
gem install bzip2-ruby -- --with-bz2-dir="C:\Program Files (x86)\GnuWin32\"
그게 내가 다음과 같은 출력을 얻을 실행 :
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby
--with-bz2-dir
--with-bz2-include
--without-bz2-include=${bz2-dir}/include
--with-bz2-lib
--without-bz2-lib=${bz2-dir}/lib
--with-bz2lib
--without-bz2lib
ERROR: Error installing bzip2-ruby:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb --with-bz2-dir=C:\Program Files (x86)\GnuWin32"
checking for bzlib.h... no
checking for BZ2_bzWriteOpen() in -lbz2... no
libbz2 not found, maybe try manually specifying --with-bz2-dir to find it?
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/bzip2-ruby-0.2.7 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/bzip2-ruby-0.2.7/ext/gem_make.out
내가 그 libbz2.a, libbz2을 확인할 수 있습니다을
내가 설치로 이동
는 다음 명령을 실행합니다. def이고 libbz2.dll.a 파일은 위 경로의 lib 폴더에 있습니다.lib 폴더를 지정하는 명령을 실행할 때 추가 옵션이 누락 되었습니까?
감사합니다.
당신은 생명의 은인입니다! 정확히 경로 인 것처럼 보입니다. 파일을 다른 곳으로 옮길 때 보석이 성공적으로 설치되었습니다. 다시 한 번 감사드립니다! –