Michael Brenndoerfer
Michael Brenndoerfer

Reputation: 4066

Howto update Perl v5.8.8 for git?

I have following Problem.

I want to build Qt5 by my own, to be able to use it with Visual Studio 2012. I followed the instructions in the Qt Wiki.

My problem is that when I try to call init-repository

perl init-repository

I get following error:

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.

This is because the with git shipped perl version is 5.8.8. It doesn't matter, that I have the newest version installed.

Can someone tell me how to update my perl version inside git, to be able to build Qt5?

Regards

Upvotes: 0

Views: 1573

Answers (1)

Tim Henigan
Tim Henigan

Reputation: 62168

It sounds like you are working on Windows, I assume with some recent version of msysgit.

If you are using the shell that comes with msysgit, then it is likely that the shell has modified your PATH variable to put /bin ahead of /c/path/to/new/perl. You can check this by opening the shell and running echo $PATH or even which perl.

To make the shell use you 'new' perl, you can try the following:

export PATH=/c/path/to/new/perl:$PATH

Upvotes: 1

Related Questions