Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 160 Vote(s) - 3.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't install RMagick 2.13.1. Can't find MagickWand.h.

#21
In `linux` OS:

C_INCLUDE_PATH=/usr/local/include/ImageMagick-6/ gem install rmagick

Building native extensions. This could take a while...

ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/home/vagrant/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
...
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
then:

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

in my .bashrc file to pick up MagickCore.pc, then created two symlinks:

ln -s /usr/local/include/ImageMagick/wand /usr/local/include/ImageMagick-6/wand
ln -s /usr/local/include/ImageMagick/magick /usr/local/include/ImageMagick-6/magick

Now:

$ gem install rmagick
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.2
1 gem installed
boom everything works fine.
Reply

#22
For **Ubuntu** users:
It will never done directly on Ubuntu. You should first install packages to run this command...:

sudo apt-get install libmagickwand-dev

...and then do install:

gem install rmagick

You may get the same issue, for that, Try clearing your apt repository and removing any broken packages first:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

If the system identifies any broken packages, forcefully remove them (replace `package_name` with your own):

sudo dpkg --remove -force --force-remove-reinstreq package_name

Then re-install any missing packages again. :)
Reply

#23
**Mac users using brew**

If you can use v6 of ImageMagick instead of 7, you can try this

brew install imagemagick@6 --force && brew link imagemagick@6 --force

Note this will unlink your existing IM installation, so be careful if you have other projects on your machine using ImageMagick without problems.
Reply

#24
for a rails based application, I found this

sudo apt-get install -y libmagickwand-6-headers
C_INCLUDE_PATH=/usr/include/ImageMagick-6 gem install rmagick
bundle update rmagick
bundle install

worked on _debian_ **jessie**
Reply

#25
An issue for me was that rmagick is out of date and not updated regularly. If you have too new of an ImageMagick version, then it might not be compatible. Check your version of ImageMagick using the following:

$ convert --version

If the ImageMagick version is > 7, it is not compatable with rmagick. The user will get errors such as

Can't install RMagick 2.16.0. Can't find MagickWand.h.
*** extconf.rb failed ***

Go back to version six of ImageMagick until they update rmagick to be compatible with version seven of ImageMagick. Someone has hosted the appropriate version(6) in a separate gem - 'imagemagick@6'.

If you need rmagick to work but currently have an imagemagick version 7 or higher, here are the steps to switch:

$ gem install imagemagick@6
$ brew unlink imagemagick
$ brew link imagemagick@6 --force
Reply

#26
It looks like ImageMagick 7 changed include file path.

On building `rmagick`, since it includes file as `wand/MagickWand.h` There are no workarounds. It looks like sticking with ImageMagick 6 for now.

On Mac OS X (I tested on Sierra), I used HomeBrew's `versions` tap like:

brew tap homebrew/versions
brew install imagemagick@6

Then, use the path shown on above installation:

PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick

To install with ImageMagick 6.
Reply

#27
At arch linux, after installing imagemagick@6, gem wasn't able to install package rmagick and got error below.

Can't install RMagick 2.16.0. Can't find MagickWand.h
Worked for me using below steps

1. added pkgconfig path to .bashrc

export PKG_CONFIG_PATH="/usr/lib/imagemagick6/pkgconfig"

2. Created two symlinks as below

ln -s /usr/include/ImageMagick-6/wand /usr/include/ImageMagick-6/wand

ln -s /usr/local/include/ImageMagick/magick /usr/include/ImageMagick-6/magick
Reply

#28
If you're on Ubuntu, installing this package is what fixed it for me:

sudo apt-get install libmagickwand-dev
Reply

#29
Got same error for alpine 3.9 image build. It comes with [ImageMagick 7.0.8.38-r0](

[To see links please register here]

)

To fix that you either use alpine 3.5 with [ImageMagick 6.9.6.8-r1](

[To see links please register here]

):

FROM alpine:3.5

Or install ImageMagick 6.9.6.8-r1 with package repository for 3.5:

RUN apk add imagemagick-dev=6.9.6.8-r1 --repository

[To see links please register here]



[There is an open issue](

[To see links please register here]

) in rmagick repo regarding failed builds for ImageMagick 7.0.x. so hopefully it will be fixed soon.
Reply

#30
May be you are installing ImageMagick version 7.x.x which will generate different folder names in your `usr/lib/local/include/ImageMagick7.x.x` folder.

In ImageMagick6.x.x version we have `magick`, `wand` named folders, where in ImageMagick7.x.x version have named this `MagickCore` , `MagickWand` . So this updation is causing the problem in some gem installation like here. Which is using
`magick/some_header.h` or `wand/some_header.h` (Means they are not updated with the new 7.x.x ImageMagick version).

That's why we are getting this error :

```

checking for outdated ImageMagick version (<= 6.4.9)... no
checking for presence of MagickWand API (ImageMagick version >= 6.9.0)... no
....
checking for wand/MagickWand.h... no

```

and in log file something like this :

error: 'MagickCore/method-attribute.h' file not found
#include "MagickCore/method-attribute.h"
^

**Solution**

Install the ImageMagick6.x.x version in your system from the official site : [

[To see links please register here]

][1] and install it using this commands(after extract zip/tar) :

./configure
make
make install


Then do

`gem install rmagick`

It will work.

-----

You may also need to set the following symbolic links here before it can work:

ln -s /usr/local/lib/libMagickWand-6.Q16.so.6 /home/marcelo/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/rmagick-2.16.0/libMagickWand-6.Q16.so.6
sudo ln -s /usr/local/lib/libMagickWand-6.Q16.so.6 /usr/lib
ln -s /usr/local/lib/libMagickCore-6.Q16.so.6 /home/marcelo/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/rmagick-2.16.0/libMagickCore-6.Q16.so.6
sudo ln -s /usr/local/lib/libMagickCore-6.Q16.so.6 /usr/lib


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through