homebrew font
1.0.0
$ brew tap sanemat/font
$ brew install ricty
# (generate)
$ cp -f /PATH/TO/RICTY/fonts/Ricty*.ttf ~/Library/Fonts/
$ fc-cache -vf
brew install fontforge期間,我遇到了python錯誤如果您在brew install fontforge期間遇到錯誤,則如下:
==> Patching
==> ./bootstrap
==> ./configure --prefix=/Users/sane/.homebrew/Cellar/fontforge/20141230 --disable-silent-rules --without-x --without-giflib --without-libspiro
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
執行以下執行:
# Install python before installing fontforge and ricty
brew install python
# Then install fontforge and ricty
brew install ricty
我當然會使用自製的,但我不使用自製的python。我通過Anyenv使用Pyenv。在Homebrew Build腳本中,不使用您的PKG_CONFIG_PATH ;有Homebrew的PKG_CONFIG_PATH 。您可以嘗試此brew sh和printenv | grep PKG_CONFIG_PATH 。
Fontforge配置腳本沒有檢測到Pyenv的Python(我想,但我還不喜歡Autoconf,對不起)。我不明白為什麼這不會檢測到系統python(在執行pyenv global system之後)。
以下是brew install fontforge --verbose --debug :
detected a homebrew build environment
./configure: line 18044: /Users/sane/.homebrew/bin/python: No such file or directory
./configure: line 18045: cd: /../../pkgconfig: No such file or directory
found python pkg_config information:
./configure: line 18048: y: command not found
checking for a Python interpreter with version >= 2.7... python
checking for python... /Users/sane/.anyenv/envs/pyenv/versions/2.7.6/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for PYTHON... no
configure: error: Package requirements (python-"2.7") were not met:
No package 'python-2.7' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
實際解決方案是在此處檢測系統,但我不知道該如何檢測到這一點。