{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/42223","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42223/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42223/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42223/events","html_url":"https://github.com/Homebrew/homebrew/issues/42223","id":97807806,"number":42223,"title":"Postgres install fails on OSX 10.11","user":{"login":"codeOfRobin","id":5009041,"avatar_url":"https://avatars.githubusercontent.com/u/5009041?v=3","gravatar_id":"","url":"https://api.github.com/users/codeOfRobin","html_url":"https://github.com/codeOfRobin","followers_url":"https://api.github.com/users/codeOfRobin/followers","following_url":"https://api.github.com/users/codeOfRobin/following{/other_user}","gists_url":"https://api.github.com/users/codeOfRobin/gists{/gist_id}","starred_url":"https://api.github.com/users/codeOfRobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeOfRobin/subscriptions","organizations_url":"https://api.github.com/users/codeOfRobin/orgs","repos_url":"https://api.github.com/users/codeOfRobin/repos","events_url":"https://api.github.com/users/codeOfRobin/events{/privacy}","received_events_url":"https://api.github.com/users/codeOfRobin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/10.11","name":"10.11","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-28T21:40:01Z","updated_at":"2015-08-27T18:52:12Z","closed_at":"2015-08-19T11:08:05Z","body":"I get the following error:\r\n\r\n==> ./configure --prefix=/usr/local/Cellar/postgresql/9.4.4 --datadir=/usr/local\r\nchecking for library containing readline... no\r\nconfigure: error: readline library not found\r\nIf you have readline already installed, see config.log for details on the\r\nfailure.  It is possible the compiler isn't looking in the proper directory.\r\nUse --without-readline to disable readline support.\r\n\r\nI've done brew install readline, and it said the following:\r\n\r\nThis formula is keg-only, which means it was not symlinked into /usr/local.\r\n\r\nOS X provides the BSD libedit library, which shadows libreadline.\r\nIn order to prevent conflicts when programs look for libreadline we are\r\ndefaulting this GNU Readline installation to keg-only.\r\n\r\n\r\nGenerally there are no consequences of this for you. If you build your\r\nown software and it requires this formula, you'll need to add to your\r\nbuild variables:\r\n\r\n    LDFLAGS:  -L/usr/local/opt/readline/lib\r\n    CPPFLAGS: -I/usr/local/opt/readline/include"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/135521356","html_url":"https://github.com/Homebrew/homebrew/issues/42223#issuecomment-135521356","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42223","id":135521356,"user":{"login":"mariusk","id":218612,"avatar_url":"https://avatars.githubusercontent.com/u/218612?v=3","gravatar_id":"","url":"https://api.github.com/users/mariusk","html_url":"https://github.com/mariusk","followers_url":"https://api.github.com/users/mariusk/followers","following_url":"https://api.github.com/users/mariusk/following{/other_user}","gists_url":"https://api.github.com/users/mariusk/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusk/subscriptions","organizations_url":"https://api.github.com/users/mariusk/orgs","repos_url":"https://api.github.com/users/mariusk/repos","events_url":"https://api.github.com/users/mariusk/events{/privacy}","received_events_url":"https://api.github.com/users/mariusk/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T18:52:12Z","updated_at":"2015-08-27T18:52:12Z","body":"After a lot of trial and error and with the help of the fine folks in the #machomebrew IRC channel, doing this:\r\n\r\n    sudo xcode-select -s /Library/Developer/CommandLineTools\r\n\r\nbefore installation seems to solve most of the issues. I can not rule out that all my attempts at building/linking libxml2 and openssl also contributed, but the final breakthrough came after doing the xcode-select (effectively moving it away from pointing into the SDK). This assumes you have the cmdline tools installed of course. The people in the IRC channels still seems to believe there is something wrong with the build procedures somewhere that messes with some linker settings, but in the meantime maybe what I shared may help others struggling."}}