Skip to content

Instantly share code, notes, and snippets.

@rclark
Created October 23, 2013 19:00
Show Gist options
  • Select an option

  • Save rclark/7124590 to your computer and use it in GitHub Desktop.

Select an option

Save rclark/7124590 to your computer and use it in GitHub Desktop.

Revisions

  1. rclark created this gist Oct 23, 2013.
    32 changes: 32 additions & 0 deletions node-mapnik-isntall.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    WeeSofty:tm2 r$ npm install mapnik
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] 'repositories' (plural) Not supported.
    npm WARN package.json Please pick one as the 'repository' field
    npm http GET https://registry.npmjs.org/mapnik
    npm http 304 https://registry.npmjs.org/mapnik
    npm http GET https://registry.npmjs.org/mapnik-vector-tile
    npm http 304 https://registry.npmjs.org/mapnik-vector-tile

    > [email protected] install /Users/r/gh/mapbox/tm2/node_modules/mapnik/node_modules/mapnik-vector-tile
    > protoc -Iproto/ --cpp_out=./src/ ./proto/vector_tile.proto


    > [email protected] install /Users/r/gh/mapbox/tm2/node_modules/mapnik
    > node-gyp rebuild

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    gyp: Error 1 running xcodebuild
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack at ChildProcess.onCpExit (/usr/local/Cellar/node/0.10.21/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:424:16)
    gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
    gyp ERR! System Darwin 13.0.0
    gyp ERR! command "node" "/usr/local/Cellar/node/0.10.21/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /Users/r/gh/mapbox/tm2/node_modules/mapnik
    gyp ERR! node -v v0.10.21
    gyp ERR! node-gyp -v v0.10.10
    gyp ERR! not ok
    npm ERR! weird error 1
    npm ERR! not ok code 0