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); 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) { function isMissingPython(code) {
// testcases/1.txt // testcases/1.txt
return ( return (
@ -127,6 +132,8 @@ function getErrorType(code) {
return "missingEnvironment"; return "missingEnvironment";
} else if (isBrokenBuildEnvironment(code)) { } else if (isBrokenBuildEnvironment(code)) {
return "brokenEnvironment"; return "brokenEnvironment";
} else if (isMissingLibtool(code)) {
return "missingLibtool";
} else if (isMissingPython(code)) { } else if (isMissingPython(code)) {
return "missingPython"; return "missingPython";
} else if (isWrongPython(code)) { } 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 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. 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") solution(topic="missingPython")
h3 Python is not installed. 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. 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