Octave Fontconfig error

前端 未结 2 1187
无人共我
无人共我 2021-02-02 11:39

I installed Octave via Homebrew using the instructions given here.

When I try to generate a plot, I get the following message:

Fontconfig error: Cannot          


        
相关标签:
2条回答
  • 2021-02-02 12:06

    try

    brew uninstall fontconfig
    
    brew install fontconfig --universal
    

    if you don't have or don't want to use xquartz, you can use qt

    brew uninstall gnuplot
    
    brew install gnuplot --with-qt
    
    0 讨论(0)
  • 2021-02-02 12:25

    Actually, it's not an issue of Octave, but of its complicated setup and misconfiguration of other utilities (especially fontconfig).

    For proper work you need to set manually path for fontconfig, so it wouldn't look for fonts in inappropriate directory (/etc/fonts works for Linux installations, but OS X XQuartz goes to different place).

    You should run command export FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig to setup fontconfig proper way. Also you can add line export FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig to your ~/.bash_profile and restart your terminal, so you don't need to run this command anymore.

    0 讨论(0)
提交回复
热议问题