Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better error reporting when the user doesn't have libssl-dev installe…

…d (or Crypt::SSLeay otherwise fails to install properly
  • Loading branch information...
commit a8c9036862aece580bb9bebd653b15f1fdf7ec96 1 parent 2e4926b
Robert Picard rpicard authored
Showing with 18 additions and 1 deletion.
  1. +18 −1 install.pl
19 install.pl
View
@@ -136,7 +136,24 @@
cpanminus_install_error() if (system('cpanm Module::Finder Module::Extract::VERSION'));
cpanminus_install_error() if (system('cpanm -n namespace::autoclean Moose'));
-cpanminus_install_error() if (system('cpanm NANIS/Crypt-SSLeay-0.59_03.tar.gz'));
+
+if ( eval { system('cpanm NANIS/Crypt-SSLeay-0.59_03.tar.gz') } ) {
+ print_text(
+ "",
+ "--------------------------------------",
+ "",
+ "[ERROR] There was an error installing Crypt::SSLeay.",
+ "Crypt::SSLeay needs the package libssl-dev to install properly. If you don't have this package installed on your system, it could be why you're seeing this error. To install it on Debian or Ubuntu, run:",
+ "sudo apt-get install libssl-dev",
+ "This may have just been a download error. If you're unsure, try running this script again.",
+ "",
+ "--------------------------------------",
+ ""
+ );
+
+ exit 1;
+}
+
cpanminus_install_error() if (system('cpanm App::DuckPAN'));
print_text(
Please sign in to comment.
Something went wrong with that request. Please try again.