ddollar / heroku-buildpack-apt

120 stars 327 forks source link

pkg config path error #11

Closed jonathanong closed 9 years ago

jonathanong commented 9 years ago

i'm trying to install with the following Aptfile:

cimg-dev
libphash0-dev
libmagickcore-dev

everything seems to be installed correctly. however, when i try to compile my nodejs phash addon, i get:

       Package pHash was not found in the pkg-config search path.
       Perhaps you should add the directory containing `pHash.pc'
       to the PKG_CONFIG_PATH environment variable
       No package 'pHash' found
       gyp: Call to 'pkg-config --libs-only-L --libs-only-other pHash' returned exit status 1. while trying to load binding.gyp

do you know what this could mean? it works on my circleci instance out of the box, so i think it's a config issue

ddollar commented 9 years ago

Perhaps the PKG_CONFIG_PATH here needs some additional directories?

https://github.com/ddollar/heroku-buildpack-apt/blob/master/bin/compile#L72

jonathanong commented 9 years ago

hahaa seems it's another buildpack messing stuff up. thanks!