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

D

dacoman

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
 
X

xhoster

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top