diff --git a/src/analyze-error.js b/src/analyze-error.js
index 125af79..6a01a38 100644
--- a/src/analyze-error.js
+++ b/src/analyze-error.js
@@ -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)) {
diff --git a/src/components/solution-viewer.tag b/src/components/solution-viewer.tag
index c1bb142..f91f2ae 100644
--- a/src/components/solution-viewer.tag
+++ b/src/components/solution-viewer.tag
@@ -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 libtool
is not installed.
+ p One of the dependencies you tried to install ({parent.offendingModule}
) requires libtool
for its compilation process, but it's missing from your system.
+ p To solve this problem, install the libtool
package through your system's package manager, and retry the npm install
.
+
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.