When running a Perl Script that grabs content from an Oracle DB and exports the results into a CSV, I am getting this error when trying to run it via the command line:
Can't locate Text/CSV.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.16.2
/usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.16.2
/usr/lib/perl5/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/5.16.2
/usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/site_perl .) at
./OracleScript.pl line 4. BEGIN failed--compilation aborted at
./OracleScript.pl line 4.
I interpret this to mean that the Module is not installed. So, I tried to install it with the following command:
/usr/bin/perl -MCPAN -e'install Text::CSV_pm'
I get this error:
Database was generated on Mon, 06 Oct 2014 10:41:02 GMT Warning:
Cannot install Text::CSV_pm, don't know what it is. Try the command
i /Text::CSV_pm/
to find objects with matching identifiers.
Can anybody shed some light on my issues, and how to remedy this?
Given that you're using the system Perl (and, from a comment, it seems you have root) then the easiest approach is probably to install the package that is pre-built for your Linux distribution.
For a Debian/Ubuntu-based system:
$ sudo apt-get install libtext-csv-perl
For a RedHat/Centos/Fedora-based system:
$ sudo yum install perl-Text-CSV
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With