When I try to install rmagic with:
gem install rmagic
it gives error:
Building native extensions. This could take a while...
E
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
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
try this out
first install imagemagick
sudo apt-get install imagemagick
and then
sudo apt-get install libmagickwand-dev
You only need to install:
sudo apt-get install libmagickwand-dev
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.
This worked for me: