birdwatcher icon indicating copy to clipboard operation
birdwatcher copied to clipboard

Install Troubles

Open michael-myers opened this issue 9 years ago • 2 comments

I've successfully installed birdwatcher on Linux without too much trouble, although there were some additional dependencies that you might like to add to the setup instructions:

sudo apt-get install liqpq-dev ruby-dev g++

Without those, the gem will not install (fails while trying to build some native extension).

On MacOS 10.12.3 + Homebrew, on the other hand, there appears to be a problem with building the gem native extension when it looks for the MagickWand API of ImageMagick. Homebrew installs version 7 by default. Birdwatcher is looking for "wand/MagickWand.h", but ImageMagick 7.x has moved it to "MagickWand/MagickWand.h", and this breaks the build.

That said, "brew install imagemagick@6" should in theory install ImageMagick 6.9.7-5. I thought this would allow birdwatcher to build on MacOS, but it fails with:

“Package MagickCore was not found in the pkg-config search path. Perhaps you should add the directory containing `MagickCore.pc' to the PKG_CONFIG_PATH environment variable”

Homebrew installs it as such:

$ mdfind MagickCore.pc /usr/local/Cellar/imagemagick@6/6.9.7-5/lib/pkgconfig/MagickCore.pc

However this did not work:

$ PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick@6/6.9.7-5/lib/pkgconfig sudo gem install birdwatcher

michael-myers avatar Jan 27 '17 04:01 michael-myers

I also had to install libpq-dev and ruby2.3-dev before being albe to run the gem install.

honoki avatar Jun 22 '17 07:06 honoki

@michael-myers

Just as a fyi:

  • apt-get install libmagickcore-dev
  • apt-get install libmagickwand-dev
  • gem install birdwatchwer

got solved my problems under a Kali instance.

Hax0rG1rl avatar Jan 31 '18 21:01 Hax0rG1rl