We don't bite newbies here... much | |
PerlMonks |
Re: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/by roboticus (Chancellor) |
on Oct 26, 2017 at 13:31 UTC ( [id://1202067]=note: print w/replies, xml ) | Need Help?? |
I looked through the makefile to see where CacheMemory.pm was used after Gofer/Policy/Base.pm and couldn't find that sequence. I didn't see anything obvious in the makefile. (I've not debugged module installations in any detail, though, so not much would be obvious to me.) (Note: By the way, putting the makefile in pastebin is considered bad form here, as the link could go stale and make this thread useless to future people with the same or similar problem. You ought to wrap the makefile in <readmore><code> ... </code></readmore> tags to keep the data in the node. This way, the makefile is available to anyone who needs to dig through it, but not force all that to be displayed unless someone really wants to see it.) I don't have a system I can conveniently try to reproduce your problem, so I next looked at AutoSplit.pm and found the error message in the autosplit_file() subroutine, where the $file is an argument. It's called in two places (in v1.06 anyway): autosplit() and autosplit_lib_modules(). Since it seems likely that the second one is where the difficulty arises, I'd suggest putting print "<$_>\n"; just after the initial while statement so you can see what it's trying to do and see if there's some unusual filename that's confusing it. In cases like this, I'll frequently also drop a print "autosplit beg\n"; at the beginning of the subroutine and print "autosplit end\n"; at the end of the routine, just to put a "wrapper" around it to ensure that the error actually appears within the subroutine (rather than shortly afterwards, for example). That way, if the autosplit() call was the culprit rather than the suspected autosplit_lib_modules() subroutine, you'd see the error without the wrapper tags. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|