8000 Error message on libstdc missing. by martinheidegger · Pull Request #972 · nodegit/nodegit · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension 10BC0


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"rebuild": "node generate && node-gyp configure build",
"recompileDebug": "node-gyp configure --debug build",
"rebuildDebug": "node generate && node-gyp configure --debug build",
"xcodeDebug": "node-gyp configure -- -f xcode"
"xcodeDebug": "node-gyp configure -- -f xcode",
"postinstall": "bash postinstall.sh"
}
}
12 changes: 12 additions & 0 deletions postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

if [ -n "$(node lib/nodegit.js 2>&1 | grep libstdc++)" ]; then
echo "[ERROR] Seems like the latest libstdc++ is missing on your system!"
echo ""
echo "On Ubuntu you can install it using:"
echo ""
echo "$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test"
echo "$ sudo apt-get update"
echo "$ sudo apt-get install libstdc++-4.9-dev"
exit 1
fi
0