Installing R on OS X with Readline
When attempting to install R on OS X with homebrew I ran into the following error:
Turns out there is an issue with the default Mac readline lib being old and moldy. While you can compile without readline support, that makes the read-eval-print loop really hard to interact with. To fix the problem, you need to add readline as a dependency and change the CPPFLAGS and LDFLAGS environment variables to look in the right directory. Type:
and then add the depends line and the environment variable lines as shown in:
After that, save and close the file, and then you should be good to go: