{"action":"created","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/1159","labels_url":"https://api.github.com/repos/google/protobuf/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/1159/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/1159/events","html_url":"https://github.com/google/protobuf/issues/1159","id":127764697,"number":1159,"title":"Cannot install the ruby gem on Ruby 2.2.2","user":{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T19:27:24Z","updated_at":"2016-01-20T21:30:50Z","closed_at":"2016-01-20T21:30:50Z","body":"When I try to run `gem install google-protobuf -v '3.0.0.alpha.4.0'` on Ruby 2.2.2, I get the following output\r\n\r\n```\r\nERROR:  Error installing google-protobuf:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /usr/local/google/home/mlumish/.rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20160120-19477-1cg34d2.rb extconf.rb\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling protobuf.c\r\ncompiling defs.c\r\ncompiling storage.c\r\ncompiling message.c\r\ncompiling repeated_field.c\r\ncompiling map.c\r\ncompiling encode_decode.c\r\ncompiling upb.c\r\nupb/json/parser.rl: In function ‘json_nice_escape’:\r\nupb/json/parser.rl:1398:15: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1399:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1400:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1401:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1402:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1403:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nupb/json/parser.rl:1404:16: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]\r\nlinking shared-object google/protobuf_c.so\r\n/usr/bin/ld: cannot find -lgmp\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [protobuf_c.so] Error 1\r\n\r\nmake failed, exit code 2\r\n```"},"comment":{"url":"https://api.github.com/repos/google/protobuf/issues/comments/173365186","html_url":"https://github.com/google/protobuf/issues/1159#issuecomment-173365186","issue_url":"https://api.github.com/repos/google/protobuf/issues/1159","id":173365186,"user":{"login":"haberman","id":1270,"avatar_url":"https://avatars.githubusercontent.com/u/1270?v=3","gravatar_id":"","url":"https://api.github.com/users/haberman","html_url":"https://github.com/haberman","followers_url":"https://api.github.com/users/haberman/followers","following_url":"https://api.github.com/users/haberman/following{/other_user}","gists_url":"https://api.github.com/users/haberman/gists{/gist_id}","starred_url":"https://api.github.com/users/haberman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haberman/subscriptions","organizations_url":"https://api.github.com/users/haberman/orgs","repos_url":"https://api.github.com/users/haberman/repos","events_url":"https://api.github.com/users/haberman/events{/privacy}","received_events_url":"https://api.github.com/users/haberman/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:30:50Z","updated_at":"2016-01-20T21:30:50Z","body":"Hmm, I don't think this error is related to protobuf per se. We don't use the lgmp library -- I think that would be coming from your base Ruby install.\r\n\r\nHere is the same issue reported against a different library, and some suggested fixes: http://stackoverflow.com/questions/32130649/can-not-install-json-gem-with-ruby-2-2-3-on-ubuntu"}}