2014-12-11 8 views
3

나는 https://github.com/ddollar/heroku-buildpack-apt을 사용하여 heroku에 phash를 설치하려고합니다. https://github.com/mgmtio/phash-image을 사용하여 내 node.js 앱에서 사용하고 싶습니다.heroku pkg-config 설치 실패

나는 현재 Aptfile 있습니다

remote:  > [email protected] install /tmp/build_52b169122dc28a567a6f55c3b892c560/node_modules/phash-image 
remote:  > node-gyp rebuild 
remote:   
remote:  Package pHash was not found in the pkg-config search path. 
remote:  Perhaps you should add the directory containing `pHash.pc' 
remote:  to the PKG_CONFIG_PATH environment variable 
remote:  No package 'pHash' found 
remote:  gyp: Call to 'pkg-config --libs-only-L --libs-only-other pHash' returned exit status 1. while trying to load binding.gyp 
remote:  gyp ERR! configure error 
remote:  gyp ERR! stack Error: `gyp` failed with exit code: 1 
remote:  gyp ERR! stack  at ChildProcess.onCpExit (/tmp/build_52b169122dc28a567a6f55c3b892c560/vendor/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) 
remote:  gyp ERR! stack  at ChildProcess.emit (events.js:98:17) 
remote:  gyp ERR! stack  at Process.ChildProcess._handle.onexit (child_process.js:810:12) 
remote:  gyp ERR! System Linux 3.8.11-ec2 
remote:  gyp ERR! command "node" "/tmp/build_52b169122dc28a567a6f55c3b892c560/vendor/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
remote:  gyp ERR! cwd /tmp/build_52b169122dc28a567a6f55c3b892c560/node_modules/phash-image 
remote:  gyp ERR! node -v v0.10.33 
remote:  gyp ERR! node-gyp -v v1.0.1 
remote:  gyp ERR! not ok 

이 무엇을 의미 하는가 그러나

cimg-dev 
libphash0-dev 
libmagickcore-dev 

을, 나는 현재 다음과 같은 오류를 받고 있어요? 어떻게 고칠 수 있니?

+0

[pHash] (http://www.phash.org/)가 설치되어 있습니까? 및'PKG_CONFIG_PATH'가 설정되어 있습니까? – Epicblood

답변

0

죄송 사람의 유사한 문제가 여기에 제기 된 PKG_CONFIG_PATH

$ export PKG_CONFIG_PATH= <path_here> 

에 추가! 문제는 다른 하나의 buildpack이 config 경로를 엉망으로 만들고 있다는 것입니다. 감각이 고쳐졌습니다!

4

오류 메시지는 pkg-config 검색 경로에 패키지 pHash가 없습니다. `pHash.pc '를 포함하는 디렉토리를 PKG_CONFIG_PATH 환경 변수에 추가해야합니다. pHash에 대한 경로가 설정되지 않았습니다.

시도 :

$ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig 
$ export PKG_CONFIG_PATH 

다음 다시.

그 doesnot이 당신에게 pHash.pc의 경로를 줄 것이다

$ locate pHash.pc 

작업하는 경우. 경로 (마이너스 pHash.pc)를 사용하고 node canvas githib