Can't locate NaturalDocs/Constants.pm

Support
Anonymous
2011-04-01
2012-09-14
  • Anonymous - 2011-04-01

    New to Natural Docs. Trying to run the bat file on a Win32 box. I've changed
    the bat script to point to the absolute path of the Natural Docs folder, as
    per here.
    Invoking the bat thru Eclipse. I get this error:

    Can't locate NaturalDocs/Constants.pm in @INC (@INC contains:.../usr/lib/perl5/5.8.8/msys..
    

    .

    Any help?

     
  • Greg Valure

    Greg Valure - 2011-04-01

    Try putting -IC:\Natural Docs\Modules between perl and the path to Natural
    Docs. That's a capital i (case matters) no space, then the path to Natural
    Docs' Modules folder, which may be different than my example depending on
    where you installed it. If that doesn't work try putting the path in quotes,
    such as

    perl -I"C:\Natural Docs\Modules" "C:\Natural Docs\NaturalDocs"
    
     
  • Anonymous - 2011-04-04

    Thanks, Greg. That fixed the import issue but unfortunately it exposed larger
    issues.

    I dug into it for a couple hours. My Perl is next to nil but I was able to
    isolate a few bugs, at least where running Natural Docs on a Windows 7 32-bit
    box is concerned. Those are:

    1. File->PathIsAbsolute() uses File::Spec->file_name_is_absolute() which returns

      undef

    for an absolute path on Win7.

    1. Settings->ConfigDirectory() uses FindBin (and its RealBin) which returns the user dir (but in Unix format) when it should be returning the Natural Docs's directory.

    The result of these bugs is that a Unix-style user dir directory is prepended
    to paths specified as Natural Docs's input parameters -or- assumed from core
    Perl modules, which results in many "file not found" errors during execution.

    This is as far as I can take this. Unfortunately, that means I won't be able
    to use Natural Docs on this Win7 box and I don't have the time nor the Perl
    experience to participate as a bug reporter.

     

Log in to post a comment.