{"action":"closed","issue":{"url":"https://api.github.com/repos/postmodern/ruby-install/issues/246","labels_url":"https://api.github.com/repos/postmodern/ruby-install/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/postmodern/ruby-install/issues/246/comments","events_url":"https://api.github.com/repos/postmodern/ruby-install/issues/246/events","html_url":"https://github.com/postmodern/ruby-install/issues/246","id":119918733,"number":246,"title":"can't install ruby 1.8.7 on ubuntu 14.04","user":{"login":"henjin","id":999820,"avatar_url":"https://avatars.githubusercontent.com/u/999820?v=3","gravatar_id":"","url":"https://api.github.com/users/henjin","html_url":"https://github.com/henjin","followers_url":"https://api.github.com/users/henjin/followers","following_url":"https://api.github.com/users/henjin/following{/other_user}","gists_url":"https://api.github.com/users/henjin/gists{/gist_id}","starred_url":"https://api.github.com/users/henjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henjin/subscriptions","organizations_url":"https://api.github.com/users/henjin/orgs","repos_url":"https://api.github.com/users/henjin/repos","events_url":"https://api.github.com/users/henjin/events{/privacy}","received_events_url":"https://api.github.com/users/henjin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T11:04:57Z","updated_at":"2015-12-02T23:58:32Z","closed_at":"2015-12-02T23:58:32Z","body":"Hi,\r\nI can't install ruby 1.8.7 on ubuntu, getting this error\r\n```\r\ngcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c io.c\r\nio.c: In function ‘appendline’:\r\nio.c:1549:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]\r\n      fread(RSTRING(str)->ptr + last, 1, pending, f); /* must not fail */\r\n           ^\r\nio.c: In function ‘next_argv’:\r\nio.c:4575:10: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result]\r\n    fchown(fileno(fw), st.st_uid, st.st_gid);\r\n          ^\r\ngcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c marshal.c\r\ngcc -g -O2    -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.    -c math.c\r\nmath.c: In function ‘domain_check’:\r\nmath.c:37:13: error: missing binary operator before token \"(\"\r\n #elif define(ERANGE)\r\n             ^\r\nmake: *** [math.o] Error 1\r\n!!! Compiling ruby 1.8.7 failed!\r\n```\r\n\r\nim using ruby-install: 0.5.0"}}