Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incompatible library version: libfontconfig.1.dylib 13 (instead of 15)

Working with Octave in a Mac with Mountan Lion/Mavericks, when I try to run hist() or some other commands, the error message says:

Incompatible library version: libfontconfig.1.dylib requires version 15.0.0 
or later, but libfreetype.6.dylib provides version 13.0.0

Where do I get the right library?

like image 459
arturomp Avatar asked Nov 12 '13 14:11

arturomp


2 Answers

Do the following

cd /Applications/Gnuplot.app/Contents/Resources/lib    # move into directory
mv libfreetype.6.dylib libfreetype.6.dylib.bak         # make a backup of current library
ln -s /usr/X11/lib/libfreetype.6.dylib .               # create a symbolic link to proper library

from: http://azaleasays.com/2012/10/20/octave-graphic-error-on-mac-os-x-mountain-lion/

like image 160
arturomp Avatar answered May 15 '23 10:05

arturomp


I don't have gnuplot.app but I removed libfreetype.6.dylib in folder /usr/local/lib and replaced it with the symbolic linked and it worked for me. Here's the code: (I have OS X Yosemite)

cd /usr/local/lib
rm libfreetype.6.dylib
ln -s /usr/X11/lib/libfreetype.6.dylib .
like image 33
Angelo Sajeva Avatar answered May 15 '23 12:05

Angelo Sajeva