LoginSignup
3
3

More than 5 years have passed since last update.

MacPorts環境にTilemill 2をインストール

Posted at

Tilemill 2をそろそろ触ってみたかったのですが、マニュアルではhomebrewを使うのを前提になっていたので、MacPortsでインストールしました。

まずはTilemill 2に依存するものをインストールします。

% sudo port install mapnik
% sudo port install nodejs
% sudo port install npm
% sudo port install protobuf-c
% rehash

homebrewとは違い、node.jsとnpmが別れてるのに気をつけて下さい。あと、僕はzshを使ってるので、最後にrehashしています。

あとはTilemill 2をインストールします。これは同じ手順ですね。

% git clone https://github.com/mapbox/tm2.git
% cd tm2
% npm install
% node index.js

今回、npm側でいくつか問題がありました。

  1. npmで何かのダウンロードに失敗したのか、止まってしまう。
  2. npmでビルドをしても、途中で止まったように見える

これは、何度かnpm installを実行して対処しました。なんだかなぁ...

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3