PDA

View Full Version : [other] Missing Perl Mod Table.pm



BeartoothTech
May 10th, 2011, 05:56 PM
I am not sure this is the correct forum but please bear with me.

I have converted from an ancient release of Red Hat to Ubuntu 11.04. I have resolved most of the conversion problems except for one. A number of my CGI Scipts require the Perl Module Table.pm. It has not been installed. Where do I find that module and how can I install it?

:confused:

Lars Noodén
May 10th, 2011, 05:58 PM
A number of my CGI Scipts require the Perl Module Table.pm. It has not been installed. Where do I find that module and how can I install it?

:confused:

There should be a longer name, because there are many table.pm (http://packages.ubuntu.com/search?searchon=contents&keywords=Table.pm&mode=exactfilename&suite=natty&arch=any) files.

What do the require, use or include statements at the beginning of the program tell you? Those are the modules you need.

BeartoothTech
May 10th, 2011, 06:21 PM
There should be a longer name, because there are many table.pm (http://packages.ubuntu.com/search?searchon=contents&keywords=Table.pm&mode=exactfilename&suite=natty&arch=any) files.

What do the require, use or include statements at the beginning of the program tell you? Those are the modules you need.


The use modules are:

use strict;
use DBI;
use CGI qw(fatalsToBrowser);
use HTML::Table;


The message in the error.log is:

[Sun May 08 19:32:06 2011] [error] [client xxx.xxx.xxx.xxx] Can't locate HTML/Table.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /www/cgi/yellowstoneloon/cgi-bin/addlooninfo.cgi line 36.

[Sun May 08 19:32:06 2011] [error] [client xxx.xxx.xxx.xxx] BEGIN failed--compilation aborted at /www/cgi/yellowstoneloon/cgi-bin/addlooninfo.cgi line 36.


Thanks for the response.

Lars Noodén
May 10th, 2011, 06:24 PM
use DBI;
use CGI qw(fatalsToBrowser);
use HTML::Table;


It's probably DBI you're missing. It should be in libdbi-perl (http://packages.ubuntu.com/natty/libdbi-perl). See if it's installed.

Edit: Scratch that.

It's probably HTML::Table. That will be in libhtml-table-perl

BeartoothTech
May 10th, 2011, 06:34 PM
It's probably DBI you're missing. It should be in libdbi-perl (http://packages.ubuntu.com/natty/libdbi-perl). See if it's installed.

Edit: Scratch that.

It's probably HTML::Table. That will be in libhtml-table-perl


How can I get a list of packages that are installed? I am just starting with Ubuntu. I did a scan (find) of the system and Table.pm does not exist.

Also, how would I install the package?

Would I use "sudo apt-get libhtml-table-perl install"?

Lars Noodén
May 10th, 2011, 06:37 PM
Would I use "sudo apt-get libhtml-table-perl install"?



sudo apt-get install libhtml-table-perl libdbi-perl

Lars Noodén
May 10th, 2011, 06:40 PM
How can I get a list of packages that are installed?


dpkg -l |awk '/^ii/ { print $2 }'

or


dpkg -l |awk '/^ii.*-perl/ { print $2 }'

BeartoothTech
May 10th, 2011, 06:49 PM
dpkg -l |awk '/^ii/ { print $2 }'

or


dpkg -l |awk '/^ii.*-perl/ { print $2 }'



Thanks for your help. I added those two packages and everything worked.

:)