2016-05-15 92 views
0

我跟着在https://github.com/pyqt/python-qt5/wiki/Compiling-PyQt5-on-Ubuntu-12.04说明此错误:如何在Fedora 23(Python 2)上安装PyQt5?

$ python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib --verbose 
Querying qmake about your Qt installation... 
Determining the details of your Qt installation... 
/home/david/Qt5.3.1/5.3/gcc_64/bin/qmake -o qtdetail.mk qtdetail.pro 
make -f qtdetail.mk 
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../Qt5.3.1/5.3/gcc_64/mkspecs/linux-g++ -I. -I../../Qt5.3.1/5.3/gcc_64/include -I../../Qt5.3.1/5.3/gcc_64/include/QtCore -I. -o qtdetail.o qtdetail.cpp 
make: g++: Command not found 
qtdetail.mk:524: recipe for target 'qtdetail.o' failed 
make: *** [qtdetail.o] Error 127 
Error: Failed to determine the detail of your Qt installation. Try again using 
the --verbose flag to see more detail about the problem. 

有人能帮助我在这里?

谢谢。

编辑:我解决了这个通过安装gcc-c++与DNF,但现在我运行make时出现此错误:https://gist.github.com/TheInitializer/4edca67ee64bf7a86a850fe839985297

任何人都知道这是怎么回事?

+0

你有'g ++'吗? 'make:g ++:Command not found'似乎是可疑的。确认这个工作:'sudo apt-get install build-essential' 你应该可以从shell运行'g ++'命令。 –

+0

@busfault Fedora没有'apt'。你需要'dnf install gcc'左右... – Jakuje

+0

@Jakuje试过已经 – TheInitializer

回答

1

嗯,我有点感到愚蠢。

PyQt5有一个DNF包。

我刚刚跑了sudo dnf install PyQt5并安装好了。