ruby on rails - Ubuntu - cannot install RMagick -
this question has answer here:
- can't install rmagick rbenv 1 answer
how install rmagick gem ubuntu? found few threads here on so, of there directly pointed out installation on ubuntu systems, none of them working me.
here output got if run sudo gem install rmagick
building native extensions. take while... error: error installing rmagick: error: failed build gem native extension. /opt/bitnami/ruby/bin/ruby extconf.rb checking ruby version >= 1.8.5... yes checking gcc... yes checking magick-config... yes warning: found more 1 imagemagick installation. cause problems @ runtime. /opt/bitnami/common/bin/magick-config reports version 6.7.5 q16 installed in /opt/bitnami/common /usr/bin/magick-config reports version 6.6.9 q16 installed in /usr using 6.7.5 q16 /opt/bitnami/common. checking imagemagick version >= 6.4.9... yes checking hdri disabled version of imagemagick... yes package magickcore not found in pkg-config search path. perhaps should add directory containing `magickcore.pc' pkg_config_path environment variable no package 'magickcore' found package magickcore not found in pkg-config search path. perhaps should add directory containing `magickcore.pc' pkg_config_path environment variable no package 'magickcore' found package magickcore not found in pkg-config search path. perhaps should add directory containing `magickcore.pc' pkg_config_path environment variable no package 'magickcore' found package magickcore not found in pkg-config search path. perhaps should add directory containing `magickcore.pc' pkg_config_path environment variable no package 'magickcore' found checking stdint.h... yes checking sys/types.h... yes checking wand/magickwand.h... no can't install rmagick 2.13.2. can't find magickwand.h. *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/opt/bitnami/ruby/bin/ruby gem files remain installed in /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2 inspection. results logged /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/rmagick/gem_make.out
it's on amazon ec2 servers. if try run gem install rmagick, get
error: while executing gem ... (gem::filepermissionerror) don't have write permissions /opt/bitnami/ruby/lib/ruby/gems/1.9.1 directory.
could me, please, how fix issue?
thank much
edit: i've tried:
sudo apt-get install libmagickwand-dev
reading package lists... done building dependency tree reading state information... done libmagickwand-dev newest version. following packages automatically installed , no longer required: libgraphicsmagick3 libmagick++4 libgraphicsmagick++3 libgraphicsmagick1-dev libgraphics-magick-perl libperl5.14 libgraphicsmagick++1-dev use 'apt-get autoremove' remove them. 0 upgraded, 0 newly installed, 0 remove , 40 not upgraded.
sudo apt-get install libmagickwand-dev imagemagick
reading package lists... done building dependency tree reading state information... done imagemagick newest version. libmagickwand-dev newest version. following packages automatically installed , no longer required: libgraphicsmagick3 libmagick++4 libgraphicsmagick++3 libgraphicsmagick1-dev libgraphics-magick-perl libperl5.14 libgraphicsmagick++1-dev use 'apt-get autoremove' remove them. 0 upgraded, 0 newly installed, 0 remove , 40 not upgraded.
apt-get install libmagickwand-dev
e: not open lock file /var/lib/dpkg/lock - open (13: permission denied) e: unable lock administration directory (/var/lib/dpkg/), root?
sudo apt-get install libmagickwand-dev
reading package lists... done building dependency tree reading state information... done libmagickwand-dev newest version. following packages automatically installed , no longer required: libgraphicsmagick3 libmagick++4 libgraphicsmagick++3 libgraphicsmagick1-dev libgraphics-magick-perl libperl5.14 libgraphicsmagick++1-dev use 'apt-get autoremove' remove them. 0 upgraded, 0 newly installed, 0 remove , 40 not upgraded.
but still same error message above.
looking @ error output, you're missing 1 of dependencies rmagick. try
sudo apt-get install libmagickwand-dev
and try
gem install rmagick
the second problem due permission issues. more info on steps took helpful provide better answers.
Comments
Post a Comment