Can't locate Text/CSV.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8

Discussion in 'Perl Misc' started by dacoman@gmail.com, Jun 15, 2006.

  1. Guest

    Hello,

    I have recently upgraded the server to Suse 10.1. Now I have a problem
    wiht and old cgi script that does not compile anymore.
    The error when I run the script with perl -w is:

    > # perl -cw reg.cgi

    Can't locate Text/CSV.pm in @INC (@INC contains:
    /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8
    /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at
    reg.cgi line 13.
    BEGIN failed--compilation aborted at reg.cgi line 13.

    The line that is causing the problem is:

    Use Text::CSV;

    Here is piece of code:

    use strict;
    use warnings;
    use CGI qw:)standard);
    use Text::CSV;
    ##################################################

    # create a new CGI object and CSV object
    my $query = new CGI;
    my $csv = Text::CSV->new();


    The perl version is perl5.8.8 and I did install the package
    perl-Text-CSV_XS that came with the Suse 10.1 distro.

    What am I missing here? I would realy appreciate your help.
    Thank you,
    --D
     
    , Jun 15, 2006
    #1
    1. Advertising

  2. Guest

    wrote:
    ....
    >
    > The line that is causing the problem is:
    >
    > use Text::CSV;

    ....
    >
    > The perl version is perl5.8.8 and I did install the package
    > perl-Text-CSV_XS that came with the Suse 10.1 distro.
    >
    > What am I missing here?


    What you are missing is that Text::CSV is not the same thing as
    Text::CSV_XS



    Xho

    --
    -------------------- http://NewsReader.Com/ --------------------
    Usenet Newsgroup Service $9.95/Month 30GB
     
    , Jun 15, 2006
    #2
    1. Advertising

  3. John Bokma Guest

    wrote:

    > Use Text::CSV;


    ^ no it isn't ;-)

    :
    :

    > The perl version is perl5.8.8 and I did install the package
    > perl-Text-CSV_XS that came with the Suse 10.1 distro.



    What does:

    perl -MText::CVS -e1

    on the command line give?


    --
    John Bokma Freelance software developer
    &
    Experienced Perl programmer: http://castleamber.com/
     
    John Bokma, Jun 15, 2006
    #3
  4. Guest

    Thank you for your answer. This was the problem. It's working now.
    Thanks,
    --D

    wrote:
    > wrote:
    > ...
    > >
    > > The line that is causing the problem is:
    > >
    > > use Text::CSV;

    > ...
    > >
    > > The perl version is perl5.8.8 and I did install the package
    > > perl-Text-CSV_XS that came with the Suse 10.1 distro.
    > >
    > > What am I missing here?

    >
    > What you are missing is that Text::CSV is not the same thing as
    > Text::CSV_XS
    >
    >
    >
    > Xho
    >
    > --
    > -------------------- http://NewsReader.Com/ --------------------
    > Usenet Newsgroup Service $9.95/Month 30GB
     
    , Jun 16, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page