Setting Up TileMill Round 1: Centos 5.6

In addition to all the fantastic work they’ve done with Drupal modules in the past, the guys over at Development Seed have been working on MapBox for a while. These guys have shifted their impressive creative machine in the direction of mapping and come up with a fantastic product. Add the folks they’re partnering with and DevSeed is pretty much a bunch of awesome do-gooders. Definitely go take a look at their demo projects.

Given that most of my development servers are running CentOS and I generally use Fedora, I spent some trying to get TileMill up and running on CentOS. This is still in process and I’m sorting a couple things out.

Roughly following: Kris Arnold to get Mapnik, one of TileMill’s dependencies installed.

Install or check Python 2.6


yum info python26
vi ~/.bashrc ; alias python='python26'

Easy dependencies


yum install freetype-devel libtool-ltdl-devel libpng-devel libtiff-devel libjpeg-devel gcc-c++ libicu-devel bzip2-devel libxml2-devel

libtools(?maybe)

Install ICU
Annoyingly, the install documentation is in an html file, so download the regular zip to check that out here. You can download the latest from here then do:


./configure Linux
make
sudo make install

Install Boost
download 1.46 from here


./bootstrap.sh
./bjam install

sudo cp -rfv stage/lib/* /usr/lib/
sudo cp -rf boost /usr/include
sudo vi /etc/ld.so.conf.d/local.conf
sudo /sbin/ldconfig

Update sqlite and sqlite-devel to >3.6
http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/sqlite-3.7.0.1-1.el5.art.i386.rpm
http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/sqlite-devel-3.7.0.1-1.el5.art.i386.rpm

Install Mapnik2


# sudo python26 scons/scons.py configure
# sudo python26 scons/scons.py install

Install Node.js


export GIT_SSL_NO_VERIFY=true
git clone https://github.com/joyent/node.git
cd node
git checkout v0.4.12
./configure
make
sudo make install