问题描述
我正在尝试在我的slicehost上安装RMagick(Linux Hardy)而不是从源代码编译,这是我所做的:
I am trying to install RMagick on my slicehost(Linux Hardy)instead of compile from source, here is what I did:
$ sudo aptitude install -y imagemagick
$ sudo aptitude install -y libmagick9-dev
$ sudo gem install rmagick
安装后,它毫无问题地读取GIF,但是对于JPEG和PNG,我一直收到此错误:
After installed, it reads GIF with no problem, however for JPEG and PNG, I keep getting this error:
Magick::ImageMagickError: no decode delegate for this image format
我知道这可能是因为我没有libpng和libjpg库,但是我没有找到有关如何安装这些库的指南.我从源代码编译了libpng和libjpg,没有运气,这些文件位于/usr/lib中,但是仍然出现错误.
I know it is probably because I don't have libpng and libjpg libraries, but i didn't find guide on how to install these. I compiled libpng and libjpg from source, with no luck, the files are in the /usr/lib, but i still getting the error.
推荐答案
我发现这非常有帮助:如何在Linux上安装rmagick
I found this to be very help: how to install rmagick on linux
这篇关于有安装RMagick的简便方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!