I am getting the following error upon compilation of my blast.cgi program

XSLoader::load('Your::Module', $Your::Module::VERSION) at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 25. Compilation failed in require at /usr/lib/perl5/5.8.8/File/Temp.pm line 137. BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Temp.pm line 137. Compilation failed in require at blast.cgi line 5. BEGIN failed--compilation aborted at blast.cgi line 5.

Please help me out.



#!/usr/bin/perl use strict; use warnings; use Adrian::Goodies ':dirs'; use File::Temp; use File::Spec::Functions; use Env::Path 'PATH'; PATH->Append(BLAST_BIN_DIR) if BLAST_BIN_DIR; #my %VALID_PROGS = (blastn => 'allnucl', tblastn => 'allnucl', tblastx + => 'allnucl', # blastp => 'allprot', blastx => 'allprot'); #my %VALID_DBS = (allnucl => 'allnucl', nucl => 'allnucl', allflanks = +> 'allnucl', # flanks => 'allnucl', allprot => 'allprot', prot => ' +allprot'); my $cgi = CGI->new(); my ($title, $prog, $db, $seq) = ($cgi->param('title') || "notitle" . t +ime(), $cgi->param('prog'), $cgi->param('db'), $cgi->param('sequence')); $title =~ s/\s/ /g; $title = "notitle" . time() if $title eq ''; $seq =~ s/[^A-Za-z]//g; if ($cgi->request_method() eq 'POST' #and exists $VALID_PROGS{$prog} a +nd #exists $VALID_DBS{$db} and $seq) { my $seqfile = File::Temp->new(); open (my $fh, '>', $seqfile); print $fh ">$title\n"; print $fh $seq, "\n"; close $fh; my $execstring; # currently is secure if ($prog eq "blastp" and $db eq "allnucl"){ $execstring = "/home/groupii/ncbi-blast/bin/$prog -db \"" . ca +tfile(BLAST_DB_DIR, "allprot") . "\" -max_target_seqs 10 -word_size 5 + -evalue 100 -query \"$seqfile\""; } elsif ($prog eq "blastx" and $db eq "allnucl"){ $execstring = "/home/groupii/ncbi-blast/bin/$prog -db \"" . ca +tfile(BLAST_DB_DIR, "allprot") . "\" -max_target_seqs 10 -word_size 5 + -evalue 100 -query \"$seqfile\""; } elsif ($prog eq "blastn") { $execstring = "/home/groupii/ncbi-blast/bin/$prog -db \"" . ca +tfile(BLAST_DB_DIR, $db) . "\" -max_target_seqs 10 -word_size 5 -pen +alty -3 -reward 2 -task blastn -evalue 100 -query \"$seqfile\""; } else { $execstring = "/home/groupii/ncbi-blast/bin/$prog -db \"" . ca +tfile(BLAST_DB_DIR, $db) . "\" -max_target_seqs 10 -word_size 5 -eval +ue 100 -query \"$seqfile\""; } print $cgi->header('text/plain'); print qx{$execstring}; } else { print $cgi->redirect('../blast.html'); } exit;

In reply to Software error...Plz help by hamzakhanvit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.