Instalación de rmagick en Ubuntu
Estoy tratando de obtener la configuración de RMagick en Ubuntu 10.04. Miraba aquí pero no tenía alegría. Incluso compilé e instalé ImageMagick desde el código fuente, pero las instrucciones aquí todavía no me ayudaron cuando intento instalar RMagick usando RubyGems. Tengo este error:
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$
¿Qué significa todo esto? :) Soy nuevo en Ruby y RubyGems así que por favor sé amable. Mi configuración es la siguiente:
Ruby: 1.8.7
RubyGems: 1.3.7
Estoy prácticamente sin ideas (¡y cansado también!). Me cansé de compilar RMagick desde el código fuente usando el enlace de arriba pero falló ya que no había un script ./configure
: (
Cualquier y toda ayuda apreciada!
15 answers
Instale los paquetes imagemagick
y libmagickwand-dev
(o libmagick9-dev
). Entonces debería poder instalar la gema Rmagick.
sudo apt-get install imagemagick libmagickwand-dev
Si no, le faltan paquetes de desarrollo relacionados con ruby como build-essential
y ruby1.8-dev
. Si ese es el caso, una consulta genérica "ubuntu install ruby 1.8" en Google debería solucionarlo.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-23 10:24:12
Usted no necesita una gran cantidad de la otra basura en estas respuestas, solo:
sudo apt-get install libmagickwand-dev
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-08-29 03:33:45
En Ubuntu 12.04 libmagick9-dev
se ha ido. graphicsmagick-libmagick-dev-compat
debe utilizarse en su lugar.
apt-get install graphicsmagick-libmagick-dev-compat
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-09-27 12:10:17
En Ubuntu 15.04 , lo que lo resolvió para mí fue eliminar todas las instalaciones * magick anteriores, reinstalar los paquetes necesarios y luego vincular simbólicamente el archivo de configuración:
sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat
sudo apt-get autoremove
sudo apt-get install imagemagick libmagickwand-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config
gem install rmagick
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-06-27 14:42:03
En Ubuntu 14.04
Debajo del código se trabaja para mí
sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
Entonces
gem install rmagick
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-19 15:10:24
En Ubuntu 12.0.4.2 sudo apt-get install libmagickwand-dev libmagickcore-dev libmagickcore4-extra libgraphviz-dev libgvc5
funcionó para mí.
Graphicsmagick-libmagick-dev-compat se instaló pero no incluyó los archivos de cabecera por lo que rmagick no compilaría.
Tenga en cuenta que debe eliminar graphicsmagick-libmagick-dev-compat antes de ejecutar el comando anterior.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-03-30 11:10:26
Esto funcionó para mí...
sudo apt-get install graphicsmagick-libmagick-dev-compat libmagickwand-dev
gem install rmagick
...
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
(ubuntu 12.0.4 64bit)
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-12-19 15:27:13
Tienes mensaje extconf.rb:1:in 'require': no such file to load -- mkmf (LoadError)
porque el paquete ruby1.8-dev
no está instalado. Instálalo (sudo apt-get install ruby1.8-dev
) e inténtalo de nuevo.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-09-14 08:02:19
En Ubuntu 13.10
Este código funcionó para mí
Sudo apt-get install graphicsmagick-libmagick-dev-compat libmagickwand-dev
Instalación de gema rmagick
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-12-03 21:17:51
Para que bundle deje de fallar en ubuntu 12.04.
apt-get install graphicsmagick-libmagick-dev-compat libmagickwand-dev
Este es mi gemfile
gem 'rmagick'
gem 'mini_magick'
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-05-09 04:31:16
Si desea intentar instalar el paquete nativo deb en lugar de la gema, tenga en cuenta que librmagick-ruby estaba roto en Ubuntu 10.04 hasta hace muy poco:
Https://bugs.launchpad.net/ubuntu/ + source / librmagick-ruby/ + bug/518122
Véase el comentario #17 en particular. Creo que esto ya se ha arreglado, por lo que ahora apt-get install librmagick-ruby
podría "funcionar". De lo contrario, aquí está cómo construirlo usted mismo desde source
$ cd /usr/src
$ sudo apt-get build-dep librmagick-ruby
$ sudo apt-get source librmagick-ruby
$ cd librmagick-ruby-2.11.1
$ sudo dch -i
(add changelog entry)
$ sudo dpkg-buildpackage
$ cd ..
$ sudo dpkg -i librmagick-ruby*.deb
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-09-14 06:12:25
En ubuntu 16.04.3:
Esto lo trabajé:
sudo apt install imagemagick imagemagick-6.q16
Significa que este imagemagick instalado entonces puede ejecutar RMagick.
Si está utilizando Linux, simplemente ejecute estos comandos.
sudo apt-get install imagemagick libmagickwand-dev
Y luego
bundle install
Espero que esto resuelva su problema.
Y si está utilizando mac, simplemente ejecute los siguientes comandos
En primer lugar desvincular su imagemagick instalado que no se instaló correctamente en la última mac high sierra mediante el uso.
brew unlink imagemagick
Luego instale la última imagemagic6 usando el siguiente comando
brew install imagemagick@6 && brew link imagemagick@6 --force
Luego instale gem rmagick usando el siguiente comando
gem install rmagick
bundle install
Será funciona perfectamente bien.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-05 12:55:59
Siga a continuación 3 pasos probados en UBUNTU 16.04
sudo apt-get install build-essential imagemagick libmagickwand-dev
#In .bashrc or .bash_profile add below code. Just check the ImageMagick dir name.
export PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH"
gem install rmagic #Install Gem
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-19 09:42:18
En Ubuntu, puedes ejecutar:
sudo apt-get install libmagickwand-dev
En Centos, puedes ejecutar:
sudo yum install gcc ImageMagick-devel make which
Luego instale
gem install rmagick
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-09-26 04:34:17