You are not logged in.

#1 2011-04-01 18:32:14

bugzsy
Member
Registered: 2011-04-01
Posts: 1

[Request] TileMill

Hello, guys!

I recently found a GIS software for Linux called TileMill. You can find its web page on tilemill.com. It looks quite nice, so I decided to give it a try.

I firstly tried to build it flowing the instructions on the site, but in the end TileMill wasn't available at http://localhost:8889 as it should. I tried to make a PKGBUILD but I couldn't find out all the dependencies and sources and so. It's all double dutch to me.

Could someone help?

Offline

#2 2011-04-11 06:54:50

cebru
Member
Registered: 2009-06-17
Posts: 39

Re: [Request] TileMill

Would help if you posted the PKGBUILD so people can comment on it.

I noticed the Ubuntu installation instructions on their site lists dependencies. Did you take a look at that?

Offline

#3 2012-03-05 09:05:06

marvn
Member
From: Prague
Registered: 2010-01-05
Posts: 82

Re: [Request] TileMill

the installation script is really ubuntu only tongue

DIST=`lsb_release -cs`

if [ -z "$DIST" ]; then
  echo "Your Ubuntu distribution version could not be determined."
  exit
fi

if [[ "$DIST" != "natty" && "$DIST" != "oneiric" && "$DIST" != "katya" ]]; then
  echo "Your distribution $DIST is not supported."
  exit
fi

pkexec /bin/bash -c "apt-get update --yes
    apt-get install --yes python-software-properties &&
    yes | apt-add-repository ppa:developmentseed/mapbox &&
    apt-get update --yes &&
    apt-get install --yes tilemill"

read -sp "Press [ENTER] to quit."

core i5 4590, x86_64, nvidia 970

Offline

#4 2012-03-05 09:39:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: [Request] TileMill

There are build-from-source instructions there if you follow the links to the git repo.

Offline

#5 2012-06-10 13:06:48

pfrenssen
Member
Registered: 2012-04-09
Posts: 10

Re: [Request] TileMill

Here's what I did to install Tilemill. I could not immediately find how to let the node.js package manager use Python2, so I worked around it by temporarily changing the python symlink.

Tilemill depends on mapnik 2, which is only available as a source package in AUR (mapnik-git). This takes quite some time to compile. I use pacaur to manage AUR packages, so replace this with your own preferred program, or install it manually.

Note that it is possible you need additional packages, I often compile software from source so I already have a large number of development packages installed on my system.

# Install dependencies.
sudo pacman -S nodejs
pacaur -S mapnik-git

# Download the Tilemill source.
cd /usr/local/src/
git clone https://github.com/mapbox/tilemill.git

# Compile and install Tilemill, working around the python2 requirement.
cd tilemill
sudo rm /usr/bin/python && sudo ln -s python2 /usr/bin/python
npm install
sudo rm /usr/bin/python && sudo ln -s python3 /usr/bin/python

# Replace 'python' with 'python2' in all python sources.
grep -rl --null "#\!/usr/bin/env python" * | xargs -0 perl -pi -e 's|#!/usr/bin/env python$|#!/usr/bin/env python2|g'
grep -rl --null "#\!/usr/bin/python" * | xargs -0 perl -pi -e 's|#!/usr/bin/python$|#!/usr/bin/python2|g'

# Launch Tilemill.
./index.js

Offline

#6 2012-06-19 22:03:20

nickoe
Member
From: Denmark
Registered: 2009-06-30
Posts: 7

Re: [Request] TileMill

I have made PKGBUILD to handle tilemill. It can be found on aur.archlinux.org, where the python hax could be reduced to something like below, and without modifying the system in the process and only work in the package.

mkdir -p $srcdir/bin
ln -s -f /usr/bin/python2 $srcdir/bin/python
export PATH=$srcdir/bin:$PATH

Tilemill in AUR

Offline

#7 2012-06-20 09:22:46

pfrenssen
Member
Registered: 2012-04-09
Posts: 10

Re: [Request] TileMill

Great stuff, thanks very much!!

Offline

#8 2012-08-19 09:27:58

b.bongalov
Member
Registered: 2012-02-18
Posts: 1

Re: [Request] TileMill

You guys are awesome! Thank you very much!

Offline

Board footer

Powered by FluxBB