Perl >> CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by marmot101 » Thu, 24 Jul 2003 00:48:29 GMT

Hi,

I just installed Redhat Linux 9.0, which include perl-5.8.0. However, when I
run a perl program begin with:
use CGI /:standard/;

System complains: Can not locate CGI.pm ...

I went to perl directory: /usr/lib/perl5/5.8.0. There is no CGI.pm, but
there is a CGI.pm.newcgi. What should I do? rename this CGI.pm.newcgi to
CGI.pm? that sounds weird ...

Anyone can give me some suggestion?

Thanks!




Perl >> CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by James Willmore » Thu, 24 Jul 2003 13:06:38 GMT


> use CGI /:standard/;

try:
use CGI qw/:standard/;

Looks like you forgot the qw


'.pm' files are going to be located, typically, in your @INC
directories, so you won't see it in the place you were looking. But,
if you REALLY want to find the exact location of the file, type:

perldoc -l CGI

HTH

Jim



Perl >> CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by tadmc » Thu, 24 Jul 2003 21:10:56 GMT






You should always enable warnings when developing Perl code!


--
Tad McClellan SGML consulting
XXXX@XXXXX.COM Perl programming
Fort Worth, Texas


CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by Dan Wilga » Thu, 24 Jul 2003 22:13:06 GMT

I would also strongly recommend you use CPAN to upgrade to the latest
version of CGI.pm. The installation that comes with RH 9.0 seems to be
incomplete.

use either:

cpan

or

perl -MCPAN -e shell

and then "install CGI".

--
Dan Wilga XXXX@XXXXX.COM
** Remove the -MUNGE in my address to reply **


CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by James Willmore » Fri, 25 Jul 2003 00:25:08 GMT



Okay - I see you're a 'newbie' to Perl. I suggest you start reading
the documentation.

@INC is not a file or directory on the filesystem. It's internal to
Perl. It's an array of directories where Perl can find modules that
have been installed, as well as other files needed to run scripts.

perldoc is the command to use to see the Perl documentation. You can
use the man command on Linux, but it's better to use the perldoc
command IMHO. Start with

perldoc perl

This will give a listing of all the other documents you can view to
get information on using Perl.

HTH

Jim


CGI.pm problem under Redhat Linux 9.0 (perl-5.8.0)

by Akop Pogosian » Tue, 29 Jul 2003 07:30:57 GMT








Possibly, RedHat has packaged CGI.pm as a separate rpm package, the
way they already do with other popular perl modules, and this package
has not been installed. Take a look at your install media to see if
there is an rpm package named Perl-CGI or similar.

--
Akop Pogosian

This space has been accidentally left blank.


Similar Threads

1. RedHat 9.0 Cannot get perl cgi to work with Apache

2. Problem installing Perl-RPM module on a RedHat 9.0

3. Cannot find Perl-Tk in redhat 9.0

4. RedHat Linux 8.0, libgd, GD.pm...

5. Problem with Storable.pm (.xs), Perl 5.8.0, Redhat 9

6. Problems finding gd.pm in perl 5.8.6 using linux

7. Asus P4C800 linux (mdk9.1 or Redhat 9.0) problem

"Pascal PELLEAU" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> Hi,
>
> I am trying to install mdk9.1 on a Asus P4C800 Motherboard, but it
> did not work correctly.
>
> THe PC configuration is :
>      - Asus P4C800
>      - S-ATA Western digital 36Go   (for the systeme)
>      - P-ATA Western digital 200Go  (for the data)
>      - P-ATA DVD pioneer
>      - Piv 3GHz FSB 800
>      - 2 * 512 Mo Corsair DDR-SDRAM 3200
>      - Suma GeForce 2
>
> I configure the bios to use the serial ata as the firt ide
>
> The installation of the mdk9.1 (entreprise) is ok. the boot is ok
> the connexion with the root user is ok. I just have to install
> the network module.
>
>
>
> But  with drakconf / harddrake there is only one processor and the
> when i am trying to read a cd, the DVD drive did not work there is the
> message : i/o error
>
>
> does someone install MDK9.1 on a P4C800 deluxe motherboard with succeesss
?
>
> thanks Pascal


Not Mandrake...but Fedora Core (Yarrow).

Settings were as follows:

IDE Configuration: Compatible Mode/Parallel Ports Only (no SATA support)
Onboard Promise Controller: IDE
Drives are: 80 GB WD Caviar SE (all-NTFS) on the Promise
Pioneer 16x DVD-ROM (primary master)
Optorite 48x24x48 CD-RW (primary slave)
40 GB WD Caviar (secondary IDE)

The limitation is the severe lack of built-in SATA support in the 2.4.x
kernels *earlier* than 2.4.21!

You need an MP kernel to support HT (Fedora Core includes MP and SP kernels;
so does Mandrake, so check to see which kernel you are booting with!)

System is as follows:

ASUS P4C800-E Deluxe
2.6 GHz P4C/HT
512 MB DDR333
ATI AIW 9700 Pro
Sound Blaster Audigy 2 ZS
Onboard Intel Gig-E
Dual FireWire (one onboard, one on the ZS)


Christopher L. Estep




8. Instaling cgi.pm on Redhat 9 - Perl