Hi! How can I install PIL (Python Imaging Library) with truetype (libfreetype) support on my webfaction hosting account? Thank you. asked 04 Feb '12, 15:49 Andy |
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!
permanent link
This answer is marked "community wiki".
answered 12 Feb '12, 13:26 seanf Hi, I followed this howto and installed PIL. Now I want to uninstall it and install
(18 Jun '13, 08:03)
xpanta
Just delete the library from your
(18 Jun '13, 17:25)
seanf
Thanks. There is a PIL library at
(20 Jun '13, 03:16)
xpanta
If you remove PIL from your virtualenv and replace it with Pillow, that should be fine. As to why you don't have PIL in
(20 Jun '13, 11:55)
seanf
|
Currently if you import PIL using python2.7 on your account it is pulling in the shared version and not the installed one,
This would account for why it is failing. I have ran
On your account and now it imports correctly,
However it now fails with,
To solve this I did 2 things, 1 created a symbolic link to the real file,
Than ran this line to load the lib path,
Selftest.py now runs but fails for missing files. Thank you! I did something you said and it work fine now! i guess export LD_LIBRARY_PATH helped! Thanks!!!
(05 Feb '12, 03:44)
Andy
We have removed your account name from the answer.
(05 Feb '12, 15:51)
timg ♦♦
|
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 answered 16 Oct '12, 14:04 aemb87 |
PIL is already installed on WebFaction server with TrueType support. You can test like this:
answered 04 Feb '12, 16:34 timg ♦♦ 1
No luck:
Any idea?
(04 Feb '12, 16:39)
Andy
Hi Andy, Can you try this using the system Python2.7 now?
(21 Mar '12, 22:48)
klynton
|
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=' answered 04 Feb '12, 17:11 johns let me explain what i'm doing:
to 214 line. I run then
what am i doing wrong? (noob in linux)
(04 Feb '12, 18:43)
Andy
Instead of using
(04 Feb '12, 18:59)
ryans ♦♦
i did it too (/home/my_name/lib, home/my_name/include) but it still the same problem
(05 Feb '12, 02:27)
Andy
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...
(29 Aug '12, 16:19)
salsama
I don't know if our instructions will work at ASO, but you're welcome to try them :)
(29 Aug '12, 16:54)
seanf
|