Trouble with readline library on mac












1















I was updating some programs on my mac and I suddenly encountered some troubles running gnuplot. The error was something like :



dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: .../something/...
Reason: image not found
Trace/BPT trap: 5


That's not my own error (I copy paste this one, which is very close, from the internet) because since then I uninstall gnuplot and I can't install it anymore.



When I run brew install gnuplot, I get :



Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.

==> Installing dependencies for gnuplot: graphite2, harfbuzz, pango and qt
==> Installing gnuplot dependency: graphite2
==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.13/gra
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/e37be24d841649b167ec4be5e60ac444d5ec859aa32d694e93df5ff36c05b2bf--graphite2-1.3.13.tgz
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D
Last 15 lines from /Users/me/Library/Logs/Homebrew/graphite2/01.cmake:
2019-01-29 12:04:38 +0100

cmake
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.13
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DHAVE_CLOCK_GETTIME:INTERNAL=0

CMake Error: No source or binary directory provided

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Update graphite2 to reference src dir in cmake https://github.com/Homebrew/homebrew-core/pull/36376

Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.


In the install file of gnuplot when I downloaded it from sourceForge I can read :



Readline issues:

As I understand the situation, Apple ships OSX with a "fake" libreadline shared
library. The file /usr/lib/libreadline.dylib is really a symlink to a compatibility
layer over the BSD libedit library. But the compatibility isn't complete, and in
particular it is missing some routines used for readline support by gnuplot. The
./configure script should be able to cope with this. But you will still be left
without some of the functionality of the "real" libreadline. For one thing,
libedit doesn't handle UTF-8 input.

You have several options:

1) Delete the fake libreadline libraries from OSX and install the real gnu
libreadline as a system library.

2) Install the real gnu libreadline into your personal account and tell gnuplot
to use it: ./configure --with-readline=/my/private/readline/installdir
This may require some playing around with additional -L and -I definitions in
CFLAGS, and is probably harder than replacing the system copy of the library.

3) Use gnuplot's built-in readline routines. These now support UTF-8 input and
tab-completion of file names. ./configure --with-readline=builtin


Do you know How I could do something like the second option with brew ?



Thanks a lot



Edit :



I already try : brew switch readline 8.0.0 and brew install gnuplot --with-readline=/usr/local/Cellar/readline/8.0.0/lib but it doesn't work...










share|improve this question

























  • Nobody knows ? I'm really bothered by this problem...

    – kipgon
    Feb 10 at 10:24
















1















I was updating some programs on my mac and I suddenly encountered some troubles running gnuplot. The error was something like :



dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: .../something/...
Reason: image not found
Trace/BPT trap: 5


That's not my own error (I copy paste this one, which is very close, from the internet) because since then I uninstall gnuplot and I can't install it anymore.



When I run brew install gnuplot, I get :



Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.

==> Installing dependencies for gnuplot: graphite2, harfbuzz, pango and qt
==> Installing gnuplot dependency: graphite2
==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.13/gra
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/e37be24d841649b167ec4be5e60ac444d5ec859aa32d694e93df5ff36c05b2bf--graphite2-1.3.13.tgz
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D
Last 15 lines from /Users/me/Library/Logs/Homebrew/graphite2/01.cmake:
2019-01-29 12:04:38 +0100

cmake
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.13
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DHAVE_CLOCK_GETTIME:INTERNAL=0

CMake Error: No source or binary directory provided

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Update graphite2 to reference src dir in cmake https://github.com/Homebrew/homebrew-core/pull/36376

Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.


In the install file of gnuplot when I downloaded it from sourceForge I can read :



Readline issues:

As I understand the situation, Apple ships OSX with a "fake" libreadline shared
library. The file /usr/lib/libreadline.dylib is really a symlink to a compatibility
layer over the BSD libedit library. But the compatibility isn't complete, and in
particular it is missing some routines used for readline support by gnuplot. The
./configure script should be able to cope with this. But you will still be left
without some of the functionality of the "real" libreadline. For one thing,
libedit doesn't handle UTF-8 input.

You have several options:

1) Delete the fake libreadline libraries from OSX and install the real gnu
libreadline as a system library.

2) Install the real gnu libreadline into your personal account and tell gnuplot
to use it: ./configure --with-readline=/my/private/readline/installdir
This may require some playing around with additional -L and -I definitions in
CFLAGS, and is probably harder than replacing the system copy of the library.

3) Use gnuplot's built-in readline routines. These now support UTF-8 input and
tab-completion of file names. ./configure --with-readline=builtin


Do you know How I could do something like the second option with brew ?



Thanks a lot



Edit :



I already try : brew switch readline 8.0.0 and brew install gnuplot --with-readline=/usr/local/Cellar/readline/8.0.0/lib but it doesn't work...










share|improve this question

























  • Nobody knows ? I'm really bothered by this problem...

    – kipgon
    Feb 10 at 10:24














1












1








1








I was updating some programs on my mac and I suddenly encountered some troubles running gnuplot. The error was something like :



dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: .../something/...
Reason: image not found
Trace/BPT trap: 5


That's not my own error (I copy paste this one, which is very close, from the internet) because since then I uninstall gnuplot and I can't install it anymore.



When I run brew install gnuplot, I get :



Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.

==> Installing dependencies for gnuplot: graphite2, harfbuzz, pango and qt
==> Installing gnuplot dependency: graphite2
==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.13/gra
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/e37be24d841649b167ec4be5e60ac444d5ec859aa32d694e93df5ff36c05b2bf--graphite2-1.3.13.tgz
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D
Last 15 lines from /Users/me/Library/Logs/Homebrew/graphite2/01.cmake:
2019-01-29 12:04:38 +0100

cmake
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.13
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DHAVE_CLOCK_GETTIME:INTERNAL=0

CMake Error: No source or binary directory provided

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Update graphite2 to reference src dir in cmake https://github.com/Homebrew/homebrew-core/pull/36376

Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.


In the install file of gnuplot when I downloaded it from sourceForge I can read :



Readline issues:

As I understand the situation, Apple ships OSX with a "fake" libreadline shared
library. The file /usr/lib/libreadline.dylib is really a symlink to a compatibility
layer over the BSD libedit library. But the compatibility isn't complete, and in
particular it is missing some routines used for readline support by gnuplot. The
./configure script should be able to cope with this. But you will still be left
without some of the functionality of the "real" libreadline. For one thing,
libedit doesn't handle UTF-8 input.

You have several options:

1) Delete the fake libreadline libraries from OSX and install the real gnu
libreadline as a system library.

2) Install the real gnu libreadline into your personal account and tell gnuplot
to use it: ./configure --with-readline=/my/private/readline/installdir
This may require some playing around with additional -L and -I definitions in
CFLAGS, and is probably harder than replacing the system copy of the library.

3) Use gnuplot's built-in readline routines. These now support UTF-8 input and
tab-completion of file names. ./configure --with-readline=builtin


Do you know How I could do something like the second option with brew ?



Thanks a lot



Edit :



I already try : brew switch readline 8.0.0 and brew install gnuplot --with-readline=/usr/local/Cellar/readline/8.0.0/lib but it doesn't work...










share|improve this question
















I was updating some programs on my mac and I suddenly encountered some troubles running gnuplot. The error was something like :



dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: .../something/...
Reason: image not found
Trace/BPT trap: 5


That's not my own error (I copy paste this one, which is very close, from the internet) because since then I uninstall gnuplot and I can't install it anymore.



When I run brew install gnuplot, I get :



Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.

==> Installing dependencies for gnuplot: graphite2, harfbuzz, pango and qt
==> Installing gnuplot dependency: graphite2
==> Downloading https://github.com/silnrsi/graphite/releases/download/1.3.13/gra
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/e37be24d841649b167ec4be5e60ac444d5ec859aa32d694e93df5ff36c05b2bf--graphite2-1.3.13.tgz
==> cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D
Last 15 lines from /Users/me/Library/Logs/Homebrew/graphite2/01.cmake:
2019-01-29 12:04:38 +0100

cmake
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/graphite2/1.3.13
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DHAVE_CLOCK_GETTIME:INTERNAL=0

CMake Error: No source or binary directory provided

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Update graphite2 to reference src dir in cmake https://github.com/Homebrew/homebrew-core/pull/36376

Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you experience, as you are running this old version.


In the install file of gnuplot when I downloaded it from sourceForge I can read :



Readline issues:

As I understand the situation, Apple ships OSX with a "fake" libreadline shared
library. The file /usr/lib/libreadline.dylib is really a symlink to a compatibility
layer over the BSD libedit library. But the compatibility isn't complete, and in
particular it is missing some routines used for readline support by gnuplot. The
./configure script should be able to cope with this. But you will still be left
without some of the functionality of the "real" libreadline. For one thing,
libedit doesn't handle UTF-8 input.

You have several options:

1) Delete the fake libreadline libraries from OSX and install the real gnu
libreadline as a system library.

2) Install the real gnu libreadline into your personal account and tell gnuplot
to use it: ./configure --with-readline=/my/private/readline/installdir
This may require some playing around with additional -L and -I definitions in
CFLAGS, and is probably harder than replacing the system copy of the library.

3) Use gnuplot's built-in readline routines. These now support UTF-8 input and
tab-completion of file names. ./configure --with-readline=builtin


Do you know How I could do something like the second option with brew ?



Thanks a lot



Edit :



I already try : brew switch readline 8.0.0 and brew install gnuplot --with-readline=/usr/local/Cellar/readline/8.0.0/lib but it doesn't work...







mac homebrew gnuplot readline






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 29 at 15:09







kipgon

















asked Jan 29 at 12:06









kipgonkipgon

63




63













  • Nobody knows ? I'm really bothered by this problem...

    – kipgon
    Feb 10 at 10:24



















  • Nobody knows ? I'm really bothered by this problem...

    – kipgon
    Feb 10 at 10:24

















Nobody knows ? I'm really bothered by this problem...

– kipgon
Feb 10 at 10:24





Nobody knows ? I'm really bothered by this problem...

– kipgon
Feb 10 at 10:24










2 Answers
2






active

oldest

votes


















1














In case it's helpful: I was encountering similar error messages and found that gnuplot depends on gawk, and the version of gawk automatically installed required an outdated version of readline. My gnuplot binary referenced the right version. You can verify using otool:



Gawk references libreadline.7.dylib



$ otool -L /usr/local/bin/awk | grep -i read
/usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)


If you're hitting the same issue, I believe you should be able to upgrade gawk.



$ brew upgrade gawk
==> Upgrading 1 outdated package:
gawk 4.2.0_1 -> 4.2.1_1
==> Upgrading gawk
==> Downloading https://homebrew.bintray.com/bottles/gawk-4.2.1_1.mojave.bottle.
######################################################################## 100.0%
==> Pouring gawk-4.2.1_1.mojave.bottle.1.tar.gz
🍺 /usr/local/Cellar/gawk/4.2.1_1: 87 files, 4.7MB
Removing: /usr/local/Cellar/gawk/4.2.0_1... (69 files, 3MB)

$ otool -L /usr/local/bin/awk | grep -i read
/usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)


Here's the version of gnuplot I have installed.



brew info gnuplot
gnuplot: stable 5.2.6 (bottled), HEAD
Command-driven, interactive function plotting
http://www.gnuplot.info/
/usr/local/Cellar/gnuplot/5.2.6_1 (48 files, 2.9MB) *


In case you have any other binaries in /usr/local that depend on the old readline, you can quickly find them using:



for i in /usr/local/bin/* ; do if otool -L $i | grep -i libreadline.7; then echo "t^ used by $in"; fi; done


You might then have luck upgrading those.






share|improve this answer































    1














    I have had exactly the same problem in my macOS computer trying to run gnuplot.
    In order to solve it, I tried several suggestions I found in the internet, and none of them works for me. For example updating/upgrading brew, removing, installing and reinstalling readline, upgrading bash, and many other things.



    So, I recently solved the situation. In the next lines I tried to describe the process I have done.




    1. cd to the location where the libreadline.7.dylib must be, in this case /usr/local/opt/readline/lib/


    2. When I listed, I only found libreadline.8.0.dylib and the soft link libreadline.8.dylib.



    3. I made a new soft link pointing to the libreadline.8.0.dylib library in order to create the soft link that gnuplot looks for, in this case the 7 numbered library libreadline.7.dylib:



      $ sudo ln -s libreadline.8.0.dylib libreadline.7.dylib



    That's all. Maybe you'll need to reboot the terminal or command line application.






    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399622%2ftrouble-with-readline-library-on-mac%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      In case it's helpful: I was encountering similar error messages and found that gnuplot depends on gawk, and the version of gawk automatically installed required an outdated version of readline. My gnuplot binary referenced the right version. You can verify using otool:



      Gawk references libreadline.7.dylib



      $ otool -L /usr/local/bin/awk | grep -i read
      /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)


      If you're hitting the same issue, I believe you should be able to upgrade gawk.



      $ brew upgrade gawk
      ==> Upgrading 1 outdated package:
      gawk 4.2.0_1 -> 4.2.1_1
      ==> Upgrading gawk
      ==> Downloading https://homebrew.bintray.com/bottles/gawk-4.2.1_1.mojave.bottle.
      ######################################################################## 100.0%
      ==> Pouring gawk-4.2.1_1.mojave.bottle.1.tar.gz
      🍺 /usr/local/Cellar/gawk/4.2.1_1: 87 files, 4.7MB
      Removing: /usr/local/Cellar/gawk/4.2.0_1... (69 files, 3MB)

      $ otool -L /usr/local/bin/awk | grep -i read
      /usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)


      Here's the version of gnuplot I have installed.



      brew info gnuplot
      gnuplot: stable 5.2.6 (bottled), HEAD
      Command-driven, interactive function plotting
      http://www.gnuplot.info/
      /usr/local/Cellar/gnuplot/5.2.6_1 (48 files, 2.9MB) *


      In case you have any other binaries in /usr/local that depend on the old readline, you can quickly find them using:



      for i in /usr/local/bin/* ; do if otool -L $i | grep -i libreadline.7; then echo "t^ used by $in"; fi; done


      You might then have luck upgrading those.






      share|improve this answer




























        1














        In case it's helpful: I was encountering similar error messages and found that gnuplot depends on gawk, and the version of gawk automatically installed required an outdated version of readline. My gnuplot binary referenced the right version. You can verify using otool:



        Gawk references libreadline.7.dylib



        $ otool -L /usr/local/bin/awk | grep -i read
        /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)


        If you're hitting the same issue, I believe you should be able to upgrade gawk.



        $ brew upgrade gawk
        ==> Upgrading 1 outdated package:
        gawk 4.2.0_1 -> 4.2.1_1
        ==> Upgrading gawk
        ==> Downloading https://homebrew.bintray.com/bottles/gawk-4.2.1_1.mojave.bottle.
        ######################################################################## 100.0%
        ==> Pouring gawk-4.2.1_1.mojave.bottle.1.tar.gz
        🍺 /usr/local/Cellar/gawk/4.2.1_1: 87 files, 4.7MB
        Removing: /usr/local/Cellar/gawk/4.2.0_1... (69 files, 3MB)

        $ otool -L /usr/local/bin/awk | grep -i read
        /usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)


        Here's the version of gnuplot I have installed.



        brew info gnuplot
        gnuplot: stable 5.2.6 (bottled), HEAD
        Command-driven, interactive function plotting
        http://www.gnuplot.info/
        /usr/local/Cellar/gnuplot/5.2.6_1 (48 files, 2.9MB) *


        In case you have any other binaries in /usr/local that depend on the old readline, you can quickly find them using:



        for i in /usr/local/bin/* ; do if otool -L $i | grep -i libreadline.7; then echo "t^ used by $in"; fi; done


        You might then have luck upgrading those.






        share|improve this answer


























          1












          1








          1







          In case it's helpful: I was encountering similar error messages and found that gnuplot depends on gawk, and the version of gawk automatically installed required an outdated version of readline. My gnuplot binary referenced the right version. You can verify using otool:



          Gawk references libreadline.7.dylib



          $ otool -L /usr/local/bin/awk | grep -i read
          /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)


          If you're hitting the same issue, I believe you should be able to upgrade gawk.



          $ brew upgrade gawk
          ==> Upgrading 1 outdated package:
          gawk 4.2.0_1 -> 4.2.1_1
          ==> Upgrading gawk
          ==> Downloading https://homebrew.bintray.com/bottles/gawk-4.2.1_1.mojave.bottle.
          ######################################################################## 100.0%
          ==> Pouring gawk-4.2.1_1.mojave.bottle.1.tar.gz
          🍺 /usr/local/Cellar/gawk/4.2.1_1: 87 files, 4.7MB
          Removing: /usr/local/Cellar/gawk/4.2.0_1... (69 files, 3MB)

          $ otool -L /usr/local/bin/awk | grep -i read
          /usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)


          Here's the version of gnuplot I have installed.



          brew info gnuplot
          gnuplot: stable 5.2.6 (bottled), HEAD
          Command-driven, interactive function plotting
          http://www.gnuplot.info/
          /usr/local/Cellar/gnuplot/5.2.6_1 (48 files, 2.9MB) *


          In case you have any other binaries in /usr/local that depend on the old readline, you can quickly find them using:



          for i in /usr/local/bin/* ; do if otool -L $i | grep -i libreadline.7; then echo "t^ used by $in"; fi; done


          You might then have luck upgrading those.






          share|improve this answer













          In case it's helpful: I was encountering similar error messages and found that gnuplot depends on gawk, and the version of gawk automatically installed required an outdated version of readline. My gnuplot binary referenced the right version. You can verify using otool:



          Gawk references libreadline.7.dylib



          $ otool -L /usr/local/bin/awk | grep -i read
          /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)


          If you're hitting the same issue, I believe you should be able to upgrade gawk.



          $ brew upgrade gawk
          ==> Upgrading 1 outdated package:
          gawk 4.2.0_1 -> 4.2.1_1
          ==> Upgrading gawk
          ==> Downloading https://homebrew.bintray.com/bottles/gawk-4.2.1_1.mojave.bottle.
          ######################################################################## 100.0%
          ==> Pouring gawk-4.2.1_1.mojave.bottle.1.tar.gz
          🍺 /usr/local/Cellar/gawk/4.2.1_1: 87 files, 4.7MB
          Removing: /usr/local/Cellar/gawk/4.2.0_1... (69 files, 3MB)

          $ otool -L /usr/local/bin/awk | grep -i read
          /usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)


          Here's the version of gnuplot I have installed.



          brew info gnuplot
          gnuplot: stable 5.2.6 (bottled), HEAD
          Command-driven, interactive function plotting
          http://www.gnuplot.info/
          /usr/local/Cellar/gnuplot/5.2.6_1 (48 files, 2.9MB) *


          In case you have any other binaries in /usr/local that depend on the old readline, you can quickly find them using:



          for i in /usr/local/bin/* ; do if otool -L $i | grep -i libreadline.7; then echo "t^ used by $in"; fi; done


          You might then have luck upgrading those.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 2 at 0:09









          AaronAaron

          111




          111

























              1














              I have had exactly the same problem in my macOS computer trying to run gnuplot.
              In order to solve it, I tried several suggestions I found in the internet, and none of them works for me. For example updating/upgrading brew, removing, installing and reinstalling readline, upgrading bash, and many other things.



              So, I recently solved the situation. In the next lines I tried to describe the process I have done.




              1. cd to the location where the libreadline.7.dylib must be, in this case /usr/local/opt/readline/lib/


              2. When I listed, I only found libreadline.8.0.dylib and the soft link libreadline.8.dylib.



              3. I made a new soft link pointing to the libreadline.8.0.dylib library in order to create the soft link that gnuplot looks for, in this case the 7 numbered library libreadline.7.dylib:



                $ sudo ln -s libreadline.8.0.dylib libreadline.7.dylib



              That's all. Maybe you'll need to reboot the terminal or command line application.






              share|improve this answer






























                1














                I have had exactly the same problem in my macOS computer trying to run gnuplot.
                In order to solve it, I tried several suggestions I found in the internet, and none of them works for me. For example updating/upgrading brew, removing, installing and reinstalling readline, upgrading bash, and many other things.



                So, I recently solved the situation. In the next lines I tried to describe the process I have done.




                1. cd to the location where the libreadline.7.dylib must be, in this case /usr/local/opt/readline/lib/


                2. When I listed, I only found libreadline.8.0.dylib and the soft link libreadline.8.dylib.



                3. I made a new soft link pointing to the libreadline.8.0.dylib library in order to create the soft link that gnuplot looks for, in this case the 7 numbered library libreadline.7.dylib:



                  $ sudo ln -s libreadline.8.0.dylib libreadline.7.dylib



                That's all. Maybe you'll need to reboot the terminal or command line application.






                share|improve this answer




























                  1












                  1








                  1







                  I have had exactly the same problem in my macOS computer trying to run gnuplot.
                  In order to solve it, I tried several suggestions I found in the internet, and none of them works for me. For example updating/upgrading brew, removing, installing and reinstalling readline, upgrading bash, and many other things.



                  So, I recently solved the situation. In the next lines I tried to describe the process I have done.




                  1. cd to the location where the libreadline.7.dylib must be, in this case /usr/local/opt/readline/lib/


                  2. When I listed, I only found libreadline.8.0.dylib and the soft link libreadline.8.dylib.



                  3. I made a new soft link pointing to the libreadline.8.0.dylib library in order to create the soft link that gnuplot looks for, in this case the 7 numbered library libreadline.7.dylib:



                    $ sudo ln -s libreadline.8.0.dylib libreadline.7.dylib



                  That's all. Maybe you'll need to reboot the terminal or command line application.






                  share|improve this answer















                  I have had exactly the same problem in my macOS computer trying to run gnuplot.
                  In order to solve it, I tried several suggestions I found in the internet, and none of them works for me. For example updating/upgrading brew, removing, installing and reinstalling readline, upgrading bash, and many other things.



                  So, I recently solved the situation. In the next lines I tried to describe the process I have done.




                  1. cd to the location where the libreadline.7.dylib must be, in this case /usr/local/opt/readline/lib/


                  2. When I listed, I only found libreadline.8.0.dylib and the soft link libreadline.8.dylib.



                  3. I made a new soft link pointing to the libreadline.8.0.dylib library in order to create the soft link that gnuplot looks for, in this case the 7 numbered library libreadline.7.dylib:



                    $ sudo ln -s libreadline.8.0.dylib libreadline.7.dylib



                  That's all. Maybe you'll need to reboot the terminal or command line application.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 4 at 19:24









                  Worthwelle

                  2,87831325




                  2,87831325










                  answered Mar 4 at 19:00









                  Víctor DuarteVíctor Duarte

                  112




                  112






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399622%2ftrouble-with-readline-library-on-mac%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                      How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...