Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

i cannot install PDF::API2

by ELizabeth (Initiate)
on Jan 29, 2014 at 17:38 UTC ( #1072551=perlquestion: print w/replies, xml ) Need Help??
ELizabeth has asked for the wisdom of the Perl Monks concerning the following question:

ruby@ruby-Z87X-HD3:~$ sudo apt-get install libpdf-api2-perl Reading package lists... Done Building dependency tree Reading state information... Done libpdf-api2-perl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ruby@ruby-Z87X-HD3:~$ PDF::API PDF::API: command not found ruby@ruby-Z87X-HD3:~$ PDF::API2 PDF::API2: command not found ruby@ruby-Z87X-HD3:~$ perl Can't locate object method "new" via package "PDF::API2" (perhaps you +forgot to load "PDF::API2"?) at line 1.

the Ubuntu said I have installed PDF::API but it still cannot find the command. I use the PDF::apI2 in Perl but it also said there is no PDF::API2 package. could you tell me why?

Replies are listed 'Best First'.
Re: i cannot install PDF::API2
by thezip (Vicar) on Jan 29, 2014 at 19:26 UTC

    I notice that you said you had the line:

    use PDF::apI2

    Perl is case sensitive, so you must instead use:

    use PDF::API2;

    I'm not saying this is your only problem, but it would also be a show-stopper.

    If you want to verify that you have installed PDF::API2, you could go to a terminal window and type:

    perldoc PDF::API2

    You would then be able to view the documentation for that module.

    *My* tenacity goes to eleven...
Re: i cannot install PDF::API2
by keszler (Priest) on Jan 29, 2014 at 19:05 UTC
    It would help if you posted the content of your program.

    If line 1 is generating the error, I'd guess that line 1 is something like $something = PDF::API2->new(...);. The Perl compiler is telling you that there is no use PDF::API2; prior to calling a PDF::API2 method.

    See use for more info.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1072551]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2018-04-20 07:49 GMT
Find Nodes?
    Voting Booth?