Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues building on docker #699

Closed
calvinmetcalf opened this issue Sep 13, 2016 · 1 comment
Closed

issues building on docker #699

calvinmetcalf opened this issue Sep 13, 2016 · 1 comment

Comments

@calvinmetcalf
Copy link
Contributor

using the default node container then installing the latest version works fine, but when you go to run it you get the following error

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/src/app/node_modules/mapnik/lib/binding/node-v48-linux-x64/mapnik.node)
    at Error (native)
    at Object.Module._extensions..node (module.js:583:18)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Function.cls_wrapMethod [as _load] (/usr/src/app/node_modules/newrelic/lib/shimmer.js:247:38)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/src/app/node_modules/mapnik/lib/mapnik.js:31:15)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Function.cls_wrapMethod [as _load] (/usr/src/app/node_modules/newrelic/lib/shimmer.js:247:38)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/src/app/node_modules/wms/lib/tile.js:7:14)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
@springmeyer
Copy link
Member

To fix this you'll need to do:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update -y
sudo apt-get install -y libstdc++-5-dev

per https://github.com/mapnik/node-mapnik#depends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants