{"action":"created","issue":{"url":"https://api.github.com/repos/joeferner/node-java/issues/179","repository_url":"https://api.github.com/repos/joeferner/node-java","labels_url":"https://api.github.com/repos/joeferner/node-java/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/joeferner/node-java/issues/179/comments","events_url":"https://api.github.com/repos/joeferner/node-java/issues/179/events","html_url":"https://github.com/joeferner/node-java/issues/179","id":53028902,"number":179,"title":"node-gyp fails on Raspbian (raspberry pi)","user":{"login":"A----","id":9195926,"avatar_url":"https://avatars.githubusercontent.com/u/9195926?v=3","gravatar_id":"","url":"https://api.github.com/users/A----","html_url":"https://github.com/A----","followers_url":"https://api.github.com/users/A----/followers","following_url":"https://api.github.com/users/A----/following{/other_user}","gists_url":"https://api.github.com/users/A----/gists{/gist_id}","starred_url":"https://api.github.com/users/A----/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A----/subscriptions","organizations_url":"https://api.github.com/users/A----/orgs","repos_url":"https://api.github.com/users/A----/repos","events_url":"https://api.github.com/users/A----/events{/privacy}","received_events_url":"https://api.github.com/users/A----/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-29T09:23:43Z","updated_at":"2016-03-05T12:23:04Z","closed_at":null,"body":"On Raspbian, install failed as it didn't set javalibdir variable.\r\n\r\nI fixed it by explicitly setting it in the `GYP_DEFINES` env variable:\r\n```sh\r\nGYP_DEFINES=\"armv7=0 javalibdir=/usr/lib/jvm/java-1.7.0-openjdk-armhf/jre/lib/arm/server/\" CCFLAGS='-march=armv6' CXXFLAGS='-march=armv6' npm install java\r\n```\r\n\r\nIf you need more information to fix `binding.gyp`, maybe I can help."},"comment":{"url":"https://api.github.com/repos/joeferner/node-java/issues/comments/192632518","html_url":"https://github.com/joeferner/node-java/issues/179#issuecomment-192632518","issue_url":"https://api.github.com/repos/joeferner/node-java/issues/179","id":192632518,"user":{"login":"jhergeth","id":5088496,"avatar_url":"https://avatars.githubusercontent.com/u/5088496?v=3","gravatar_id":"","url":"https://api.github.com/users/jhergeth","html_url":"https://github.com/jhergeth","followers_url":"https://api.github.com/users/jhergeth/followers","following_url":"https://api.github.com/users/jhergeth/following{/other_user}","gists_url":"https://api.github.com/users/jhergeth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhergeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhergeth/subscriptions","organizations_url":"https://api.github.com/users/jhergeth/orgs","repos_url":"https://api.github.com/users/jhergeth/repos","events_url":"https://api.github.com/users/jhergeth/events{/privacy}","received_events_url":"https://api.github.com/users/jhergeth/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T12:23:04Z","updated_at":"2016-03-05T12:23:04Z","body":"After an update of oracle-java8-jdk the line changes to:\r\nGYP_DEFINES=\"armv7=0 javalibdir=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/arm/server\" CCFLAGS='-march=armv6' CXXFLAGS='-march=armv6' npm install -g java\r\non a raspberry 2! (Change of the jdk directory, it now contains arm**32**)!"}}