약간 오래된 레일 프로젝트가 있습니다. 레일 3.2와 루비 2.2.4입니다. 이 때문에 일부 보석을 설치하지 못했습니다. 특히 "rmagick -v '2.13.2'"입니다. 따라서 나는하지 못하고,gem "rmagick"의 이전 버전을 설치할 수 없습니다.
$ gem install rmagick -v '2.13.2'
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/home/user123/.rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160826-3014-1j0i394.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... no
Can't install RMagick 2.13.2.
RMagick does not work when ImageMagick is configured for High Dynamic Range Images.
Don't use the --enable-hdri option when configuring ImageMagick.
*** 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=/home/user123/.rubies/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in /home/user123/.gem/ruby/2.2.4/gems/rmagick-2.13.2 for inspection.
Results logged to /home/user123/.gem/ruby/2.2.4/extensions/x86_64-linux/2.2.0-static/rmagick-2.13.2/gem_make.out
나는 도서관 "ImageMagick이"를 unistalling없이 HDRI 하나를 설치하려고했지만, 심지어는 HDRI와 "ImageMagick를"에 따라 다른 라이브러리가이기 때문에 실패 다시 설치하십시오. 그리고 일반적으로 단일 레일스 프로젝트에 대해서만 라이브러리를 다시 설치해도 올바른 일은 아닙니다.
그럼 나에게 무엇을 권하고 싶습니까? 나는 아치 리눅스에있어 2 개 루비가 설치 한 :
$ chruby
* ruby-2.2.4
ruby-2.3.1
어쩌면 나는 slitely 최신 버전으로 업그레이드해야합니까? 프로젝트의 다른 종속성을 깨뜨리고 싶지는 않습니다.
@fedorqui. – Dorkajo
@ fedorqui, 오류가 무엇인지 이미 알려져 있습니다. – Dorkajo
@fedorqui, 게다가, 내 경우에는 오류가 다릅니다. – Dorkajo