- Install xcode
- Install homebrew
- Run the commands
.
brew install icu4c
brew link icu4c
brew install boost
brew install proj
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
.counter { | |
z-index:999; |
~/node-blend (git::master) ▶ make | |
node-waf build | |
Waf: Entering directory `/Users/willwhite/node-blend/build' | |
[2/5] cxx: src/writer.cpp -> build/Release/src/writer_1.o | |
[3/5] cxx: src/blend.cpp -> build/Release/src/blend_1.o | |
In file included from ../src/writer.hpp:14, | |
from ../src/writer.cpp:1: | |
../src/blend.hpp: In constructor ‘BlendBaton::BlendBaton()’: | |
../src/blend.hpp:111: error: cannot convert ‘uv_loop_t*’ to ‘uv_handle_t*’ for argument ‘1’ to ‘void uv_ref(uv_handle_t*)’ | |
../src/blend.hpp: In destructor ‘BlendBaton::~BlendBaton()’: |
justin: so static api | |
yh: don't use it for this | |
justin: ok | |
yh: or i will body slam you next time i see you |
[0;32minfo: Retrieving plugin[0m | |
[0;32minfo: Loading facts in chargify_subdomain[0m | |
[0;32minfo: Loading facts in tilemill_core_hostname[0m | |
[0;32minfo: Loading facts in hostname[0m | |
[0;32minfo: Loading facts in tilestream_uploads_bucket[0m | |
[0;32minfo: Loading facts in tilestreamCertificate[0m | |
[0;32minfo: Loading facts in tilemill_tile_ui_hostname[0m | |
[0;32minfo: Loading facts in stackname[0m | |
[0;32minfo: Loading facts in tilemill_tile_hostname[0m | |
[0;32minfo: Loading facts in snsalarmstopic[0m |
npm ERR! Failed unpacking /usr/share/tilestream/.npm/backbone/0.3.3/package.tgz | |
npm ERR! error installing [email protected] Error: `tar "-zmvxpf" "/usr/share/tilestream/.npm/backbone/0.3.3/package.tgz"` | |
npm ERR! error installing [email protected] failed with 2 | |
npm ERR! error installing [email protected] at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/tar.js:217:20) | |
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17) | |
npm ERR! error installing [email protected] at Socket.<anonymous> (child_process.js:172:12) | |
npm ERR! error installing [email protected] at Socket.emit (events.js:64:17) | |
npm ERR! error installing [email protected] at Array.0 (net.js:831:12) | |
npm ERR! error installing [email protected] at EventEmitter._tickCallback (node.js:126:26) | |
npm ERR! error installing [email protected] Error: `tar "-zmvxpf" "/usr/share/tilestream/.npm/backbone/0.3.3/package.tgz"` |
.
brew install icu4c
brew link icu4c
brew install boost
brew install proj
tilemill_test=# \d | |
List of relations | |
Schema | Name | Type | Owner | |
--------+---------------------------+----------+---------- | |
public | admin_0_line_land | table | diggersf | |
public | admin_0_line_land_gid_seq | sequence | diggersf | |
public | geography_columns | view | diggersf | |
public | geometry_columns | table | diggersf | |
public | spatial_ref_sys | table | diggersf | |
(5 rows) |
Started [Server Core:8889]. | |
uncaught undefined: Error: Command failed: NOTICE: database "tilemill_test" does not exist, skipping | |
createdb: database creation failed: ERROR: template database "template_postgis" does not exist | |
psql: FATAL: database "tilemill_test" does not exist | |
at ChildProcess.exithandler (child_process.js:102:15) | |
at ChildProcess.emit (events.js:67:17) | |
at ChildProcess.onexit (child_process.js:192:12) |
/** | |
* Quantile breaks in a dataset | |
* @param {array}: data list of data. | |
* @param {number}: n number of breaks. | |
* @return {array} of break places. | |
*/ | |
function quantile(data, n) { | |
return _.select(data.sort(), function(val, index) { | |
return index % (data.length / (n - 1)) == 0; | |
}).concat(_.max(data)); |
willwhite ~/src/tilemill: otool -L /usr/local/lib/mapnik2/input/sqlite.input | |
/usr/local/lib/mapnik2/input/sqlite.input: | |
plugins/input/sqlite.input (compatibility version 0.0.0, current version 0.0.0) | |
/usr/local/lib/libsqlite3.0.8.6.dylib (compatibility version 9.0.0, current version 9.6.0) | |
/usr/local/lib/libmapnik2.dylib (compatibility version 2.0.0, current version 2.0.0) | |
/usr/local/Cellar/icu4c/4.4.1/lib/libicuuc.44.1.dylib (compatibility version 44.0.0, current version 44.1.0) | |
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) | |
/usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) | |
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) | |
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) |