Ubuntu14.04编译openjdk ERROR:需要FreeType 2.3.0或更高版本

Ubuntu14.04编译openjdk ERROR:需要FreeType 2.3.0或更高版本

我正在使用 Ubuntu14.04 编译 openjdk,当我运行“使理智“遇到了两个ERROR。这个问题已经困扰好几天了,请问该如何解决呢?”

ERROR: FreeType version  2.3.0  or higher is required. 
 make[2]: Entering directory `/home/lzw/test/openjdk/jdk/make/tools/freetypecheck'
/bin/mkdir -p /home/lzw/test/btbins
rm -f /home/lzw/test/btbins/freetype_versioncheck
make[2]: Leaving directory `/home/lzw/test/openjdk/jdk/make/tools/freetypecheck'
Failed to build freetypecheck.  

ERROR: You do not have access to valid Cups header files. 
       Please check your access to 
           /usr/include/cups/cups.h 
       and/or check your value of ALT_CUPS_HEADERS_PATH, 
       CUPS is frequently pre-installed on many systems, 
       or may be downloaded from http://www.cups.org 

Exiting because of the above error(s). 

答案1

尽管我使用的是 Fedora,但只需安装cups-devel即可解决问题。尝试在 Ubuntu 上安装等效版本。

sudo apt-get install libcups2-dev

相关内容