Bu konuda araştırma yaptım ve bir bilgisayarımda saatlerce çalıştım.Windows üzerinde RMagick'i kurma
Masaüstü bilgisayarıma yaklaşık 3 hafta önce RMagick'i yükledim ve oldukça karmaşıktı.
Yaptığım tam adımları hatırlamıyorum ve gerçekten hüsrana uğradım.
Ben dizin C benim makineye ImageMagick yükledim: Ben Ruby için çok Geliştirme kiti yükledim
ImageMagick'in
\. Ayrıca uygun taşlar içine rmagick-rmagick-V2-2-g564f157 koydukbenim C klasörü: O C var: \ Ruby22-x64 \ lib \ yakut \ taşlar 2.2.0 \ taşlar
\ aşağıdaki hatalargem install rmagick -- '--with-opt-dir="c:\ImageMagick"'
ve almak:
Ben yazacaktır:
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-dir="c:\ImageMagick"'
This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160326-6132-157vnes.rb extconf.rb
'--with-opt-dir="c:\ImageMagick"
checking for main() in -lCORE_RL_magick_... no
searching PATH for the ImageMagick library...
checking for main() in -lCORE_RL_magick_... no
checking for main() in -lCORE_RL_magick_... no
checking for main() in -lCORE_RL_magick_... no
Can't install RMagick 2.15.4.
Can't find the ImageMagick library.
Retry with '--with-opt-dir' option.
Usage: gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
e.g.
gem install rmagick -- '--with-opt-dir="C:Program FilesImageMagick-6.9.1-
Q16"'
*** 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
--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:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0
/gems/rmagick-2.15.4 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/rmagick-2.15.4/gem_make.out
Bu poin bu kadar sinirli olduğum
aşağıdaki hataları alıyorum t. Masaüstü bilgisayarımda çalıştı, ama burada çalışmayacak. Baska öneri?
kurtaracak umuyoruz. Windows'da "rmagik" in nasıl yükleneceği ile ilgili bu [cevap] 'a (http://stackoverflow.com/a/39513938/1903781) bakın. –