Last active
March 8, 2017 14:35
-
-
Save wynemo/45cac9464d2ece845f653226c695182f to your computer and use it in GitHub Desktop.
install PIL 1.1.7 on centos 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do this in dev instance `rm /home/propus/.download/PIL-1.1.7-cp27-none-linux_x86_64.whl` | |
and do this `yum install libjpeg-turbo-devel` | |
and remove `PIL` and `python-pillow`. we dont need a system package. | |
we just need install PIL in python virtualenv environment. | |
the reason of this issue is that centos 7 use `libjpeg-turbo-devel` instead of `libjpeg-devel`. | |
keep in mind PIL needs some library to be pre-installed, and when we | |
[root@nemo Imaging-1.1.7]# pwd | |
/home/nemo/Imaging-1.1.7 | |
[root@nemo Imaging-1.1.7]# /Opus/server/opusos/env/bin/python setup.py install | |
*** TKINTER support not available | |
--- JPEG support available | |
--- ZLIB (PNG/ZIP) support available | |
--- FREETYPE2 support available | |
*** LITTLECMS support not available | |
so when you have a brand new centos 7 machine, first, install these using yum: | |
zlib-devel | |
freetype-devel | |
libjpeg-turbo-devel | |
then do `rm /home/propus/.download/PIL-1.1.7-cp27-none-linux_x86_64.whl` | |
then use buildbot to rebuild opusos. | |
i have made this works on clavier, plz check: | |
https://login.clavier.zencoo.com/captcha.jpg?p=1487755357958 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment