开发者

Running genhtml using cygwin Perl.exe in Windows

I'm trying to run genhtml using perl.exe from Cygwin in Windows.

I have installed cygwin and placed genhtml in the bin directory of cygwin. I went to that directory and used the 开发者_开发百科command line in Windows:

perl genhtml abc.dat

where abc.dat is the name of the lcov file for genhtml.

However I got an error saying:

Reading data file abc.dat
genhtml: ERROR: cannot read file abc.dat!

I tried even with a blank file, but the same error returned. How do I get around this problem?

Thanks.


Is abc.dat in the cygwin/bin directory? If not genhtml won't find it unless you specify the full path.


It turned out that I do need to go to cygwin and run chmod 777 in the locationm of the .dat file in order to be able to run it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜