- if (cause instanceof java.lang.UnsatisfiedLinkError && cause.getMessage().matches(".*libcgraph.so.*"))
- System.err.println("HINT: Try to install the libcgraph package (sudo apt-get install libcgraph).");
- else
+ if (cause instanceof java.lang.UnsatisfiedLinkError) {
+ if (cause.getMessage().matches(".*libcgraph.so.*"))
+ System.err.println("HINT: Try to install the libcgraph package (sudo apt-get install libcgraph).");
+ else if (cause.getMessage().matches(".*libboost_context.so.*"))
+ System.err.println("HINT: Try to install the boost-context package (sudo apt-get install libboost-context-dev).");
+ else
+ System.err.println("Try to install the missing dependencies, which name should appear above.");
+ } else {