[Bioperl-l] urgent help with AcePerl

Todd Harris harris at cshl.edu
Sat Feb 5 10:52:44 EST 2005


Badr - 

Which version of AcePerl are you running?  I believe newer versions use
sockets instead of RPC - perhaps the PPM is out-of-date as Paulo suggests.

You might also try building Aceperl from source which gives you the option
of building for rpc, sockets, or both.

Todd


> On 2/4/05 6:07 PM, Paulo Almeida wrote:

> I don't know anything about Perl on Windows, but maybe that ppm only
> installs the Ace module, and not Ace::RPC? I wouldn't know where to look
> though. Can you see if there are Ace sub-modules in the place where you
> got Ace?
> 
> -Paulo
> 
>> Hi
>> I'm working in windows environment. I use ppm to install AcePerl. however
>> when I run the following perl program I get an error says:
>> Module Ace::RPC not loaded: Can't locate Ace/RPC.pm in @INC <@INC
>> contains:
>> C:/Perl/lib  c:/Perl/site/lib .) at (eval 2) line 3.
>> 
>> 
>> I appreciate your help in advance
>> 
>> best regards
>> 
>> 
>> the program
>> #!/usr/local/bin/perl
>> # This example will pull some information on various authors
>> # from the C. Elegans ACEDB.
>> 
>> use Ace;
>> use strict vars;
>> 
>> use constant HOST => $ENV{ACEDB_HOST} || 'beta.crbm.cnrs-mop.fr';
>> use constant PORT => $ENV{ACEDB_PORT} || 20000100;
>> $|=1;
>> 
>> print "Opening the database....";
>> my $db = Ace->connect(-host=>HOST,-port=>PORT)
>>          || die "Connection failure: ",Ace->error;
>> print "done.\n\n";
>> 
>> my @authors = $db->fetch('Author','S*');
>> print "There are ",scalar(@authors)," Author objects starting with the
>> letter \"S\".\n",
>>       "The first one's name is ",$authors[0],"\n",
>>       "His mailing address is ",join(',',$authors[0]->Mail),"\n\n";
>> 
>> my @papers = $authors[0]->Paper;
>> print "He has published ",scalar(@papers)," papers.\n\n";
>> 
>> my $paper = $papers[$#papers]->fetch;
>> print "The title of his most recent paper is ",$paper->Title,"\n",
>>       "The coauthors were ",join(", ",$paper->Author),"\n\n",
>>       "Here is all the information on the first coauthor:\n",
>>       (($paper->Author)[0]->fetch->asString);
> 
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
> 



More information about the Bioperl-l mailing list