Tôi đã cài đặt Octave qua Homebrew bằng cách sử dụng các hướng dẫn được đưa ra here.Lỗi Fontave Octave
Khi tôi cố gắng tạo ra một âm mưu, tôi nhận được thông báo sau:
Fontconfig error: Cannot load default config file
warning: could not match any font: *-normal-normal-10
warning: called from
axes at line 66 column 10
gca at line 58 column 9
newplot at line 148 column 8
surf at line 70 column 9
sombrero at line 65 column 5
sau đó tôi nhận được một chuỗi dài các thông báo sau:
warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10
Thông thường các âm mưu xuất hiện một lần, nhưng nếu tôi gọi lại lần nữa thì Octave sẽ thoát khỏi thông báo sau.
panic: Segmentation fault: 11 -- stopping myself...
attempting to save variables to 'octave-workspace'...
warning: unable to open 'octave-workspace' for writing...
warning: called from
__gnuplot_drawnow__>gnuplot_trim_term at line 368 column 10
__gnuplot_drawnow__>gnuplot_set_term at line 119 column 20
__gnuplot_drawnow__ at line 84 column 16
Segmentation fault: 11
Trong các cuộc thảo luận về các lỗi tương tự tôi thường thấy tham chiếu đến /etc/fonts/fonts.conf. Thư mục My/etc không chứa thư mục con phông chữ. Đây có thể là nguồn gốc của vấn đề, nhưng tôi không biết cách sửa nó. Khi tôi chạy, brew install fontconfig
, tôi nhận được Warning: fontconfig-2.11.1_1 already installed
. Khi tôi chạy sudo find/-name fonts.conf
, tôi nhận được /opt/X11/lib/X11/fontconfig/fonts.conf
.
brew doctor
tạo ra cảnh báo sau đây, có thể có liên quan và mà tôi không biết làm thế nào để sửa chữa (viết tắt của gỡ bỏ cài đặt Anaconda):
Warning: Anaconda is known to frequently break Homebrew builds, including Vim
and MacVim, due to bundling many duplicates of system and Homebrew-available
tools.
If you encounter a build failure please temporarily remove Anaconda
from your $PATH and attempt the build again prior to reporting the
failure to us. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/greg/anaconda/bin/curl-config
/Users/greg/anaconda/bin/freetype-config
/Users/greg/anaconda/bin/libdynd-config
/Users/greg/anaconda/bin/libpng-config
/Users/greg/anaconda/bin/libpng16-config
/Users/greg/anaconda/bin/python-config
/Users/greg/anaconda/bin/python2-config
/Users/greg/anaconda/bin/python2.7-config
/Users/greg/anaconda/bin/xml2-config
/Users/greg/anaconda/bin/xslt-config
Tôi đang chạy OS X 10.11.3 (El Capitan).
Có một cách hiệu quả để tìm hiểu những loại kỹ thuật? Có lẽ một cuốn sách tôi có thể đọc để hiểu những thứ như hồ sơ bash và hệ thống tập tin kiểu Unix hoạt động như thế nào? – gsganden
Thật không may, tôi không thể đề xuất một cái gì đó cụ thể, nó đến từ kinh nghiệm và cố gắng và lỗi. Tôi đã dành khoảng một giờ để khắc phục vấn đề này bằng cách googling các thông báo lỗi và so sánh các vấn đề được sao chép bởi những người khác với cấu hình của tôi – OleGG
Điều này đã giúp tôi rất nhiều - cảm ơn. Lưu ý: bạn cần phải cài đặt http://www.xquartz.org/ để làm việc này. – jameswilsterman