2014-11-29 25 views
9

Khi cố gắng để cài đặt FileUtils đá quý tôi nhận được sau đầu ra:Không thể cài đặt FileUtils Rubygem trên ubuntu 14.04 LTS

No package 'MagickCore' found 
Package MagickCore was not found in the pkg-config search path. 
Perhaps you should add the directory containing `MagickCore.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'MagickCore' found 
Package MagickCore was not found in the pkg-config search path. 
Perhaps you should add the directory containing `MagickCore.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'MagickCore' found 
Package MagickCore was not found in the pkg-config search path. 
Perhaps you should add the directory containing `MagickCore.pc' 
to the PKG_CONFIG_PATH environment variable 
No package 'MagickCore' found 
checking for stdint.h... yes 
checking for sys/types.h... yes 
checking for wand/MagickWand.h... no 

Can't install RMagick 2.13.4. Can't find MagickWand.h. 
*** 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/aditya/.rvm/rubies/ruby-2.1.1/bin/ruby 

extconf failed, exit code 1 

Gem files will remain installed in /home/aditya/.rvm/gems/ruby-2.1.1/gems/rmagick-2.13.4 for inspection. 
Results logged to /home/aditya/.rvm/gems/ruby-2.1.1/extensions/x86_64-linux/2.1.0/rmagick-2.13.4/gem_make.out 

Dường như có một số vấn đề với rmagick, ImageMagick được cài đặt đúng và cố gắng để cài đặt rmagick đá quý tôi nhận được lỗi mà một gói là mất tích: libmagickwand-dev

Khi tôi cố gắng để cài đặt gói này tôi nhận được lỗi sau:

The following packages have unmet dependencies: 
libmagickwand-dev : Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.3) but it is not going to be installed 
E: Unable to correct problems, you have held broken packages. 
+2

Điều này có thể giúp [rmagick gem install "Không thể tìm thấy Magick-config"] (http://stackoverflow.com/questions/5201689/rmagick-gem-install-cant-find-magick-config) –

+0

http : //askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa/230958#230958 – codebold

+0

Và cũng: http://stackoverflow.com/questions/9050419/ cant-install-rmagick-2-13-1-cant-find-magickwand-h – Sam

Trả lời

0

Từ những gì tôi có thể s ee đá quý đó đã bị loại bỏ, hãy kiểm tra here, không có sẵn nguồn, vì vậy nếu bạn có thể chọn một loại đá quý khác như metadata

19

Chạy sudo apt-get install libmagickwand-dev giải quyết được vấn đề cho tôi.

+0

Điều này cũng làm việc cho tôi trên Debian Jessie. – Dan

3

Cài đặt hai gói những

sudo apt-get install libmagickwand-dev 
sudo apt-get install imagemagick 

Trong bạn Gemfile thêm những dòng này

# To perform file operations 
gem 'rmagick' 
gem 'fileutils', '~> 0.7' 

Sau đó, bạn có thể cài đặt những viên đá quý bằng cách chạy

bundle install 

Và như một kết quả của lệnh bạn sẽ thấy một cái gì đó tương tự như thế này ...

... 
Installing rmagick 2.13.4 
Installing fileutils 0.7 
.... 
Your bundle is complete! 
Các vấn đề liên quan