解决CentOS下导入ImageFont报错问题
时间:2015-09-05 14:58 来源:linux.it.net.cn 作者:IT
-
编译PIL安装最后会提示差库,先yum install xxx*一路全装上
# 需要先安装jpeg库wget http://www.ijg.org/files/jpegsrc.v7.tar.gztar -zxvf jpegsrc.v7.tar.gz
cd jpeg-7CC="gcc -arch x86_64"./configure --enable-shared --enable-staticmake
make install
yum install freetype-devel
JPEG_ROOT = libinclude("/usr/local")FREETYPE_ROOT = '/usr/lib64','/usr/include/freetype2/freetype'
python setup.py build_ext -i
(责任编辑:IT)
# 需要先安装jpeg库wget http://www.ijg.org/files/jpegsrc.v7.tar.gztar -zxvf jpegsrc.v7.tar.gz cd jpeg-7CC="gcc -arch x86_64"./configure --enable-shared --enable-staticmake make install yum install freetype-devel JPEG_ROOT = libinclude("/usr/local")FREETYPE_ROOT = '/usr/lib64','/usr/include/freetype2/freetype' python setup.py build_ext -i (责任编辑:IT) |