Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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 perl.pl Can't locate object method "new" via package "PDF::API2" (perhaps you +forgot to load "PDF::API2"?) at perl.pl 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?

Comment on i cannot install PDF::API2
Download Code
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 perl.pl program.

    If perl.pl 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.

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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1072551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-12-29 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls