Changeset 1470


Ignore:
Timestamp:
09/21/13 18:43:27 (4 years ago)
Author:
mbarry
Message:

shepherd: More help text for people trying to install required modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/applications/shepherd

    r1464 r1470  
    22 
    33our $progname = 'shepherd'; 
    4 my $version = '1.8.6'; 
     4my $version = '1.8.7'; 
    55 
    66# tv_grab_au 
     
    10391039    eval { require $modname; }; 
    10401040    if ($@) { 
    1041         &log("\nERROR:\nMandatory module '$mod' not found.\n\n" . 
    1042              "Please see the Wiki at ".$wiki."/Installation\n" . 
    1043              "for details on how to install this module.\n", 1); 
     1041        my $ubuntu_package_name = lc $modname; 
     1042        $ubuntu_package_name =~ s/\//-/g; 
     1043        $ubuntu_package_name =~ s/\.pm//; 
     1044        &log("\n!!! ERROR: Mandatory module '$mod' not found.\n\n" . 
     1045             "    On Ubuntu distributions, you may be able to install\n" . 
     1046             "    this with the command:\n\n" . 
     1047             "    sudo apt-get install lib" . $ubuntu_package_name . "-perl\n\n" . 
     1048             "For more help, see the Wiki at ".$wiki."/Installation\n", 1); 
    10441049        exit(1); 
    10451050    } 
Note: See TracChangeset for help on using the changeset viewer.