defvol / geobox

A virtual machine for geo stuff
3 stars 0 forks source link

Can't install tilemill #11

Open defvol opened 9 years ago

defvol commented 9 years ago
vagrant@precise64 /vagrant/tools/tilemill                              [12/1942]
 % ./index.js 
module.js:355
  Module._extensions[extension](this, filename);
                               ^
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.18' not fo
und (required by /vagrant/tools/tilemill/node_modules/mapnik/lib/binding/node-v1
4-linux-x64/mapnik.node)
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/vagrant/tools/tilemill/node_modules/mapnik/lib/mapn$k.js:26:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

See: https://github.com/mapbox/tilemill/issues/2415

Seems like the g++ version needs an upgrade:

vagrant@precise64 /vagrant/tools/tilemill
 % gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
defvol commented 9 years ago

gcc upgraded in #15

but still have some issues:

this happens in node v0.12 in Ubuntu 14.04 and OSX 10.10

/vagrant/tools/tilemill/node_modules/tilelive/lib/statistics.js:24                 
    set remaining() {}, // read-only                                             
                  ^                                                                
SyntaxError: Unexpected token )                                                 
    at exports.runInThisContext (vm.js:73:16)                                   
    at Module._compile (module.js:443:25)                                         
    at Object.Module._extensions..js (module.js:478:10)                           
    at Module.load (module.js:355:32)                                            
    at Function.Module._load (module.js:310:12)                                 
    at Module.require (module.js:365:17)                                         
    at require (module.js:384:17)                                               
    at Object.<anonymous> (/vagrant/tools/tilemill/node_modules/tilelive/lib/scheme
.js:1:80)                                                                       
    at Module._compile (module.js:460:26)                                  
    at Object.Module._extensions..js (module.js:478:10)                           
error.log (END) 
defvol commented 9 years ago

Si bajo de node 12 a node 10 pasa esto:

➜  tilemill git:(master) ./index.js 

module.js:340
    throw err;
          ^
Error: Cannot find module '/Users/rodolfo/Downloads/tilemill/node_modules/mapnik/lib/binding/node-v11-darwin-x64/mapnik_settings.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/rodolfo/Downloads/tilemill/node_modules/mapnik/lib/mapnik.js:8:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
defvol commented 9 years ago

https://github.com/mapbox/tilemill/search?q=statistics.js&type=Issues&utf8=%E2%9C%93

defvol commented 9 years ago

Should we try mapbox studio?

https://github.com/mapbox/mapbox-studio#install-from-source