Skip to content

Instantly share code, notes, and snippets.

@monkut
Last active September 11, 2019 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monkut/89cec4fbdc00aaec3ed1fa74dbc23eed to your computer and use it in GitHub Desktop.
Save monkut/89cec4fbdc00aaec3ed1fa74dbc23eed to your computer and use it in GitHub Desktop.
install tilemill in ubuntu 18.04

install libs

sudo apt-get install autoconf automake libtool curl make g++ unzip -y

clone and install protobuf

cd ~
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install

sudo ldconfig

clone and install mapnik

cd ~
sudo apt update 
sudo apt install clang
export CXX="clang++-6.0" && export CC="clang-6.0"

# install mapnik
git clone https://github.com/mapnik/mapnik mapnik --depth 10
cd mapnik
git submodule update --init
sudo apt-get install python zlib1g-dev clang make pkg-config curl
source bootstrap.sh
./configure CUSTOM_CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" CXX=${CXX} CC=${CC} && make
make test
sudo make install

install nodejs

apt install nodejs
apt install npm

update nodejs

sudo npm install npm@latest -g

# note need to re-enter shell after installation complests to confirm version
npm -v

# install 'n' to update nodejs
sudo npm install -g n

# update nodejs to be latest stable
sudo n stable
node -v

install osm2pgsql

sudo apt-get install osm2pgsql 

install tilemill

cd ~
git clone https://github.com/tilemill-project/tilemill.git
cd tilemill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment