OSX 10.7.5:致命错误:找不到"ft2build.h"文件 [英] OSX 10.7.5: fatal error: 'ft2build.h' file not found

查看:157
本文介绍了OSX 10.7.5:致命错误:找不到"ft2build.h"文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装一个名为"ROOT"的程序( http://root.cern.ch/drupal/content/installing-root-source ),但出现以下错误:

I am trying to install a program called "ROOT" (http://root.cern.ch/drupal/content/installing-root-source) using the "make" command, but I get the following error:

clang++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -pthread -I/Users/builder/pisi-64bit/tmp/freetype-2.4.4-1/install/include/freetype2 -I/Users/builder/pisi-64bit/tmp/freetype-2.4.4-1/install/include -o graf2d/graf/src/TMathText.o -c /Users/alex/root/graf2d/graf/src/TMathText.cxx
    /Users/alex/root/graf2d/graf/src/TMathText.cxx:15:12: fatal error:
    'ft2build.h' file not found

但是,我检查了一下,并且我的系统已经有了ft2build.h:

however, I checked and my system has the ft2build.h already:

    locate ft2build.h
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/ft2build.h
    /opt/X11/include/ft2build.h
    /opt/local/include/ft2build.h
    /usr/X11/include/ft2build.h

如何才能使安装程序找到ft2build.h文件?

How can I do so that the installation can find the ft2build.h file?

推荐答案

brew install freetype --with-freetype-dir=/usr/local/Cellar/freetype

这篇关于OSX 10.7.5:致命错误:找不到"ft2build.h"文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆