Getting Pastec Installed on Mac

Not that I don’t have a zillion other things to do, but what the hell. Here’s how I got installed on my Mac laptop. (I have several thousand images from Instagram related to the bone trade. I’m hoping that Pastec can help me find/deduce/map/elucidate the visual grammar of all this).

  1. requires opencv, jsoncpp , and libmicrohttpd. If you’ve got homebrew installed:
    1.  $brew install homebrew/science/opencv
    2. $ brew install jsoncpp  (see
    3. Go to which has a ruby script you’ll need. Only then can you run: $brew install libmicrohttpd
    4. You now need cmake & git: $brew install cmake git
  2. then you follow the instructions on the documentation page
    1. git clone
    2. cd pastec
    3. mkdir build
    4. cd build
    5. cmake ../
    6. make
  3. then download the file, unzip, and put it in your build directory.
  4. then fire it up:
    ./pastec visualWordsORB.dat

Now to figure out what happens next.

Screen Shot 2016-05-17 at 12.12.28 PM

… and Matthew Lincoln has a wrapper for R once you’ve done all this:

…and Ryan Baumann has an excellent post with scripts he’s written to get images into Pastec and matches back out again:

(update, a day later): Ryan’s scripts are awesome. Note that the third one requires ‘parallel‘ to be installed on your machine; $ brew install parallel did the trick for me. I’m now feeding pastec 2000 images I’ve gathered for my #bonetrade project with Damien Huffer, just to see what happens next…