|
Hi! How can I install PIL (Python Imaging Library) with truetype (libfreetype) support on my webfaction hosting account? Thank you. |
|
You can build PIL with support for JPEG, Freetype, etc, on our CentOS6 servers without building those libraries locally in your home directory, and without setting environment variables like First, download and extract the PIL tarball:
Next, edit PIL's
Next, build PIL with the following command:
Next, run the test to confirm that the build was successful:
Finally, install the library:
You're done!
This answer is marked "community wiki".
|
|
PIL is already installed on WebFaction server with TrueType support. You can test like this:
1
No luck:
Any idea? Hi Andy, Can you try this using the system Python2.7 now? |
|
A good set of build instructions can be found on stackoverflow, For step 2 you should build freetype from source which is available here. For step 3 you would use the path you defined in './configure --prefix=' let me explain what i'm doing:
to 214 line. I run then
what am i doing wrong? (noob in linux) Instead of using i did it too (/home/my_name/lib, home/my_name/include) but it still the same problem I'm having the same issue running on a RedHat installation on ASO shared hosting, running Python 2.7 with PIL 1.1.7. Here's what I get... I don't know if our instructions will work at ASO, but you're welcome to try them :) |
Installing PIL on a virtualenv (worked for me)1 - pip install --no-install PIL (working on my virtualenv enviroment) 2 - edit the setup (inside the build directory of the virtual environment) in my case: JPEG_ROOT = '/usr/lib64','/usr/include' 3 - pip install PIL |