Can't install rmagick gem on Ubuntu 13.04

前端 未结 6 748
無奈伤痛
無奈伤痛 2021-02-06 07:33

When I try to install rmagic with:

gem install rmagic

it gives error:

Building native extensions.  This could take a while...
E         


        
相关标签:
6条回答
  • 2021-02-06 07:49

    Solution is to add ppa where those libs could be found.

    Add PPA:

    sudo add-apt-repository ppa:ricotz/testing
    

    Then update package list:

    sudo apt-get update
    

    Finally install it with:

    sudo apt-get install libmagickwand-dev
    
    0 讨论(0)
  • 2021-02-06 07:57

    Here is the good example on this blog

    The below command will solve your problem. It helped me to install rmagick.

    sudo apt-get install libdjvulibre-dev libjpeg-dev libtiff-dev libwmf-dev libmagickcore-dev libmagickwand-dev libmagick++-dev
    
    0 讨论(0)
  • 2021-02-06 07:58

    try this out

    first install imagemagick

    sudo apt-get install imagemagick
    

    and then

    sudo apt-get install libmagickwand-dev
    
    0 讨论(0)
  • 2021-02-06 08:01

    You only need to install:

    sudo apt-get install libmagickwand-dev
    
    0 讨论(0)
  • 2021-02-06 08:04

    Try clearing your apt repository and removing any broken packages first:

    sudo apt-get update
    sudo apt-get autoclean
    sudo apt-get clean
    sudo apt-get autoremove
    

    If the system identifies any broken packages, forcefully remove them (replace package_name with your own):

    sudo dpkg --remove -force --force-remove-reinstreq package_name
    

    Then reinstall any missing packages again.

    0 讨论(0)
  • 2021-02-06 08:11

    This worked for me:

    1. sudo apt-get install libcairo2=1.14.6-1 --reinstall
    2. sudo apt-get install libmagickwand-dev
    3. sudo gem install rmagick
    0 讨论(0)
提交回复
热议问题