forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostinstall.js
More file actions
executable file
·20 lines (17 loc) · 619 Bytes
/
postinstall.js
File metadata and controls
executable file
·20 lines (17 loc) · 619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env node
var fs = require("fs");
var child_process = require("child_process");
if (process.platform !== "linux") {
return;
}
child_process.exec("node dist/nodegit.js", function(error, stdout, stderr) {
if (stderr && ~stderr.indexOf("libstdc++")) {
console.log("[ERROR] Seems like the latest libstdc++ is missing on your system!");
console.log("");
console.log("On Ubuntu you can install it using:");
console.log("");
console.log("$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test");
console.log("$ sudo apt-get update");
console.log("$ sudo apt-get install libstdc++-4.9-dev");
}
});