{"action":"created","issue":{"url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/129","repository_url":"https://api.github.com/repos/Blizzard/node-rdkafka","labels_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/129/comments","events_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/129/events","html_url":"https://github.com/Blizzard/node-rdkafka/issues/129","id":211294845,"number":129,"title":"\"npm install\" failed on \"npm ERR! node-rdkafka@0.8.0 install: `node-gyp rebuild`\"","user":{"login":"mr-kawaii","id":53836,"avatar_url":"https://avatars0.githubusercontent.com/u/53836?v=3","gravatar_id":"","url":"https://api.github.com/users/mr-kawaii","html_url":"https://github.com/mr-kawaii","followers_url":"https://api.github.com/users/mr-kawaii/followers","following_url":"https://api.github.com/users/mr-kawaii/following{/other_user}","gists_url":"https://api.github.com/users/mr-kawaii/gists{/gist_id}","starred_url":"https://api.github.com/users/mr-kawaii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mr-kawaii/subscriptions","organizations_url":"https://api.github.com/users/mr-kawaii/orgs","repos_url":"https://api.github.com/users/mr-kawaii/repos","events_url":"https://api.github.com/users/mr-kawaii/events{/privacy}","received_events_url":"https://api.github.com/users/mr-kawaii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-02T05:40:46Z","updated_at":"2017-03-03T00:06:57Z","closed_at":null,"body":"I'm writing a simple Kafka consumer app using node-rdkafka. So far I can only run \"npm install\" successfully with node v6.3.1 and npm v3.10.3. I tried upgrading to the latest version, e.g. node v6.10.0 and npm v3.10.10, or even the even later version, node v7 and npm v4, both failed with same error. What am I doing wrong? I tried different versions on both mac and ubuntu.\r\n\r\n```../deps/librdkafka/src/rdkafka_sasl.c: In function 'rd_kafka_sasl_io_event':\r\n../deps/librdkafka/src/rdkafka_sasl.c:129:23: error: 'rd_kafka_transport_t {aka struct rd_kafka_transport_s}' has no member named 'rktrans_sasl'\r\n         return rktrans->rktrans_sasl.recv(rktrans,\r\n                       ^\r\nIn file included from /usr/include/string.h:635:0,\r\n                 from ../deps/librdkafka/src/rd.h:45,\r\n                 from ../deps/librdkafka/src/rdkafka_int.h:44,\r\n                 from ../deps/librdkafka/src/rdkafka_sasl.c:29:\r\n../deps/librdkafka/src/rdkafka_sasl.c: In function 'rd_kafka_sasl_client_new':\r\n../deps/librdkafka/src/rdkafka_sasl.c:157:32: error: 'rd_kafka_conf_t {aka struct rd_kafka_conf_s}' has no member named 'sasl'\r\n         if (!strcmp(rk->rk_conf.sasl.mechanisms, \"GSSAPI\")) {\r\n```\r\n\r\nand\r\n\r\n```\r\nnpm ERR! Linux 3.13.0-110-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v6.10.0\r\nnpm ERR! npm  v3.10.10\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! node-rdkafka@0.8.0 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the node-rdkafka@0.8.0 install script '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 node-rdkafka package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs node-rdkafka\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls node-rdkafka\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/vagrant/npm-debug.log\r\n```\r\n\r\nAlso I've reduced to minimal dependencies in package.json\r\n```\r\n{\r\n  \"name\": \"kafka-monitor\",\r\n  \"dependencies\": {\r\n    \"node-rdkafka\": \"^0.8.0\",\r\n    \"node-uuid\": \"^1.4.7\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/comments/283823565","html_url":"https://github.com/Blizzard/node-rdkafka/issues/129#issuecomment-283823565","issue_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/129","id":283823565,"user":{"login":"webmakersteve","id":6353085,"avatar_url":"https://avatars1.githubusercontent.com/u/6353085?v=3","gravatar_id":"","url":"https://api.github.com/users/webmakersteve","html_url":"https://github.com/webmakersteve","followers_url":"https://api.github.com/users/webmakersteve/followers","following_url":"https://api.github.com/users/webmakersteve/following{/other_user}","gists_url":"https://api.github.com/users/webmakersteve/gists{/gist_id}","starred_url":"https://api.github.com/users/webmakersteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmakersteve/subscriptions","organizations_url":"https://api.github.com/users/webmakersteve/orgs","repos_url":"https://api.github.com/users/webmakersteve/repos","events_url":"https://api.github.com/users/webmakersteve/events{/privacy}","received_events_url":"https://api.github.com/users/webmakersteve/received_events","type":"User","site_admin":false},"created_at":"2017-03-03T00:06:57Z","updated_at":"2017-03-03T00:06:57Z","body":"It's because `node-rdkafka` has a dependency on the `sasl` library, but we allow you to compile without it in the only way possible - by specifying a variable saying you don't want it.\r\n\r\nIf you don't want to have to do that you can install the sasl libraries for your platform. What operating system are you installing this on?"}}
{"actor":{"display_login":"webmakersteve"}}