Add libtool case

master
Sven Slootweg 7 years ago
parent f85a5e09b2
commit 68e4af870d

@ -11,6 +11,11 @@ function isBrokenBuildEnvironment(code) {
return (code.indexOf("library not found for -lgcc_s.10.5") !== -1);
}
function isMissingLibtool(code) {
// testcases/3.txt
return (code.includes("Can't exec \"libtoolize\": No such file or directory"));
}
function isMissingPython(code) {
// testcases/1.txt
return (
@ -127,6 +132,8 @@ function getErrorType(code) {
return "missingEnvironment";
} else if (isBrokenBuildEnvironment(code)) {
return "brokenEnvironment";
} else if (isMissingLibtool(code)) {
return "missingLibtool";
} else if (isMissingPython(code)) {
return "missingPython";
} else if (isWrongPython(code)) {

@ -20,6 +20,11 @@ solution-viewer
li If on OS X, make sure to upgrade your installation of XCode to the latest version.
li If it still doesn't work, try reinstalling Node.js.
solution(topic="missingLibtool")
h3 <code>libtool</code> is not installed.
p One of the dependencies you tried to install (<code>{parent.offendingModule}</code>) requires <code>libtool</code> for its compilation process, but it's missing from your system.
p To solve this problem, install the <strong><code>libtool</code></strong> package through your system's package manager, and retry the <code>npm install</code>.
solution(topic="missingPython")
h3 Python is not installed.
p You will need to have Python installed, to be able to install compiled (C++) modules with NPM. It's possible that you're also missing other build tools.

Loading…
Cancel
Save