From: John R. <jr...@ce...> - 2006-05-02 20:52:23
|
It's taken me a day to get the latest wxPerl CVS update running. The problem is that I set PREFIX when I run Makefile.PL, because I don't want a CVS build overwriting the distribution (yes, wxPerl is included in OSX 4) or release installations of wxPerl. The problem is that MakeMaker creates a file, wxPerl.c, by using the $ (INSTALLSITEARCH) Makefile variable (which is Mattia's doing, in build/Wx/build/MakeMaker/MacOSX_GCC.pm), and that when the PREFIX is set on the Makefile.PL command-line, MakeMaker builds it with quoting. That means that a filename string in wxPerl.c is written as "$(SITEPREFIX)/darwin-thread-multi-2level/auto/Wx/wxPerl.app/Contents/ MacOS/wxPerl". That string gets passed to execv, which tries to stat the file and fails, because the filesystem doesn't know about $ (SITEPREFIX). The easy solution is to also specify INSTALLSITEARCH on the command line. Since some installation things pay attention to INSTALLSITEARCH and others pay attention to PREFIX, it seems that the two should point to the same directory -- but I didn't test to see if that's the case. Mattia, it would be nice to add a note about this to INSTALL.pod. Regards, John Ralls |