Page 1 of 1

Could not find Git / could not find Perl

Posted: Sat Apr 20, 2019 2:47 pm
by arnold.braun@gmx.de
Hello,
just now i download the current master version and if i compile i get the Warnings
missing PERL_EXECUTABLE
missing GIT_EXECUTABLE

How to do ?

thanks

Re: Could not find Git / could not find Perl

Posted: Sun Apr 21, 2019 8:31 am
by Ritesh
arnold.braun@gmx.de wrote:
Sat Apr 20, 2019 2:47 pm
Hello,
just now i download the current master version and if i compile i get the Warnings
missing PERL_EXECUTABLE
missing GIT_EXECUTABLE

How to do ?

thanks
If you are using Linux Ubuntu Build System then execute below command to install both packeges which are required using root access.

apt-get install perl
apt-get install git

Let me know if you are using any different build system.

Re: Could not find Git / could not find Perl

Posted: Mon Apr 22, 2019 12:05 am
by arnold.braun@gmx.de
Sorry, i forgot to tell. I´m using Windows.

Re: Could not find Git / could not find Perl

Posted: Mon Apr 22, 2019 3:59 am
by Ritesh
arnold.braun@gmx.de wrote:
Mon Apr 22, 2019 12:05 am
Sorry, i forgot to tell. I´m using Windows.
Ok. So, Are you using MSYS into Windows? If yes then you can install above packages using below commands

pacman --noconfirm -S --needed perl git

Let me know if any concern with that

Re: Could not find Git / could not find Perl

Posted: Mon Apr 22, 2019 1:10 pm
by arnold.braun@gmx.de
Hello, thanks for helping.

I don´t use msys. i just use this installation.

https://github.com/Deous/VSC-Guide-for-esp32

i just need to know which version of perl i have to install and if it is enough to put it into environment path or does it use a special environment var.

for what is perl used ?. because everything works. i just can not upload to spiffs.

thanks again

Re: Could not find Git / could not find Perl

Posted: Mon Apr 22, 2019 1:35 pm
by Ritesh
arnold.braun@gmx.de wrote:
Mon Apr 22, 2019 1:10 pm
Hello, thanks for helping.

I don´t use msys. i just use this installation.

https://github.com/Deous/VSC-Guide-for-esp32

i just need to know which version of perl i have to install and if it is enough to put it into environment path or does it use a special environment var.

for what is perl used ?. because everything works. i just can not upload to spiffs.

thanks again
Hi,

So, You have total 2 requirements in which one is git requirement. That requirement has been resolved or still open?

I think they might be using perl for some parsing mechanism internally but i am not sure for that.

Re: Could not find Git / could not find Perl

Posted: Tue Apr 23, 2019 4:58 am
by ESP_Angus
Hi Arnold,
arnold.braun@gmx.de wrote:
Mon Apr 22, 2019 1:10 pm
I don´t use msys. i just use this installation.

https://github.com/Deous/VSC-Guide-for-esp32
This third party guide is pretty old. It mentions the feature/cmake branch, this branched was merged to master last September.

If you're using the current master branch of ESP-IDF, I suggest following the entire official CMake Getting Started guide from here:
https://docs.espressif.com/projects/esp ... ted-cmake/

Once those steps are finished try picking up VSCode integration based on the above link, starting from after the ESP-IDF installation part.

You may also want to report the issues to the author of that guide.
arnold.braun@gmx.de wrote:
Mon Apr 22, 2019 1:10 pm
for what is perl used ?. because everything works. i just can not upload to spiffs.
ESP-IDF doesn't use Perl directly and I don't think VSCode uses Perl either. However I think Git does use Perl internally.

EDIT: My colleague reminds me that we build mbedTLS under CMake using their CMakeLists file, and this will use Perl if it's available and warn if it is not available. But the build should succeed in either case.

I think the GIT_EXECUTABLE error may be coming from CMake, but I'm not sure about PERL_EXECUTABLE. It's hard to tell without any context for the error messages.

Re: Could not find Git / could not find Perl

Posted: Wed Apr 24, 2019 1:16 pm
by arnold.braun@gmx.de
Ok, thanks.

i will make a new installation with cmake, just in case.

Re: Could not find Git / could not find Perl

Posted: Wed Feb 05, 2020 7:01 pm
by sergiomarina
Hello,
I have just create the IDF environment with the std setup https://dl.espressif.com/dl/esp-idf-tools-setup-2.2.exe
Using the script "idf.py menuconfig" or "idf.py build" I get (among several other logs) the following:
"Could NOT find Perl (missing: PERL_EXECUTABLE)"
Unfortunately I have not received yet the ESP and therefore I have not uploaded the build so I can't say if this error is affecting or not.
Should I fix it? If so, could you, please, explain how?
Thank you and best regards, s.

Re: Could not find Git / could not find Perl

Posted: Thu Feb 06, 2020 7:21 am
by ESP_Angus
Hi Sergio,
sergiomarina wrote:
Wed Feb 05, 2020 7:01 pm
Using the script "idf.py menuconfig" or "idf.py build" I get (among several other logs) the following:
"Could NOT find Perl (missing: PERL_EXECUTABLE)"
You can ignore this line in the log.

ESP-IDF uses the mbedTLS library and we include it's CMake files directly, and one of them checks for Perl. Nothing in ESP-IDF actually needs Perl, though (it's used by some mbedTLS features that we don't use)! We can't remove this check because mbedTLS is maintained by a third party, not us.

If everything else appears to be succeeding, there is nothing to worry about (and if idf.py is failing, there will be another error message which is related to the actual problem).