Skip to content

Instantly share code, notes, and snippets.

@willywg
Last active July 28, 2018 13:37
Show Gist options
  • Save willywg/5715098 to your computer and use it in GitHub Desktop.
Save willywg/5715098 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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