Last active
July 28, 2018 13:37
-
-
Save willywg/5715098 to your computer and use it in GitHub Desktop.
Instalando ImageMagick y rmagick en Centos 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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