Opened 18 years ago

Closed 18 years ago

#9029 closed defect (invalid)

gd fails on current perl5 port

Reported by: blenko@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: markd@…
Port:

Description

The symptom is that "/opt/local/bin/perl -e 'use GD;'" fails with error

Can't locate GD.pm in @INC (@INC contains: /opt/local/lib/perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) at -e line 1. BEGIN failed--compilation aborted at -e line 1.

on new perl5.8 ports installed today, to both OSX Server 10.3.9 and OSX Server 10.4.5.

There is a report of similar symptoms from 6/2005 (Bugzilla 3548) whose status is shown as fixed.

The same problem does not occur on the Apple 10.3.9 perl release, reported by "/usr/bin/perl -V" as "perl5 (revision 5.0 version 8 subversion 1 RC3)", but does appear on the Apple 10.4.5 perl release, reported by "/usr/bin/perl -V" as "perl5 (revision 5 version 8 subversion 6)".

Change History (3)

comment:1 Changed 18 years ago by markd@…

Cc: markd@… added

What is the output of 'port contents p5-gd'?

comment:2 Changed 18 years ago by blenko@…

"port contents p5-gd" returns "Port p5-gd is not installed." on both 10.3.9 and 10.4.5 systems.

After "port install p5-gd" the problem reported was resolved on both systems.

Neither "port search perl" nor "port search '*perl*'" returns a p5-gd port (nor does "port variants perl5.8"). Perhaps they should to head off similar future pilot error.

comment:3 Changed 18 years ago by markd@…

Resolution: invalid
Status: newclosed

The p5-gd port should be listed as a dependency of any port that relies on it, but not the perl package itself. If you need p5-gd for use in your own development purposes, you just have to remember to install it separately because it is independent of perl.

The string 'perl' is only used in perl module ports if the author of the module used 'perl' in the module name. So 'port search p5' will give you a complete list of perl modules available.

Note: See TracTickets for help on using tickets.