Search code examples
gitperforcep4vgit-p4

git-p4: fatal: git was built without support for git-p4 (NO_PYTHON=1)


I am trying to use git p4 on my Linux computer. But there seems to be a problem with git-p4 for some reason. When I run the git p4 command I get:

fatal: git was built without support for git-p4 (NO_PYTHON=1)

Any idea why this message is being displayed? Is there anyway I can fix it?

I am using an Ubuntu distribution with Kernel version 3.11.0.

Thank you in advance.


Solution

  • You could download the git-p4.py file and move it to the right directory:

    wget http://git.kernel.org/cgit/git/git.git/plain/git-p4.py?id=master -O git-p4 && chmod +x git-p4
    sudo mv git-p4 /usr/lib/git-core/