Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Instalando ImageMagick y rmagick en Centos 6
1. Desinstalar todo rastro de ImageMagick e ImageMagik-devel
sudo yum remove ImageMagick
sudo yum remove ImageMagick-devel
2. Instalar complementos previos:
sudo yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
3. Bajarse el ImageMagick desde las fuentes:
mkdir ~/sources
cd ~/sources
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
4. Descomprimir ImageMagick:
tar zxvf ImageMagick.tar.gz
5. Compilar:
cd ImageMagick-6.8.5-9/
./configure
sudo make
sudo make install
6. Export:
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
7. Install Rmagick
gem install rmagick
8. sudo ldconfig /usr/local/lib
@willywg

This comment has been minimized.

Copy link
Owner Author

@willywg willywg commented Aug 26, 2014

Si se reinstala alguna libreria en Centos volver a correr:

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
sudo ldconfig /usr/local/lib
gem uninstall rmagick

Para paises:
gem install rmagick -v=2.13.2

Para Peru:
gem install rmagick -v=2.16.0

RAILS_ENV=staging bundle install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment