rjust / defects4j

A Database of Real Faults and an Experimental Infrastructure to Enable Controlled Experiments in Software Engineering Research
MIT License
684 stars 297 forks source link

Difficulty configuring Defects4J on Windows machine #560

Closed aiyaya50 closed 1 month ago

aiyaya50 commented 2 months ago

Hello, I have been receving an error prompt while trying to configure defects4J on windows PC. I installed the following requirements. Java 22 git version 2.44.0.windows.1 perl 5, version 38, subversion 2 (v5.38.2) SVN - TortoiseSVN 1.14.6.29673

I tried to run this command 'cpanm --installdeps . ' Error prompt- psxai4@LUIN79575 MINGW64 ~/datasets/defects4j (master) $ cpanm --installdeps . --> Working on . Configuring /c/Users/psxai4/datasets/defects4j ... OK ==> Found dependencies: DBD::CSV, JSON::Parse, DBI --> Working on DBD::CSV Fetching http://www.cpan.org/authors/id/H/HM/HMBRAND/DBD-CSV-0.60.tgz ... OK ==> Found dependencies: ExtUtils::MakeMaker, DBI --> Working on ExtUtils::MakeMaker Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.70.tar.gz ... OK Configuring ExtUtils-MakeMaker-7.70 ... OK Can't locate ExtUtils/Manifest.pm in @INC (you may need to install the ExtUtils::Manifest module) (@INC entries checked: FatPacked::42949911448=HASH(0xa0003a398) /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /c/Strawberry/perl/bin/cpanm line 119.

rjust commented 1 month ago

This looks more like a question for how to configure and run cpanm (or install Perl dependencies) in this particular environment. (Note that some packages require build tools such as make/gcc etc. being available; hard to tell whether this error is caused by missing tools or some package version incompatibility.)

If possible, you may want to run D4J under WSL or in a VM -- these options have reliably worked for other Windows users.

aiyaya50 commented 1 month ago

I run D4J in VM as suggested and work perfectly.

Thank you for the feedback.

rjust commented 1 month ago

Glad it's working!