michenriksen / birdwatcher

Data analysis and OSINT framework for Twitter
https://michenriksen.com/blog/birdwatcher-twitter-osint-framework/
MIT License
410 stars 65 forks source link

Install Troubles #5

Open michael-myers opened 7 years ago

michael-myers commented 7 years ago

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

honoki commented 7 years ago

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

Hax0rG1rl commented 6 years ago

@michael-myers

Just as a fyi:

got solved my problems under a Kali instance.