Active Perl Installguide for Unix

  1. DownLoad ActivePerl(for Linux,AS package)
  2. Copy the archive file to your home directory.
    In this guide, we assume your home directory,
    /home/yourhome/
  3. Extract archive file.
    Move to your home directory,and execute next command
    tar xvfz ActivePerl-5.8.6.811-i686-linux.tar.gz
  4. Run install.sh
    cd ActivePerl-5.8.6.811-i686-linux
    sh ./install.sh
    Installer throws you some questions.
    Enter top level directory for install?[/opt/ActivePerl-5.8]
    Type '/you home directory/ActivePerl directory' and hit Enter.
    Enter top level directory for install?[/opt/ActivePerl-5.8] /home/yourhome/ActivePerl-5.8
    Enable PPM3 to send profile info to ASPN[no]
    PPM(Perl Package Module) is unnecessary. Hit Enter to go on.
    proceed? [yes]
    Hit Enter to file copy. If you want to go back, type no and hit Enter.
  5. Modify your startup environment
    After the file copy is complete, the installer requests as follows.
    Please modify your startup environment by adding:
      /home/yourhome/ActivePerl-5.8/bin to PATH
      /home/yourhome/ActivePerl-5.8/man to MANPATH

    In this guide, we assume you use bash.
    Edit '.bashrc'
    vi ~/.bashrc
    Add like follows.
    export PATH=/home/yourhome/ActivePerl-5.8/bin:$PATH
    export MANPATH=/home/yourhome/ActivePerl-5.8/man:$MANPATH
    Refresh your startup environment
    source ~/.bashrc
  6. Sample program
    Download or make next program as 'test.pl' source code.
    use SOAP::Lite;    # SOAP API
    
    # specify WSDL
    my $service = SOAP::Lite
            -> service('http://xml.nig.ac.jp/' .
                    'wsdl/GetEntry.wsdl');
    
    # call web service
    $result = $service->getXML_DDBJEntry("AB000003");
    
    print $result."\n";
    		
  7. Show command prompt and move to your test.pl's location.
    Next, type 'perl test.pl'.
    If you get as follows, Activeperl installation is completion.
    >perl test.pl
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE DDBJXML SYSTEM "DDBJXML.dtd">
    <DDBJXML>
    <LOCUS>AB000003</LOCUS>
    <LENGTH>641</LENGTH>
    <MOLECULAR_FORM>linear</MOLECULAR_FORM>
    <DIVISION>PLN</DIVISION>
    <LAST_UPDATE>12-SEP-2002</LAST_UPDATE>
    
    <DEFINITION>Rhizoctonia solani genes for 18S rRNA, 5.8S rRNA, 28S rRNA,partial and complete sequence
    , isolate:1556.</DEFINITION>
    <ACCESSION>AB000003</ACCESSION>
    <VERSION>AB000003.1</VERSION>
    <KEYWORDS>.</KEYWORDS>
    ...
    
    If you can't get like above, check your startup environment.