I just installed ActiveState Perl 5.10.0.1008 Win 32 and tried to launch ppm.
Either with the gui command or with the command line (ppm install PAR) I get the same error message :
ppm install failed: DBI connect('dbname=C:/Users/李丽伟/AppData/Local/ActiveState/ActivePerl/1008/ppm-MSWin32-x86-multi-thread-5_10.db','',...) failed: unable to open database file(1)
The directory c:/winnt/... /1002 is correctly created, but nothing inside.
I wonder if this may have something to do with the fact that I have a Chinese Windows, with an accentuated character in the above path which should be :
C:/Users/李丽伟/AppData/Local/ActiveState/ActivePerl/1008
Set the ACTIVEPERL_PPM_HOME environment variable to point to a directory without extended Unicode characters in its name and PPM will try to maintain its database in this directory instead.
Example:
cmd:
set ACTIVEPERL_PPM_HOME=c:/perl/temp
ppm
It works perfectly!
Problem:
I have to set the ACTIVEPERL_PPM_HOME environment whenever I want to launch my ppm.
Then Install Bioperl .
Installation using the Perl Package Manager
GUI Installation
- 1) Start the Perl Package Manager GUI from the Start menu.
- 2) Go to Edit >> Preferences and click the Repositories tab. Add a new repository for each of the following (note the difference based on the perl version). NOTE - The DB_File installed with ActivePerl 5.10 and above is a stub (i.e. it does not work). The Trouchelle database below has a working DB_File.
Name | perl 5.8 | perl 5.10 |
---|---|---|
BioPerl-Regular Releases | http://bioperl.org/DIST | http://bioperl.org/DIST |
BioPerl-Release Candidates | http://bioperl.org/DIST/RC | http://bioperl.org/DIST/RC |
Kobes | http://theoryx5.uwinnipeg.ca/ppms | http://cpan.uwinnipeg.ca/PPMPackages/10xx/ |
Bribes | http://www.Bribes.org/perl/ppm | http://www.Bribes.org/perl/ppm |
Trouchelle | http://trouchelle.com/ppm | http://trouchelle.com/ppm10 |
tcool | http://ppm.tcool.org/archives/ | NA |
- 3) Select View >> All Packages.
- 4) In the search box type bioperl.
- 5) Right click the latest version of Bioperl available and choose install. (Note for users of previous Bioperl releases: you should not have to use the Bundle-BioPerl package anymore.)
- 5a) From bioperl 1.5.2 onward, all 'optional' pre-requisites will be marked for installation. If you see that some of them complain about needing a command-line installation (eg. XML::SAX::ExpatXS), and you want those particular pre-requisites, stop now (skip step 6) and see the 'Command-line Installation' section.
- 6) Click the green arrow (Run marked actions) to complete the installation.