You are not logged in.
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
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
the installation script is really ubuntu only
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
There are build-from-source instructions there if you follow the links to the git repo.
Offline
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
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
Offline
Great stuff, thanks very much!!
Offline
You guys are awesome! Thank you very much!
Offline