安装错误:ftheader.h:没有这样的文件或目录 [英] Install error: ftheader.h: No such file or directory

查看:259
本文介绍了安装错误:ftheader.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试构建matplotlib-1.3.1时,出现以下freetype标头错误.可能是找不到ftheader.h.关于如何解决此问题的任何想法吗?

When I am trying to build matplotlib-1.3.1, I am getting the below freetype header errors. Probably it is not finding the ftheader.h. Any idea on how to solve this problem?

注意:我按照以下说明安装了Freetype-2.5.0.1. FreeType安装是因为从源代码手动构建Matplotlib-1.3.1是由于最初找不到的必需软件包"freetype"而失败.

NOTE: I just installed Freetype-2.5.0.1 following the instructions as mentioned in FreeType Install because manually building Matplotlib-1.3.1 from source was failing due to the required package 'freetype' which was not found initially.

In file included from src/ft2font.h:16,
             from src/ft2font.cpp:3:
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from src/ft2font.cpp:3:
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME>
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:69,
             from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,
             from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:42,
             from ./CXX/Python2/Exception.hxx:46,
             from ./CXX/Exception.hxx:40,
             from ./CXX/Python2/Objects.hxx:44,
             from ./CXX/Python2/Extensions.hxx:52,
             from ./CXX/Extensions.hxx:40,
             from src/ft2font.h:6,
             from src/ft2font.cpp:3:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:91: error: expected template-name before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:91: error: expected ‘{’ before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:91: error: expected unqualified-id before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:390: error: expected template-name before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:390: error: expected ‘{’ before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:390: error: expected unqualified-id before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:474: error: expected template-name before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:474: error: expected ‘{’ before ‘<’ token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_iterator.h:474: error: expected unqualified-id before ‘<’ token

我尝试在没有安装numpy/scipy/matplotlib的新vm上运行sudo yum install *-devel;但是会收到以下错误消息,该错误消息也是我在以前的VM映像上收到的.这是我正在使用的VM所特有的问题吗?注意:我在Oracle VirtualBox VM上使用Hortonworks Sandbox v1.3

I tried running sudo yum install *-devel on a fresh vm which has neither numpy/scipy/matplotlib installed; but get the below error message which I received also on my previous VM image. Is it a problem specific to the VM I am using? Note: I am using Hortonworks Sandbox v1.3 over Oracle VirtualBox VM

Error: metis conflicts with cmake-2.6.4-5.el6.x86_64
Error: php-pecl-apcu conflicts with php-pecl-apc-3.1.9-2.el6.x86_64
Error: cpupowerutils-devel conflicts with cpufrequtils-devel-007-6.el6.x86_64
Error: Package: libgendersplusplus-1.20-1.el6.x86_64 (HDP-epel)
       Requires: libgenders(x86-64) = 1.20-1.el6
       Installing: libgenders-1.14-2.el6.rf.x86_64 (HDP-UTILS-1.1.0.15)
           libgenders(x86-64) = 1.14-2.el6.rf
Error: zeromq3-devel conflicts with zeromq-devel-2.2.0-4.el6.x86_64
Error: Package: rubygem-passenger-devel-3.0.21-5.el6.x86_64 (HDP-epel)
       Requires: rubygem(passenger) = 3.0.21-5.el6
       Available: 1:rubygem-passenger-3.0.12-1.el6.x86_64 (HDP-UTILS-1.1.0.15)
           rubygem(passenger) = 3.0.12
Error: Package: libgenders-devel-1.20-1.el6.x86_64 (HDP-epel)
       Requires: libgenders(x86-64) = 1.20-1.el6
       Installing: libgenders-1.14-2.el6.rf.x86_64 (HDP-UTILS-1.1.0.15)
           libgenders(x86-64) = 1.14-2.el6.rf
Error: php-pecl-apcu-devel conflicts with php-pecl-apc-devel-3.1.9-2.el6.x86_64
Error: Package: libgenders-devel-1.20-1.el6.x86_64 (HDP-epel)
       Requires: libgenders(x86-64) = 1.20-1.el6
       Available: libgenders-1.14-2.el6.rf.x86_64 (HDP-UTILS-1.1.0.15)
           libgenders(x86-64) = 1.14-2.el6.rf
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

查看/usr/share/doc下的源代码树,可以估算出预先安装在沙箱中的软件包及其版本.注意:您可以在列表中清楚地看到freetype-2.3.11以及许多其他的lib软件包,这些软件包在安装* -dev时可能会冲突

Viewing the source tree under /usr/share/doc gives an estimate of the packages and their versions that come pre-installed in the sandbox. Note: You can clearly see freetype-2.3.11 in the list and lots of other lib packages which may be conflicting when *-dev is installed

acl-2.2.49                           foomatic-db-4.0                  libedit-2.11               mpfr-2.4.1                   python-setuptools-0.6.10
acpid-1.0.10                         fping-2.4b2                      libffi-3.0.5               mx4j-3.0.1                   python-urlgrabber-3.9.1
alsa-lib-1.0.22                      freetype-2.3.11                  libfontenc-1.0.5           mysql-5.1.69                 qt3-3.3.8b
apache-tomcat-apis-0.1               fuse-2.8.3                       libgcc-4.4.7               mysql-connector-java-5.1.17  qt4
apr-1.3.9                            gamin-0.1.10                     libgcrypt-1.4.5            mysql-libs-5.1.69            qt-4.6.2
apr-util-1.3.9                       gawk-3.1.7                       libgomp-4.4.7              mysql-server-5.1.69          readline-6.0
at-3.1.10                            gcc-4.4.7                        libgpg-error-1.7           nagios-3.2.3                 redhat-logos-60.0.14
atk-1.28.0                           gd-2.0.35                        libgudev1-147              nagios-plugins-1.4.9         redhat-release
attr-2.4.44

推荐答案

对于Mac OS 10.6.8

For Mac OS 10.6.8

sudo ln -s /usr/X11/include/freetype2/freetype /usr/X11/include/.

似乎可以解决问题...如果查看/usr/X11/include/ft2build.h,似乎该头文件确实存在问题,并且安装了自由类型,而不是matplotlib问题.

Seems to do the trick... If you look at the /usr/X11/include/ft2build.h it seems as though it is really a problem with that header file and the way free type is installed, not a matplotlib problem.

这篇关于安装错误:ftheader.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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