{"comment":{"url":"https://api.github.com/repos/micropython/micropython/comments/10376768","html_url":"https://github.com/micropython/micropython/commit/1129de5ac09ac5b41a952021cbc7a9752c8c253f#commitcomment-10376768","id":10376768,"user":{"login":"blmorris","id":6295715,"avatar_url":"https://avatars.githubusercontent.com/u/6295715?v=3","gravatar_id":"","url":"https://api.github.com/users/blmorris","html_url":"https://github.com/blmorris","followers_url":"https://api.github.com/users/blmorris/followers","following_url":"https://api.github.com/users/blmorris/following{/other_user}","gists_url":"https://api.github.com/users/blmorris/gists{/gist_id}","starred_url":"https://api.github.com/users/blmorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blmorris/subscriptions","organizations_url":"https://api.github.com/users/blmorris/orgs","repos_url":"https://api.github.com/users/blmorris/repos","events_url":"https://api.github.com/users/blmorris/events{/privacy}","received_events_url":"https://api.github.com/users/blmorris/received_events","type":"User","site_admin":false},"position":4,"line":38,"path":"unix/input.c","commit_id":"1129de5ac09ac5b41a952021cbc7a9752c8c253f","created_at":"2015-03-24T20:35:52Z","updated_at":"2015-03-24T20:35:52Z","body":"I found a specific fix for my system, but it won't work for all Mac users: I added the line \r\n`CFLAGS_MOD += -I/opt/local/include` to `unix/Makefile` so that make is able to find GNU readline on my system. This is the location preferred by MacPorts, but the package manager Home Brew installs to a different location. It seems that these package programs leave the default readline path in place to avoid breaking programs that rely on OSX's stock readline.\r\nIs it reasonable to add the paths used by MacPorts and HomeBrew to the makefile? I'm guessing there is a more elegant way, but I don't know it yet."}}