Building Qt5 Git / Perl - The Way

I have a little problem understanding.

The Qt Wiki says that I should:

Hint: make sure Perl is added to the path before git, since it has an outdated version (Perl 5.8) installed, which will lead to script failure.

But what does this mean? Does this mean the PATH variable? It contains the following elements:

C:\Python33\ C:\Perl64\site\bin C:\Perl64\bin C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files (x86)\AMD APP\bin\x86_64 C:\Program Files (x86)\AMD APP\bin\x86 %SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ C:\Program Files\Common Files\Autodesk Shared\ C:\Program Files\Microsoft\Web Platform Installer\ C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\ C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\ C:\Program Files (x86)\Autodesk\Backburner\ C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\ C:\Program Files\Microsoft SQL Server\100\Tools\Binn\ C:\Program Files\Microsoft SQL Server\100\DTS\Binn\ C:\Python33\Lib\site-packages\PyQt4 

Can someone tell me how to set the path before git? I do not know what it means.

Hi

+6
source share
4 answers

If the command processor does not find the program in the current directory, it checks each of the directories in the PATH environment variable and executes the first one found. What wiki says is that since the git installation contains an obsolete version of Perl, if the git directory appears first in the PATH list, then it will be selected instead of any other installed version of Perl.

git does not appear in PATH , so the problem does not occur. In any case, the entries for Perl are near the top of the list, so the installed Perl will be selected first.

+6
source

I get the same problem, I installed perl 5.16.3. but perl -v shows 5.8.8, I looked in the perl folder and found that there are two .exe files named perl.exe and perl5.16.3.exe. then I typed "perl5.16.3 init-repository", it works fine!

+5
source

My decision:

  1. Download and install the latest version of ActiveState perl (5.16.3 now)
 2. Copy the contents (replacing existing files) of 
 C: \ Perl 
 to 
 C: \ Program Files (x86) \ Git 
 (yeah, lots of crap but it doesn't matter)
 3. Uninstall ActiveState perl

 Result: you have an updated version of perl inside git.

+2
source

Here is the simplest solution:

Assuming you have installed some updated version of Perl and it is already in PATH, just go where the GIT executables are, which is usually

 C:\Program Files (x86)\Git\bin 

and rename perl.exe to perl1.exe . If you are really so unhappy with this, rename it back after you are done with what causes the problem.

Why does this solve the problem? Since your program will not find perl in the GIT directory and will try to find it somewhere else, and since you have the latest version of Perl in PATH, it will find it and everything will work.

PS: He worked with me :-)

+1
source

All Articles