X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/a65dd073cf59b10ea193633e6d98ee37cd71007b..d59b565b530c7334e24bf0ff2dbfcd76785000c6:/doc/bugs/2.45_Compilation_error.mdwn diff --git a/doc/bugs/2.45_Compilation_error.mdwn b/doc/bugs/2.45_Compilation_error.mdwn index e59cc891d..d6040904a 100644 --- a/doc/bugs/2.45_Compilation_error.mdwn +++ b/doc/bugs/2.45_Compilation_error.mdwn @@ -152,10 +152,30 @@ installation. Joey, should I email you the strace log file? > look for it when `perl -Iblib/lib -e 'use IkiWiki'` is straced. > > The only differences between the two calls to perl seem to be: -> * One runs `perl`, and the other `/usr/bin/perl` -- are these really the same program? +> * One runs `perl`, and the other `/usr/bin/perl` -- are these really +> the same program? Does `perl -lblib/lib ikiwiki.out -libdir . -setup docwiki.setup -refresh` +> fail the same way as the `/usr/bin/perl` variant? > * The `-libdir .`, which causes ikiwiki to modify `@INC`, adding "." to > the front of it. > > I'm entirely at a loss as to why I cannot reproduce this with the same > versions of perl and ikiwiki as the two people who reported it. There must > be something unusual about your systems that we have not figured out yet. --[[Joey]] + +Joey, thanks for your time and effort looking into this. + +I checked with `which`: `perl` is indeed `/usr/bin/perl`. The commands fail similarly when +calling `perl` and `/usr/bin/perl`. + +However, you might be into something with your `libdir` idea. If I remove it from the +command line, the command succeeds. In other words, if I run + + perl -Iblib/lib ikiwiki.out -setup docwiki.setup -refresh + +then it works perfectly. + +By the way, I'm running Arch linux. The perl build script is a bit long, but I +see they install a patch to modify @INC: + +Would you suggest I try rebuilding perl without this patch? Debian has a huge perl patch (102K!); +it's not straightforward for me to see if they do something similar to Arch.