
LD_LIBRARY_PATH variable like this: export LD_LIBRARY_PATH=/usr/local/lib (By default this is where it is installed.) Create the

ForĮxample, suppose you installed the ImageMagick library libMagick.so in The directory in the LD_LIBRARY_PATH environment variable. You probably do not have the directory in which the ImageMagick library If you get a message like this: $DIR/RMagick.rb:11:in `require': libMagick.so.0:Ĭannot open shared object file: No such file or directory. Messages typically contain enough additional information for you to be able toĭiagnose the problem. Subdirectory of the installation directory for any error messages. Examine the mkmf.log file in the ext/RMagick Typically this message means that one or more of the libraries that ImageMagickĭepends on hasn't been installed. Check the mkmf.log file for more detailed information Can't find libMagick or one of the dependent libraries. The RMagick installation FAQ has answers to the most commonly reported Require RMagick in your project as follows: require 'rmagick' For stable versionĬompatible with Ruby 1.8+, use ~> 2.0. RMagick is versioned according to Semantic Versioning. Installing RMagick Installing via Bundler
IMAGEMAGIC GEM INSTALL
You need to turn on checkboxes Add application directory to your system path and Install development headers and librarries for C and C++ in an installer for RMagick.
IMAGEMAGIC GEM APK
Or you can run if you would like to use ImageMagick 6: apk add imagemagick6 imagemagick6-dev imagemagick6-libs On Alpine Linux, you can run: apk add imagemagick imagemagick-dev imagemagick-libs On Arch Linux, you can run: pacman -Syy imagemagick On Centos, you can run: sudo yum install gcc ImageMagick-devel make which On Ubuntu, you can run: sudo apt-get install libmagickwand-dev Ruby must be able to build C-Extensions (e.g. These prerequisites are required for the latest version of RMagick.

RMagick is an interface between the Ruby programming language and the
