Skip to content

Instantly share code, notes, and snippets.

@Nanguage
Created November 22, 2016 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nanguage/ce873466e45fe28644f762d6045a0f8a to your computer and use it in GitHub Desktop.
Save Nanguage/ce873466e45fe28644f762d6045a0f8a to your computer and use it in GitHub Desktop.
perl script for install circos perl dependency library
#!/usr/bin/env perl
$module_status = `circos -module`
or die("please ensure circos installed.");
@module_status = split(/\n/, $module_status);
foreach (@module_status) {
chomp;
if ($_ =~ /^missing\s*(.+)$/) {
print "[INFO] missing: $1\n";
system("sudo cpan -i $1");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment