Showing posts with label centos. Show all posts
Showing posts with label centos. Show all posts

Monday, December 13, 2010

Including Jpeg support in PIL on centos box

There are a lot of posts out that say to install the libraries jpeg and jpeg-devel prior to installing PIL, but this did not work for me on Cento. For example this site http://www.jroller.com/RickHigh/entry/installing_pil_python_image_library suggests using the command:

$ sudo yum install freetype freetype-devel jpeg jpeg-devel libpng libpng-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: jpeg <<----- note the error here
No Match for argument: jpeg-devel <<----- and here
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libpng to pack into transaction set.
......



Instead use:

$ sudo yum install freetype freetype-devel libpng libpng-devel libjpeg libjpeg-devel


If you have already got as far as installing PIL, delete it from the site-packages directory and reinstall, I use easy_install PIL, and this will rebuild PIL, this time with jpeg support.

--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------

Friday, March 26, 2010

Installing GIT on Centos 5.4

Following directions from this site:http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

I got the error:

[root@tricostar-nwlc git-1.7.0.3]# make prefix=/usr/local all
/bin/sh: curl-config: command not found
GIT_VERSION = 1.7.0.3
/bin/sh: curl-config: command not found
* new build flags or prefix
CC fast-import.o
....


When trying to make GIT. After a bit of googling, found that I needed to include curl-devel as a dependancy so the following instructions worked for me:

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install libcurl3-openssl-dev
wget http://kernel.org/pub/software/scm/git/git-1.7.0.3.tar.gz
tar xvfz git-1.7.0.3.tar.gz
cd git-1.7.0.3
make prefix=/usr/local all
make prefix=/usr/local install

Sunday, April 12, 2009

Installing Pinax 0.7 on CentOS

So Easy!

Here is the complete list of commands I used to install in a pinax directory of /home

easy_install virtualenv
easy_install pip
cd /home
mkdir pinax
cd pinax
curl -o pinax-boot.py http://github.com/pinax/pinax/raw/master/scripts/pinax-boot.py
python pinax-boot.py pinax-env
cd pinax-env
source bin/activate
pip install --requirement src/pinax/requirements/external_apps.txt
cd /home/pinax/pinax-env/src/pinax/pinax/projects
pinax-admin clone_project basic_project myproject
cd myproject

amend settings.py to point to required database - I'm using mysql
setup mysql database
python manage.py syndb
python manage.py runserver

DONE!