{"action":"created","issue":{"url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/4","labels_url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/4/comments","events_url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/4/events","html_url":"https://github.com/canweriotnow/rpam-ruby19/issues/4","id":6329777,"number":4,"title":"Gem fails to build on Ubuntu Linux","user":{"login":"tboyko","id":969572,"avatar_url":"https://avatars.githubusercontent.com/u/969572?v=3","gravatar_id":"","url":"https://api.github.com/users/tboyko","html_url":"https://github.com/tboyko","followers_url":"https://api.github.com/users/tboyko/followers","following_url":"https://api.github.com/users/tboyko/following{/other_user}","gists_url":"https://api.github.com/users/tboyko/gists{/gist_id}","starred_url":"https://api.github.com/users/tboyko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboyko/subscriptions","organizations_url":"https://api.github.com/users/tboyko/orgs","repos_url":"https://api.github.com/users/tboyko/repos","events_url":"https://api.github.com/users/tboyko/events{/privacy}","received_events_url":"https://api.github.com/users/tboyko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-08-20T16:33:22Z","updated_at":"2016-01-10T07:21:14Z","closed_at":"2012-08-20T21:54:17Z","body":"Not a bug, but a suggestion for your docs. When installing this gem on Ubuntu Linux, it will generally fail. This is because you need to install the following first:\n\n```apt-get install libpam0g-dev```\n\nThe error that will appear otherwise:\n\n```\n/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb \nchecking for security/pam_appl.h... no\nchecking for security/pam_modules.h... no\nchecking for pam_start() in -lpam... no\nchecking for pam_end()... no\nchecking for pam_open_session()... no\nchecking for pam_close_session()... no\nchecking for pam_authenticate()... no\nchecking for pam_acct_mgmt()... no\ncreating Makefile\n\nmake\ncompiling rpam_ext.c\nrpam_ext.c:23:31: error: security/pam_appl.h: No such file or directory\nrpam_ext.c:46: warning: ‘struct pam_response’ declared inside parameter list\nrpam_ext.c:46: warning: its scope is only this definition or declaration, which is probably not what you want\nrpam_ext.c:46: warning: ‘struct pam_message’ declared inside parameter list\nrpam_ext.c: In function ‘auth_pam_talker’:\nrpam_ext.c:55: error: ‘PAM_CONV_ERR’ undeclared (first use in this function)\nrpam_ext.c:55: error: (Each undeclared identifier is reported only once\nrpam_ext.c:55: error: for each function it appears in.)\nrpam_ext.c:58: error: invalid application of ‘sizeof’ to incomplete type ‘struct pam_response’ \nrpam_ext.c:65: error: invalid use of undefined type ‘struct pam_response’\nrpam_ext.c:65: error: dereferencing pointer to incomplete type\nrpam_ext.c:66: error: invalid use of undefined type ‘struct pam_response’\nrpam_ext.c:66: error: dereferencing pointer to incomplete type\nrpam_ext.c:69: error: dereferencing pointer to incomplete type\nrpam_ext.c:70: error: ‘PAM_PROMPT_ECHO_ON’ undeclared (first use in this function)\nrpam_ext.c:72: error: invalid use of undefined type ‘struct pam_response’\nrpam_ext.c:72: error: dereferencing pointer to incomplete type\nrpam_ext.c:74: error: ‘PAM_PROMPT_ECHO_OFF’ undeclared (first use in this function)\nrpam_ext.c:75: error: invalid use of undefined type ‘struct pam_response’\nrpam_ext.c:75: error: dereferencing pointer to incomplete type\nrpam_ext.c:85: error: ‘PAM_SUCCESS’ undeclared (first use in this function)\nrpam_ext.c: In function ‘method_authpam’:\nrpam_ext.c:93: error: variable ‘conv_info’ has initializer but incomplete type\nrpam_ext.c:93: warning: excess elements in struct initializer\nrpam_ext.c:93: warning: (near initialization for ‘conv_info’)\nrpam_ext.c:93: warning: excess elements in struct initializer\nrpam_ext.c:93: warning: (near initialization for ‘conv_info’)\nrpam_ext.c:93: error: storage size of ‘conv_info’ isn’t known\nrpam_ext.c:94: error: ‘pam_handle_t’ undeclared (first use in this function)\nrpam_ext.c:94: error: ‘pamh’ undeclared (first use in this function)\nrpam_ext.c:102: error: ‘PAM_SUCCESS’ undeclared (first use in this function)\nrpam_ext.c:106: error: ‘PAM_DISALLOW_NULL_AUTHTOK’ undeclared (first use in this function)\nmake: *** [rpam_ext.o] Error 1\n```"},"comment":{"url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/comments/170322911","html_url":"https://github.com/canweriotnow/rpam-ruby19/issues/4#issuecomment-170322911","issue_url":"https://api.github.com/repos/canweriotnow/rpam-ruby19/issues/4","id":170322911,"user":{"login":"howdoicomputer","id":6774447,"avatar_url":"https://avatars.githubusercontent.com/u/6774447?v=3","gravatar_id":"","url":"https://api.github.com/users/howdoicomputer","html_url":"https://github.com/howdoicomputer","followers_url":"https://api.github.com/users/howdoicomputer/followers","following_url":"https://api.github.com/users/howdoicomputer/following{/other_user}","gists_url":"https://api.github.com/users/howdoicomputer/gists{/gist_id}","starred_url":"https://api.github.com/users/howdoicomputer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdoicomputer/subscriptions","organizations_url":"https://api.github.com/users/howdoicomputer/orgs","repos_url":"https://api.github.com/users/howdoicomputer/repos","events_url":"https://api.github.com/users/howdoicomputer/events{/privacy}","received_events_url":"https://api.github.com/users/howdoicomputer/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T07:21:14Z","updated_at":"2016-01-10T07:21:14Z","body":"A google search brought me here. Only result. Neat.\r\n"}}