logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] Shebang problem: msg#00016

Subject: Re: [Module::Build] Shebang problem
Ken Williams wrote:

[scotchie:~/src/modules/ExtUtils-CBuilder] ken% ./Build test
t/01-basic....v-strings are deprecated at /usr/local/perl5.6.2/lib/5.6.2/darwin/Config.pm line 21. Perl lib version (v5.6.2) doesn't match executable version (v5.8.1) at /usr/local/perl5.6.2/lib/5.6.2/darwin/Config.pm line 21.

<snip>


Somehow when I let the kernel invoke /usr/local/perl5.6.2/bin/perl through the shebang mechanism, it seems to be messing up its dynaloader load path or something. Anyone know what might be going on here, or in general what the difference is between the two invocations?

Actually I read that the other way; the shell is trying to run Perl 5.8.1 even though the shebang line points to 5.6.2, but with the -I path already set to 5.6.2. Is that path pointing to a symlink or an actual binary? Can you hardcode the path to the versioned executable (prolly /usr/local/perl5.6.2/bin/perl5.6.2) and see if that has any different behavior?

Can you put a 'warn $]' into the Build file just after the shebang line to see what version of Perl it thinks it is running at that point? This may be something strange about OS X, since I cannot get something similar (but simpler) to fail like that...

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>