Michael Brenndoerfer
Michael Brenndoerfer

Reputation: 4066

Building Qt5 Git / Perl - path

I have a little comprehension problem.

In the Qt Wiki is written that I have to:

Hint: Make sure that Perl is added to the path in front of git since that ships an outdated version (Perl 5.8), which will cause the scripts to fail.

But what does this exactly mean? Does it mean the PATH variable? It contains the following items:

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 in front of git? I don't know what that means

Regards

Upvotes: 6

Views: 5571

Answers (4)

The Quantum Physicist
The Quantum Physicist

Reputation: 26256

Here's the simplest solution:

Assuming that you installed some up-to-date version of Perl and it is already in PATH, simply go to where GIT executables are is, which is normally

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

and rename perl.exe to perl1.exe. If you really are so unhappy about this, rename it back after you're done with whatever is getting the problem.

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

PS: It worked with me :-)

Upvotes: 1

Thomas
Thomas

Reputation: 303

My solution:

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.

Upvotes: 2

JumuFENG
JumuFENG

Reputation: 51

I get the same problem, i installed the perl 5.16.3. but the perl -v shows 5.8.8, I looked into the perl's 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 runs OK!

Upvotes: 5

Borodin
Borodin

Reputation: 126722

If the command processor doesn't find a program in the current directory, it will check each of the directories in the PATH environment variable and execute the first one it finds. What the wiki is saying is that, because the git installation contains an outdated version of Perl, if the git directory appears first in the PATH list then it will be chosen instead of any other installed version of Perl.

git doesn't appear in your PATH so the problem doesn't arise. In any case the entries for Perl are right near the beginning of the list, so the installed Perl will be chosen before anything else.

Upvotes: 6

Related Questions