{"action":"created","issue":{"url":"https://api.github.com/repos/rbenv/ruby-build/issues/731","repository_url":"https://api.github.com/repos/rbenv/ruby-build","labels_url":"https://api.github.com/repos/rbenv/ruby-build/issues/731/labels{/name}","comments_url":"https://api.github.com/repos/rbenv/ruby-build/issues/731/comments","events_url":"https://api.github.com/repos/rbenv/ruby-build/issues/731/events","html_url":"https://github.com/rbenv/ruby-build/issues/731","id":62627525,"number":731,"title":"rbenv install 2.2.1 - recipe for target 'build-ext' failed (Arch Linux)","user":{"login":"douyw","id":436411,"avatar_url":"https://avatars.githubusercontent.com/u/436411?v=3","gravatar_id":"","url":"https://api.github.com/users/douyw","html_url":"https://github.com/douyw","followers_url":"https://api.github.com/users/douyw/followers","following_url":"https://api.github.com/users/douyw/following{/other_user}","gists_url":"https://api.github.com/users/douyw/gists{/gist_id}","starred_url":"https://api.github.com/users/douyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douyw/subscriptions","organizations_url":"https://api.github.com/users/douyw/orgs","repos_url":"https://api.github.com/users/douyw/repos","events_url":"https://api.github.com/users/douyw/events{/privacy}","received_events_url":"https://api.github.com/users/douyw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-18T08:51:00Z","updated_at":"2016-04-03T20:27:14Z","closed_at":"2015-04-14T04:01:53Z","body":"'rbenv install 2.2.1' on Arch Linux still does not work even libffi is installed. \r\n\r\n```\r\n$ rbenv install --version\r\nruby-build 20150303\r\n\r\n$ uname -a\r\nLinux myarchlinux 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux\r\n\r\n$ rbenv install 2.2.1\r\nDownloading ruby-2.2.1.tar.gz...\r\n-> http://dqw8nmjcqpjn7.cloudfront.net/5a4de38068eca8919cb087d338c0c2e3d72c9382c804fb27ab746e6c7819ab28\r\nInstalling ruby-2.2.1...\r\n\r\nBUILD FAILED (Arch Linux using ruby-build 20150303)\r\n\r\nInspect or clean up the working tree at /tmp/ruby-build.20150318083414.15969\r\nResults logged to /tmp/ruby-build.20150318083414.15969.log\r\n\r\nLast 10 log lines:\r\nmake[2]: Leaving directory '/tmp/ruby-build.20150318083414.15969/ruby-2.2.1/ext/objspace'\r\ninstalling default date_core libraries\r\ninstalling default nkf libraries\r\nlinking shared-object date_core.so\r\nmake[2]: Leaving directory '/tmp/ruby-build.20150318083414.15969/ruby-2.2.1/ext/date'\r\nlinking shared-object nkf.so\r\nmake[2]: Leaving directory '/tmp/ruby-build.20150318083414.15969/ruby-2.2.1/ext/nkf'\r\nmake[1]: Leaving directory '/tmp/ruby-build.20150318083414.15969/ruby-2.2.1'\r\nuncommon.mk:189: recipe for target 'build-ext' failed\r\nmake: *** [build-ext] Error 2\r\n```\r\n```\r\n$ sudo pacman -Ss libffi\r\ncore/libffi 3.2.1-1 [installed]\r\n    Portable foreign function interface library\r\n```\r\nfrom log file (/tmp/ruby-build.20150318083414.15969.log):\r\n```\r\nlinking shared-object fiddle.so\r\n/usr/bin/ld: ./libffi-3.2.1/.libs/libffi.a(raw_api.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC\r\n./libffi-3.2.1/.libs/libffi.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:325: recipe for target '../../.ext/x86_64-linux/fiddle.so' failed\r\nmake[2]: *** [../../.ext/x86_64-linux/fiddle.so] Error 1\r\nmake[2]: Leaving directory '/tmp/ruby-build.20150318083414.15969/ruby-2.2.1/ext/fiddle'\r\nexts.mk:177: recipe for target 'ext/fiddle/all' failed\r\nmake[1]: *** [ext/fiddle/all] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rbenv/ruby-build/issues/comments/205047894","html_url":"https://github.com/rbenv/ruby-build/issues/731#issuecomment-205047894","issue_url":"https://api.github.com/repos/rbenv/ruby-build/issues/731","id":205047894,"user":{"login":"brentgsw","id":7967287,"avatar_url":"https://avatars.githubusercontent.com/u/7967287?v=3","gravatar_id":"","url":"https://api.github.com/users/brentgsw","html_url":"https://github.com/brentgsw","followers_url":"https://api.github.com/users/brentgsw/followers","following_url":"https://api.github.com/users/brentgsw/following{/other_user}","gists_url":"https://api.github.com/users/brentgsw/gists{/gist_id}","starred_url":"https://api.github.com/users/brentgsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentgsw/subscriptions","organizations_url":"https://api.github.com/users/brentgsw/orgs","repos_url":"https://api.github.com/users/brentgsw/repos","events_url":"https://api.github.com/users/brentgsw/events{/privacy}","received_events_url":"https://api.github.com/users/brentgsw/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T20:27:14Z","updated_at":"2016-04-03T20:27:14Z","body":"I'm getting this same error trying to install 2.1.2 in manjaro(arch based). "}}