[ANNOUNCEMENT] New package: cloc 1.55-1 -- Statistics utility to count lines of code.
Adam Dinwoodie
Adam.Dinwoodie@metaswitch.com
Mon Feb 27 17:11:00 GMT 2012
Frank Fesevur wrote:
> I just installed cloc and tried in on a small project I do, but I
> can't get it to work:
>
> Frank@PC205 /cygdrive/c/Source
> $ cloc NppSnippets/
> Can't open perl script "perl": No such file or directory
I've seen this too. It seems perl is getting upset by the shebang at the top
of the script. If you open `$(which cloc)` in your text editor of choice and
change the shebang from `#!/bin/perl perl` to just `#!/bin perl`, it seems to
work fine.
Where, by "work fine", I mean get further and bug out with a different error:
$ cloc
[FATAL] Perl CPAN modules are needed. Please install them with:
cpan Algorithm::Diff Regexp::Common
BEGIN failed--compilation aborted at /usr/bin/cloc line 73.
I'm not sure what I'm getting wrong here; there's nothing I can see that's
obviously missing from my install. I've attached a (redacted) cygcheck.out
in case anyone fancies a peruse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 178149 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120227/2723cb33/attachment.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list