I'm no Homebrew expert but I think it has "upgraded" me from readline version 6.x to 7.0 sometime after 9/15/16:
eat@eric-macbook:Homebrew$ brew info readline readline: stable 7.0 (bottled) [keg-only] Library for command-line editing https://tiswww.case.edu/php/chet/readline/rltop.html /usr/local/Cellar/readline/7.0 (45 files, 2M)
This has caused headaches for my 9.4.5 Homebrew version of Postgresql (I need the older 9.4 for comparability reasons):
eat@eric-macbook:~$ psql --version dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib Referenced from: /usr/local/Cellar/postgresql/9.4.5/bin/psql Reason: image not found Trace/BPT trap: 5
Unfortunately I can't find a 6.x version of readline on Homebrew to revert to - only 7.0 seems to be available(?).
My question is twofold:
Thank you in advance!
checking for library containing readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. [root@10 postgresql-12.0]#
It includes a version of PostgreSQL packaged by what it refers to as a formula. This type of installation might be preferred by people who are comfortable using the command line to install programs, such as software developers.
After installing the ‘readline-devel’ package, just execute the command once more. The output will be very different. The following is the actual output of the execution after installing ‘readline-devel’ package :
Actually, there are several packages containing the name of ‘readline’. But there is only one package which is the suitable one for solving the problem. It is a package with the name of ‘readline-devel’. So, execute the following command to install ‘readline-devel’ :
To answer the specific question.
You can switch between version of installed brew packages which are still around locally as explained in this question: Homebrew install specific version of formula?
To downgrade to readline 6.x the following command worked for me:
brew switch readline 6.3.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With