Michael G Schwern wrote:
MakeMaker will not work without $Config{archdir}/CORE/perl.h.  Period.
It just gives up and dies, won't even build the Makefile.

] sudo mv /System/Library/Perl/darwin/CORE/perl.h /tmp
] perl Makefile.PL


Error: Unable to locate installed Perl libraries or Perl source code.

  It is recommended that you install perl in a standard location before
  building extensions. Some precompiled versions of perl do not contain
  these header files, so you cannot build extensions. In such a case,
  please build and install your perl from a fresh perl distribution. It
  usually solves this kind of problem.

(You get this message, because MakeMaker could not find "/System/Library/Perl/darwin/CORE/perl.h")

This happens XS or not.

Later on it uses perl.h for some odd timestamp ritual in the Makefile.

config :: $(INST_AUTODIR)$(DIRFILESEP).exists
        $(NOECHO) $(NOOP)

$(INST_AUTODIR)/.exists :: /System/Library/Perl/darwin/CORE/perl.h
$(NOECHO) $(MKPATH) $(INST_AUTODIR)
$(NOECHO) $(EQUALIZE_TIMESTAMP) /System/Library/Perl/darwin/CORE/perl.h $(INST_AUTODIR)/.exists
-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_AUTODIR)


Is this trip really necessary?  What exactly is going on here and is it
relevant outside of a core build?

I ask because some vendors don't ship the perl headers.  Most recently I
got a scare when it appeared that Apple was not going to ship perl.h with
perl in 10.3 (its not, but it didn't in 10.2 either.  Its in devtools).

So I'd like to break this hard-wired dependency so MakeMaker can install
pure Perl modules without perl.h, but I don't want to just rip it out.

Andreas, do you know what this .exists stuff is all about?  It looks like
its checking to see if Perl got reinstalled.

I think it checks whether perl is more recent than Makefile and forces rebuild if that's the case. May be if perl.h is not there one should check whether $^X is newer than Makefile?



__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to