{"action":"opened","issue":{"url":"https://api.github.com/repos/lwille/node-gphoto2/issues/87","repository_url":"https://api.github.com/repos/lwille/node-gphoto2","labels_url":"https://api.github.com/repos/lwille/node-gphoto2/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/lwille/node-gphoto2/issues/87/comments","events_url":"https://api.github.com/repos/lwille/node-gphoto2/issues/87/events","html_url":"https://github.com/lwille/node-gphoto2/issues/87","id":187650266,"number":87,"title":"libgphoto2 correctly installed, failing on preinstall script","user":{"login":"timmythetiny","id":13814470,"avatar_url":"https://avatars.githubusercontent.com/u/13814470?v=3","gravatar_id":"","url":"https://api.github.com/users/timmythetiny","html_url":"https://github.com/timmythetiny","followers_url":"https://api.github.com/users/timmythetiny/followers","following_url":"https://api.github.com/users/timmythetiny/following{/other_user}","gists_url":"https://api.github.com/users/timmythetiny/gists{/gist_id}","starred_url":"https://api.github.com/users/timmythetiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmythetiny/subscriptions","organizations_url":"https://api.github.com/users/timmythetiny/orgs","repos_url":"https://api.github.com/users/timmythetiny/repos","events_url":"https://api.github.com/users/timmythetiny/events{/privacy}","received_events_url":"https://api.github.com/users/timmythetiny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T08:23:29Z","updated_at":"2016-11-07T08:23:29Z","closed_at":null,"body":"Howdy howdy!\r\n\r\nI have libgphoto2 and gphoto2 installed on my machine through brew.  I can use gphoto2 from the command line just fine, and I can use libgphoto2 in a C-language Xcode project as long as I set the correct compiler flags and header search paths, as generated using `pkg-config --cflags libgphoto2` and `pkg-config --libs libgphoto2`.  Likewise if I'm compiling with g++.  The Terminal output from `npm install --save gphoto2` is as follows: \r\n\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the gphoto2@0.1.7 preinstall script '((which pkg-config && pkg-config libgphoto2) || (which dpkg && dpkg -s libgphoto2-2-dev) || (which brew && brew list libgphoto2) || (echo 'ERROR: libgphoto2 seems not to be installed.' 1>&2; exit 1)) && node-gyp rebuild'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the gphoto2 package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     ((which pkg-config && pkg-config libgphoto2) || (which dpkg && dpkg -s libgphoto2-2-dev) || (which brew && brew list libgphoto2) || (echo 'ERROR: libgphoto2 seems not to be installed.' 1>&2; exit 1)) && node-gyp rebuild\r\n\r\nI don't have an installation of dpkg, `pkg-config libgphoto2` prints nothing to the console, and `brew list libgphoto2` has the following output: \r\n\r\n/usr/local/Cellar/libgphoto2/2.5.10/bin/gphoto2-config\r\n/usr/local/Cellar/libgphoto2/2.5.10/bin/gphoto2-port-config\r\n/usr/local/Cellar/libgphoto2/2.5.10/include/gphoto2/ (18 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/libgphoto2.6.dylib\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/libgphoto2_port.12.dylib\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/libgphoto2/ (65 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/libgphoto2_port/ (7 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/pkgconfig/ (2 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/udev/check-ptp-camera\r\n/usr/local/Cellar/libgphoto2/2.5.10/lib/ (2 other files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/share/doc/ (54 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/share/libgphoto2/ (6 files)\r\n/usr/local/Cellar/libgphoto2/2.5.10/share/libgphoto2_port/0.12.0/vcamera/README.txt\r\n/usr/local/Cellar/libgphoto2/2.5.10/share/man/ (2 files)\r\n\r\nThanks in advance, and let me know if I can offer any further information.  "}}
{"actor":{"display_login":"timmythetiny"}}