魔法师
deepin
2019-05-18 03:00 libfreetype-xxxxxx????
Reply Like 0 View the author
https://bbs.deepin.org/post/178140
加上gcc的环境变量试试?比如
C_INCLUDE_PATH=/usr/include/freetype2/freetype/ make
得看看makefile怎么 ...
https://bbs.deepin.org/post/178140
libfreetype-xxxxxx????
我是菜鸟,各位大大打脸的时候轻点
我刚装上deepin 不到两天,今天在安装PHP7,因为apt-get 安装的话版本不够,选择编译安装,但是在安装的途中遇到了问题。如下:
checking for the location of libjpeg... yes
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-webp-dir=
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=
configure: error: freetype-config not found.
====================分割线==================
freetype-config 未找到。百度后需要安装 libfreetype6 libfreetype6-dev (已安装),或者建立软连接ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h 。但是我的环境,freetype.h 本来就是/usr/include/freetype2/freetype/freetype.h 这样子的啊。再查,freetype是字体库用于快速缓存字体以便生成图片,那我可以不用它。去掉--with-freetype-dir 再次执行,正常。虽然最终是允许我安装了,但是我这明明已经有这个库了的,为啥读不到。如鲠在喉,求大佬解惑