{"action":"closed","issue":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/241","labels_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/241/comments","events_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/241/events","html_url":"https://github.com/Homebrew/linuxbrew/issues/241","id":53982731,"number":241,"title":"readline: C compiler cannot create executables","user":{"login":"hbetts","id":6701030,"avatar_url":"https://avatars.githubusercontent.com/u/6701030?v=3","gravatar_id":"","url":"https://api.github.com/users/hbetts","html_url":"https://github.com/hbetts","followers_url":"https://api.github.com/users/hbetts/followers","following_url":"https://api.github.com/users/hbetts/following{/other_user}","gists_url":"https://api.github.com/users/hbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/hbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbetts/subscriptions","organizations_url":"https://api.github.com/users/hbetts/orgs","repos_url":"https://api.github.com/users/hbetts/repos","events_url":"https://api.github.com/users/hbetts/events{/privacy}","received_events_url":"https://api.github.com/users/hbetts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/build-error","name":"build-error","color":"e11d21"},{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":{"login":"sjackman","id":291551,"avatar_url":"https://avatars.githubusercontent.com/u/291551?v=3","gravatar_id":"","url":"https://api.github.com/users/sjackman","html_url":"https://github.com/sjackman","followers_url":"https://api.github.com/users/sjackman/followers","following_url":"https://api.github.com/users/sjackman/following{/other_user}","gists_url":"https://api.github.com/users/sjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/sjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjackman/subscriptions","organizations_url":"https://api.github.com/users/sjackman/orgs","repos_url":"https://api.github.com/users/sjackman/repos","events_url":"https://api.github.com/users/sjackman/events{/privacy}","received_events_url":"https://api.github.com/users/sjackman/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-01-11T05:46:17Z","updated_at":"2015-01-20T01:41:36Z","closed_at":"2015-01-20T01:41:36Z","body":"`readline` installation fails due to _C compiler cannot create executables_ error.\r\n\r\n```bash\r\n(~/.local/bin)-(git::master)--> brew install readline --verbose\r\n==> Downloading http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz\r\nAlready downloaded: /home/hutson/.cache/Homebrew/readline-6.3.8.tar.gz\r\n==> Verifying readline-6.3.8.tar.gz checksum\r\ntar xf /home/hutson/.cache/Homebrew/readline-6.3.8.tar.gz\r\n==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff\r\nAlready downloaded: /home/hutson/.cache/Homebrew/readline--patch-dccc973e4a75ecfe45c25c296e0f7785b06586dc.diff\r\n==> Verifying readline--patch-dccc973e4a75ecfe45c25c296e0f7785b06586dc.diff checksum\r\n==> Patching\r\npatch -g 0 -f -p1 -i /home/hutson/.local/tmp/readline--patch-61pNLY/readline-6.3.8.diff\r\npatching file display.c\r\npatching file input.c\r\npatching file misc.c\r\npatching file patchlevel\r\npatching file readline.c\r\npatching file rltypedefs.h\r\npatching file util.c\r\n==> ./configure --prefix=/home/hutson/.local/Cellar/readline/6.3.8 --enable-multibyte\r\nchecking build system type... i686-pc-linux-gnu\r\nchecking host system type... i686-pc-linux-gnu\r\n\r\nBeginning configuration for readline-6.3 for i686-pc-linux-gnu\r\n\r\nchecking whether make sets $(MAKE)... yes\r\nchecking for gcc... /usr/bin/gcc-4.9\r\nchecking whether the C compiler works... no\r\nconfigure: error: in `/home/hutson/.local/tmp/readline-f6mX8R/readline-6.3':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n==> Configuration\r\nHOMEBREW_VERSION: 0.9.5\r\nHEAD: 6a95075ff1aa09d4ec4c2f88383009fabc456bbb\r\nHOMEBREW_PREFIX: /home/hutson/.local\r\nCPU: dual-core 32-bit 6\r\nOS X: 0-i686\r\n/usr/bin/ruby2.1:\r\n  2.1.5-273\r\nX11: N/A\r\n==> ENV\r\nCC: /usr/bin/gcc-4.9\r\nCXX: /usr/bin/g++-4.9\r\nOBJC: /usr/bin/gcc-4.9\r\nOBJCXX: /usr/bin/g++-4.9\r\nCFLAGS: -Os -w -pipe -Xarch_i386 -march=prescott \r\nCXXFLAGS: -Os -w -pipe -Xarch_i386 -march=prescott \r\nCPPFLAGS: -isystem/home/hutson/.local/include\r\nLDFLAGS: -L/home/hutson/.local/lib -Wl,-rpath,/home/hutson/.local/lib \r\nMAKEFLAGS: -j2\r\nCMAKE_PREFIX_PATH: /home/hutson/.local\r\nPKG_CONFIG_LIBDIR: /home/hutson/.local/lib/pkgconfig:/usr/lib/pkgconfig\r\nPATH: /home/hutson/.local/var/rbenv/shims:/home/hutson/.local/bin:./node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/hutson/.local/Library/ENV/scm\r\n\r\nError: readline 6.3.8 did not build\r\nLogs:\r\n     /home/hutson/Library/Logs/Homebrew/readline/01.configure\r\n     /home/hutson/Library/Logs/Homebrew/readline/config.log\r\n\r\nThese open issues may also help:\r\nIssue with readline 6.3.6 (https://github.com/Homebrew/homebrew/issues/30751)\r\n```\r\n\r\nI had already setup symlinks according to [Create symlinks for gcc](https://github.com/Homebrew/linuxbrew/wiki/Standalone-Installation#create-symlinks-for-gcc)\r\n\r\nRunning the same brew command with `--env=inherit` I was able to successfully install `readline`:\r\n\r\n```bash\r\n(~/.local/bin)-(git::master)--> brew install readline --verbose --env=inherit\r\n```\r\n\r\nPlease let me know if I should retest any portion of my process."}}