print"Installation is good. Connection to Ensembl works and you can query the human core database\n";
}
else{
print"Installation is good. Connection to Ensembl works but the species name '$name' was not as expected. Please contact the developers at dev\@ensembl.org to update this assertion\n";
}
};
my$error=$@;
#If no error found then see if we've got all of our external modules available
print"ERROR: Error detected when connecting to Ensembl!\n";
if($error=~/Can't locate Bio\/E/){
print"\tLooks like you need to setup your PERL5LIB with the Ensembl API. Please consult http://www.ensembl.org/info/docs/api/api_installation.html\n";
}
if($error=~/Can't locate Bio\/Perl/){
print"\tLooks like you need to setup your PERL5LIB with BioPerl. Please consult http://www.ensembl.org/info/docs/api/api_installation.html\n";
}
if($error=~/Cannot connect to/){
print"\tCannot seem to contact EnsemblDB at '$host' with the username '$user'. Try running 'ping $host' or asking your systems about firewalls against port $port\n";
}
if($error=~/internal name/){
print"\tSpecies was not found. You may have accidentally download the HEAD API version (found API release $db_version & public FTP release is $ftp_version). Please consult http://www.ensembl.org/info/docs/api/api_installation.html\n";
}
if($error=~/Species not defined/){
print"\tSpecies was not found. You may have accidentally download the HEAD API version (found API release $db_version & public FTP release is $ftp_version). Please consult http://www.ensembl.org/info/docs/api/api_installation.html\n";
}
if($error=~/Missing the checkout/){
print"\tYour core installation was good but supplementary modules cannot be found. If you wish to access these other Ensembl resources add the libraries to your PERL5LIB:\n";
print$error;
#bail early
exit0;
}
print'='x80,"\n";
print"If the problem persists please send the following error message to helpdesk\@ensembl.org\n";