CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
installing PDL


Tehmina Iqbal

Mar 21, 2011, 11:12 PM

Post #1 of 9 (2473 views)
installing PDL Can't Post


i am a new perl user and i have to implement VSM (vector space model) in perl. while googling i found a code for vsm which uses PDL. i am using version 5.8 of perl and i am trying to instal PDL (on windows 7) and i am having problem in installation. i am attaching the error message that i am facing. can any one help me plz.....
Attachments: error msg.jpg (96.6 KB)


Mar 22, 2011, 10:33 AM

Post #2 of 9 (2464 views)
Re: [Tehmina Iqbal] installing PDL [In reply to] Can't Post

That is odd, because File::Basename is core package and should be available.
See if you can find that file, i.e. "" in a directory called "File".
Perhaps your installation is broken somehow.


Mar 22, 2011, 12:03 PM

Post #3 of 9 (2462 views)
Re: [Tehmina Iqbal] installing PDL [In reply to] Can't Post

You must've only just installed Perl. Try restarting your command prompt so that the PATH information is updated, or worst case restart your computer as well.

Can't think of any other reason File::Basename would not be found.

If that doesn't work, manually check your computer's path info to see if the ActivePerl install added its necessary directories.

- Miller

Tehmina Iqbal

Mar 24, 2011, 10:45 AM

Post #4 of 9 (2450 views)
Re: [miller and karazam] installing PDL [In reply to] Can't Post

yes i think that there is some problem with my installation. as per ur suggestions i have checked my File, few liberary files like basename, copy, compare, and glob were missing. i have downloded them from CPAN site. now the error message is a new one and i have attached the msg, now what should i do?....

one more thing what is PPM and how to check that its installed with my perl or not and if not than how to install it on windows....
Attachments: err msg.png (39.8 KB)
  err msg.png (39.8 KB)


Mar 24, 2011, 1:00 PM

Post #5 of 9 (2447 views)
Re: [Tehmina Iqbal] installing PDL [In reply to] Can't Post

If I were you I would simply reinstall ActivePerl from
I have done it on several Windows boxes, and it has been really easy and worked right out of the box.
PPM (Perl Package Manager) is the tool that comes with ActivePerl for managing Perl modules.
It is run from the command line, like for example:

ppm install Some::Module

Tehmina Iqbal

Mar 25, 2011, 4:19 AM

Post #6 of 9 (2441 views)
Re: [Karazam] installing PDL [In reply to] Can't Post

i have reinstalled perl from the provided link. after that i tried installing PDL, still the error msg apperar for files opengl.ppd, pglot.ppd and pdl.ppd. i ahave manally downloaded these files but still the code of VSM that uses PDL is not working....its getting on my nerves now... i dont kow what to do. i have searched the net but cannot find any other code for VSM...


Mar 25, 2011, 5:11 AM

Post #7 of 9 (2438 views)
Re: [Tehmina Iqbal] installing PDL [In reply to] Can't Post

That is very odd, I just tried to install PDL on my Windows box at work, and it went flawlessly:

C:\>ppm install PDL 
Downloading PDL-2.4.7...done
Downloading Inline-0.46...done
Downloading Convert-UU-0.5201...done
Downloading OpenGL-0.64...done
Downloading Parse-RecDescent-1.965001...done
Unpacking PDL-2.4.7...done
Unpacking Inline-0.46...done
Unpacking Convert-UU-0.5201...done
Unpacking OpenGL-0.64...done
Unpacking Parse-RecDescent-1.965001...done
Generating HTML for PDL-2.4.7...done
Generating HTML for Inline-0.46...done
Generating HTML for Convert-UU-0.5201...done
Generating HTML for OpenGL-0.64...done
Generating HTML for Parse-RecDescent-1.965001...done
Updating files in site area...done
576 files installed

Version info:

C:\>perl -v 

This is perl 5, version 12, subversion 2 (v5.12.2) built for MSWin32-x86-multi-thread
(with 8 registered patches, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

Binary build 1202 [293621] provided by ActiveState
Built Sep 6 2010 23:36:03

C:\>ppm version
ppm 4.11 (ActivePerl 1202)

I also installed Astro::Fits::Header of your original post, also without problems.
Do you have the necessary permissions to install ActivePerl?

Tehmina Iqbal

Mar 25, 2011, 6:18 AM

Post #8 of 9 (2435 views)
Re: [Karazam] installing PDL [In reply to] Can't Post

i was trying to install it by using steps mentioned in the attached file. any ways now i have done it ur way and it installed successfully (finally) thanks for ur support.

the program which calls a package VectorSpace is still giving me error as during its execution it somewhere calls, in there is a statement requires "badsupport.p". i am looking for badsupport but cannot resolve problem. i am uploading the vectorspcace package which i am trying to use and i am calling it as follows:

use Search::VectorSpace;
open(DAT, $data_file) || die("Could not open file!");
my @docs=<DAT>;

my $engine = VectorSpace->new( docs => \@docs, threshold => .04);

while ( my $query = <> ) {
my %results = $engine->search( $query );
print join "\n", keys %results;

can u figure out the problem plz....

before installing active perl from the link u hav provided i was using perl 5.8 and open perl IDE, now i hav downloaded and installed per 5.12 but still i am using same IDE as i coudnt find a new IDE in perl 5.12. can this be a reason for the problem?
Attachments: (8.44 KB)
  INSTALL (3.79 KB)


Mar 25, 2011, 7:17 AM

Post #9 of 9 (2431 views)
Re: [Tehmina Iqbal] installing PDL [In reply to] Can't Post

An IDE is just a tool for writing code, it's not the source of your problem here.
The file "badsupport.p" isn't present on my system either. I'm not really familiar with PDL.
There's docs and a mailing list over at, perhaps you can get better help there.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives