What am I missing?
Heres my brew info for imagemagick
❯ brew info imagemagick
imagemagick: stable 7.0.7-22 (bottled), HEAD
Tools and libraries to manipulate images in many formats
https://www.imagemagick.org/
/usr/local/Cellar/imagemagick/7.0.7-22 (1,527 files, 23.3MB) *
Poured from bottle on 2018-02-15 at 15:36:50
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick.rb
==> Dependencies
Build: pkg-config ✔
Required: libtool ✔, xz ✔
Recommended: jpeg ✔, libpng ✔, libtiff ✔, freetype ✔
Optional: fontconfig ✘, little-cms ✘, little-cms2 ✘, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✘, webp ✘, openjpeg ✘, fftw ✘, pango ✘, perl ✘
==> Requirements
Optional: x11 ✘
==> Options
--with-fftw
Compile with FFTW support
--with-fontconfig
Build with fontconfig support
--with-ghostscript
Build with ghostscript support
--with-hdri
Compile with HDRI support
--with-liblqr
Build with liblqr support
--with-librsvg
Build with librsvg support
--with-libwmf
Build with libwmf support
--with-little-cms
Build with little-cms support
--with-little-cms2
Build with little-cms2 support
--with-opencl
Compile with OpenCL support
--with-openexr
Build with openexr support
--with-openjpeg
Build with openjpeg support
--with-openmp
Compile with OpenMP support
--with-pango
Build with pango support
--with-perl
Compile with PerlMagick
--with-webp
Build with webp support
--with-x11
Build with x11 support
--with-zero-configuration
Disables depending on XML configuration files
--without-freetype
Build without freetype support
--without-jpeg
Build without jpeg support
--without-libpng
Build without libpng support
--without-libtiff
Build without libtiff support
--without-magick-plus-plus
disable build/install of Magick++
--without-modules
Disable support for dynamically loadable modules
--without-threads
Disable threads support
--HEAD
Install HEAD version
Heres my gem info when trying to install
❯ gem install rmagick -v '2.13.2'
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
current directory: /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/gems/rmagick-2.13.2/ext/RMagick
/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20180215-65975-100ukqk.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/bin:/Users/joshchernoff/.rvm/gems/ruby-2.3.1#global/bin:/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin:/Users/joshchernoff/.rvm/bin:/Users/joshchernoff/.asdf/bin:/Users/joshchernoff/.asdf/shims:.git/safe/../../bin:/Users/joshchernoff/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-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=/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/extensions/x86_64-darwin-17/2.3.0/rmagick-2.13.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/gems/rmagick-2.13.2 for inspection.
Log file
❯ cat /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/extensions/x86_64-darwin-17/2.3.0/rmagick-2.13.2/gem_make.out
current directory: /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/gems/rmagick-2.13.2/ext/RMagick
/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20180215-65975-100ukqk.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/bin:/Users/joshchernoff/.rvm/gems/ruby-2.3.1#global/bin:/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin:/Users/joshchernoff/.rvm/bin:/Users/joshchernoff/.asdf/bin:/Users/joshchernoff/.asdf/shims:.git/safe/../../bin:/Users/joshchernoff/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-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=/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/extensions/x86_64-darwin-17/2.3.0/rmagick-2.13.2/mkmf.log
extconf failed, exit code 1
mk file
❯ cat /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/extensions/x86_64-darwin-17/2.3.0/rmagick-2.13.2/mkmf.log
checking for Ruby version >= 1.8.5... -------------------- yes
--------------------
find_executable: checking for gcc... -------------------- yes
--------------------
find_executable: checking for Magick-config... -------------------- no
--------------------
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/joshchernoff/.rvm/gems/ruby-2.3.1#impact-nw/bin:/Users/joshchernoff/.rvm/gems/ruby-2.3.1#global/bin:/Users/joshchernoff/.rvm/rubies/ruby-2.3.1/bin:/Users/joshchernoff/.rvm/bin:/Users/joshchernoff/.asdf/bin:/Users/joshchernoff/.asdf/shims:.git/safe/../../bin:/Users/joshchernoff/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin
The log file states the error: Can't find Magick-config in [PATH].
So find the Magick-config file on your filesystem and put it in your path, e.g. by running
locate Magick-config
For me that returns:
/usr/local/Cellar/imagemagick#6/6.9.9-34/bin/Magick-config
If you cannot find the Magick-config file anywhere, then find out why you don't have one.
Even when you get past that error, you will still be unable to get rmagick to work since ImageMagick 7 is not yet supported.
Related Github issues:
https://github.com/rmagick/rmagick/issues/256
https://github.com/rmagick/rmagick/issues/265
https://github.com/rmagick/rmagick/issues/271
Also here's another StackOverflow Answer that explains how to get it to work: ImageMagick 7 with RMagick 2.16 on MacOS Sierra Can't find MagickWand.h
Related
I am trying to install ruby-qml on Ubuntu 15.10 (Wily). Apparently some prerequisites are missing:
:#> gem install qml
Building native extensions. This could take a while...
ERROR: Error installing qml:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking for qmake... yes
>>> building libqmlbind...
Project ERROR: Unknown module(s) in QT: qml quick
make: *** No targets specified and no makefile found. Stop.
ERROR: Failed to build libqmlbind
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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=/usr/bin/ruby2.1
--with-qmake
--without-qmake
--enable-debug
--disable-debug
--enable-clean
--disable-clean
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/qml-1.0.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/qml-1.0.2/gem_make.out
I already tried to install some of the usual suspects (build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev git-core subversion autoconf xorg-dev libgl1-mesa-dev libglu1-mesa-dev), but no luck.
There are no prerequisites mentioned for Linux in the documentation.
What is missing?
You are most probably missing Qt packages. Evident by following line of error:
Project ERROR: Unknown module(s) in QT: qml quick
Install it using:
sudo apt-get install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default
Installing libqt5quickparticles5 and qtdeclarative5-dev helped to get a step further. Yet, there were plenty more missing packages.
qtcreator-plugin-ubuntu has a rather exhaustive list of useful dependencies for qt5 programming. Installing it solved my troubles.
I've followed the mentioned answers here, but it didn't work alone. I found another answer here
So in my case, I've installed the following packages in order to install ruby-qml successfully.
libqt5qml5
libqt5quick5
qtdeclarative5-dev
qt5-default
qtbase5-private-dev
apt install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default qtbase5-private-dev
HTH
I was trying to install RMagick 2.13.4 for a few hours, and could't do it.
I find a post that has de same problem, but was no't resolved: Can't find wand/MagickWand.h
This is my console log:
Installing rmagick 2.13.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/gfioriello/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -r ./siteconf20151013-8735-126suhh.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no
Can't install RMagick 2.13.4. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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=/home/gfioriello/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
extconf failed, exit code 1
Gem files will remain installed in /home/gfioriello/.rvm/gems/ruby-2.0.0-p247#self_service/gems/rmagick-2.13.4 for inspection.
Results logged to /home/gfioriello/.rvm/gems/ruby-2.0.0-p247#self_service/extensions/x86_64-linux/2.0.0/rmagick-2.13.4/gem_make.out
An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.4'` succeeds before bundling.
I has Ubuntu 15.04
I install all the packages needed (imagemagick libmagickwand-dev, etc, I have tried all the packages described in other questions)
And this is my version of ImageMagick
gfioriello#dvt-005:~$ identify -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
If somebody knows what to do, it will be appreciate.
first check rmagick version supports which imagemagick and download according to it through this link https://download.imagemagick.org/ImageMagick/download/releases/
second once you download unzip it and go to the folder and open terminal and type command in terminal step by step a)./configure b) make c) sudo make install and for uninstall same version sudo make uninstall follow this link for the further information https://imagemagick.org/script/install-source.php d) sudo ldconfig /usr/local/lib
e) sudo apt-get install imagemagick libmagickwand-dev
f) sudo apt-get install libmagickcore-dev g) sudo apt-get install graphicsmagick-libmagick-dev-compat
once everything is done type convert --version to check the version and proper installation.
The output will be like Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib.
if nothing is working than you have installed wrong ImageMagick version go to second point and uninstall it step by step a)./configure b) make c)sudo make uninstall. It is just same proces as installing for Imagemagick instead you have to use sudo make uninstall.
Anyone seen this?
gem update nokogiri
Updating installed gems
Updating nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150524-28193-cqkmxr.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
I've just had this same problem on a fresh Ubuntu 14.04 box and it turns out there is a dependency for the zlib source (i.e. zlib.h) so you need to:
On Ubuntu or Debian:
sudo apt-get install zlib1g-dev
On Fedora, CentOS or RHEL:
sudo yum install zlib-devel
Or find the equivalent package for your operating system.
You need to install the missing dependencies, e.g.:
sudo apt-get install gcc ruby-dev libxslt-dev libxml2-dev zlib1g-dev
Then try again:
gem install nokogiri
I am having an issue on OS X Maverick when trying to install the rmagick gem. Following are some details
ImageMagic details
mairs-MacBook-Pro:social-login-in-rails umair$ convert --version
Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-07-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl lzma png xml zlib
I tried installing with and without paths but I am unable to install rmagick.
Error on installing rmagick
Umairs-MacBook-Pro:social-login-in-rails umair$ sudo C_INCLUDE_PATH=/opt/ImageMagick/include/ImageMagick-6/ PKG_CONFIG_PATH=/opt/ImageMagick/lib/pkgconfig/ gem install rmagick
Building native extensions. This could take a while...
/Users/umair/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr in PATH, mode 040777
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/umair/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
Warning: Found more than one ImageMagick installation. This could cause problems at runtime.
/usr/local/bin/Magick-config reports version 6.8.9 Q16 is installed in /usr/local/Cellar/imagemagick/6.8.9-1
/opt/ImageMagick/bin/Magick-config reports version 6.8.8 Q16 is installed in /opt/ImageMagick
Using 6.8.9 Q16 from /usr/local/Cellar/imagemagick/6.8.9-1.
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
/usr/local/bin/Magick-config: line 41: pkg-config: command not found
/usr/local/bin/Magick-config: line 47: pkg-config: command not found
/usr/local/bin/Magick-config: line 50: pkg-config: command not found
/usr/local/bin/Magick-config: line 53: pkg-config: command not found
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
/usr/local/bin/Magick-config: line 53: pkg-config: command not found
Can't install RMagick 2.13.2. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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=/Users/umair/.rvm/rubies/ruby-2.1.0/bin/ruby
extconf failed, exit code 1
Gem files will remain installed in /Users/umair/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems/rmagick-2.13.2 for inspection.
Results logged to /Users/umair/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/rmagick-2.13.2/gem_make.out
For anyone having issues with this on OSX Sierra with homebrew installing imagemagick version 7+
You need to install version 6 of imagemagick in order for rmagick to work properly. These 3 commands worked for me. Install the version 6 of imagemagick and then force it to link. bundle installing rmagick should work properly afterwards.
$ brew install imagemagick#6
$ brew link imagemagick#6 --force
$ bundle install
You may need to brew uninstall imagemagick before installing and linking to #6.
I had the exact same problem, and running these on the command line fixed it (using mac):
$ brew uninstall pkg-config
$ brew install pkg-config
$ brew unlink pkg-config && brew link pkg-config
For a clean install of imagemagick#6 required for rmagic 2.16 you need to run:
$ brew uninstall imagemagick
$ brew install imagemagick#6 && brew link imagemagic#6 --force
$ brew install pkg-config
Then you yould be able to run bundle install without issues.
Problem:
Fetching: rmagick-2.13.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/officemachine1/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
/usr/local/bin/Magick-config: line 41: pkg-config: command not found
/usr/local/bin/Magick-config: line 47: pkg-config: command not found
/usr/local/bin/Magick-config: line 50: pkg-config: command not found
/usr/local/bin/Magick-config: line 53: pkg-config: command not found
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no
Can't install RMagick 2.13.2. Can't find MagickWand.h.
* extconf.rb failed *
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-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=/Users/officemachine1/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
Gem files will remain installed in /Users/officemachine1/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.2 for inspection.
Results logged to /Users/officemachine1/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.2/ext/RMagick/gem_make.out
Solutions:
$ brew install pkg-config
Error: Permission denied - /Users/officemachine1/Library/Caches/Homebrew/Formula/pkg-config.brewing
office-machine-1s-macbook:nationestateagents officemachine1$ sudo brew install pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.lion.bottle.tar.gz
################################################################## 100.0%
==> Pouring pkg-config-0.28.lion.bottle.tar.gz
🍺 /usr/local/Cellar/pkg-config/0.28: 10 files, 636K
$ rvmsudo bundle install
I hope this might be helping you to come out from the above issue.