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

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

  1. dacoman

    dacoman 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:
    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
     
    dacoman, Jun 15, 2006
    #1
    1. Advertisements

  2. dacoman

    xhoster Guest

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



    Xho
     
    xhoster, Jun 15, 2006
    #2
    1. Advertisements

  3. dacoman

    John Bokma Guest

    ^ no it isn't ;-)

    :
    :

    What does:

    perl -MText::CVS -e1

    on the command line give?
     
    John Bokma, Jun 15, 2006
    #3
  4. dacoman

    dacoman Guest

    Thank you for your answer. This was the problem. It's working now.
    Thanks,
    --D
     
    dacoman, Jun 16, 2006
    #4
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.