如何在cygwin安裝git-cola?

如何在cygwin安裝git-cola?

這可能是一個愚蠢的問題,但我無法讓它發揮作用。

知道它已被移植。我有成立來源和二進位檔案。我已經下載了所有文件這裡並嘗試從下載目錄進行 cygwin 安裝。我還提取了來源並進行了嘗試make,但沒有任何效果。

Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.:    sudo apt-get install python-qt4

 

python setup.py build
PyQt4 version 4.4 or newer required.  Found None
Makefile:32: recipe for target `all' failed

我有套件“python-pyqt”,版本 4.9.6-1。我嘗試過重新安裝它等,谷歌搜尋也沒有幫助。

答案1

python-pyqt4 有一個大的依賴關係樹,如果您手動安裝這些套件,則可能會遺失一個或多個(子)依賴關係。

請關注 Cygwin Ports安裝說明,選擇git-cola安裝包,並確保允許setup.exe安裝全部當詢問時依賴項。

答案2

或者安裝 Windows 版本(依賴 pythonw 和 pyqt),它更簡單,而且看起來也不那麼糟糕。

https://github.com/git-cola/git-cola/blob/master/README.md#windows-installation

(獲取最新的 2.x x86_64 版本的 Python 和相應的 PyQt 版本 - 對我來說這是“PyQt4-4.10.3-gpl-Py2.7-Qt4.8.5-x64.exe”)

您可以輕鬆地從 cygwin 呼叫它,這是我將其作為“git-cola”放入 ~/bin 資料夾中的腳本(因此它位於 PATH 前面):

#!/bin/sh

GITCOLA=`which --skip-tilde git-cola`
GITCOLA_WIN=`cygpath -w "$GITCOLA"`

/cygdrive/c/Python27/python.exe "$GITCOLA_WIN" $@

相關內容