When I try to install rmagic with:
gem install rmagic
it gives error:
Building native extensions. This could take a while...
E
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.