FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added error message on linux systems that gives information on how to… · nodegit/nodegit@1dc7faa · GitHub

Repository navigation

Commit 1dc7faa

Browse files
Added error message on linux systems that gives information on how to install libstdc++ if missing.
1 parent 39dfc74 commit 1dc7faa

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
"rebuild": "node generate && node-gyp configure build",
8989
"recompileDebug": "node-gyp configure --debug build",
9090
"rebuildDebug": "node generate && node-gyp configure --debug build",
91-
"xcodeDebug": "node-gyp configure -- -f xcode"
91+
"xcodeDebug": "node-gyp configure -- -f xcode",
92+
"test2": "node lib/nodegit.js 2>&1 | grep libstdc++",
93+
"postinstall": "./postinstall.sh"
9294
}
9395
}

‎postinstall.sh‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -n "$(node lib/nodegit.js 2>&1 | grep libstdc++)" ]; then
4+
echo "[ERROR] Seems like you the latest libstdc++ is missing on your system!"
5+
echo ""
6+
echo "On Ubuntu you can install it using:"
7+
echo ""
8+
echo "$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test"
9+
echo "$ sudo apt-get update"
10+
echo "$ sudo apt-get install libstdc++-4.9-dev"
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL