Menu

#264 dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib

open
nobody
None
5
2021-03-05
2021-03-05
Federico
No

After having re-installed XQuartz on my Mac OS X 10.13.6, I try to launch gnuplot from a terminal window; it does not open and instead I receive

% gnuplot
dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib
Referenced from: /sw/bin/gnuplotx
Reason: no suitable image found. Did find:
/usr/X11/lib/libXpm.4.dylib: no matching architecture in universal wrapper
/usr/X11/lib/libXpm.4.dylib: stat() failed with errno=1
/opt/X11/lib/libXpm.4.dylib: no matching architecture in universal wrapper
/sw/bin/gnuplot: line 6: 50805 Abort trap: 6 /sw/bin/gnuplotx "$@"

Then I've downloaded gnuplot-5.4.1.tar.gz from the official website, latest available version. I have installed it in the /Applications folder under my homedir:

$ ./configure --prefix=$HOME/local/gnuplot-5.4.1 --with-texdir=$HOME/local/gnuplot-5.4.1
$ mkdir $HOME/local
$ make install

The installation is seemingly succesfull (no errors) but no gnuplot.dmg is created and if type "gnuplot" I have exactly the same error line on "dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib" as above.

The newly created folder "/Applications/gnuplot-5.4.1/src" contains a gnuplot file ("exe") and, if I click on it, I can launch it: the gnuplot window opens and works. However, I would like to call gnuplot from a "Terminal" window. Is there a way to do that?

Discussion


Log in to post a comment.