系统:
Red Hat Enterprise 6.5
gcc version 4.8.5 (GCC)
Anaconda 2.5:
conda 4.4.4
x86_64-conda_cos6-linux-gnu-gcc:gcc version 7.2.0
x86_64-conda_cos6-linux-gnu-c++:gcc version 7.2.0
$ conda install STAMP
$ which STAMP
/Bio/home/shenweiyan/software/Anaconda2/bin/STAMP
$ STAMP
Traceback (most recent call last):
File "/Bio/home/shenweiyan/software/Anaconda2/bin/STAMP", line 32, in <module>
from stamp import STAMP
File "/Bio/home/shenweiyan/software/Anaconda2/lib/python2.7/site-packages/stamp/STAMP.py", line 38, in <module>
from stamp.GUI.plotDlg import PlotDlg # forward reference so py2app recognizes this file is required
File "/Bio/home/shenweiyan/software/Anaconda2/lib/python2.7/site-packages/stamp/GUI/plotDlg.py", line 24, in <module>
from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4
$ wget https://nchc.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.12.1/PyQt4_gpl_x11-4.12.1.tar.gz
$ tar zvxf PyQt4_gpl_x11-4.12.1
$ cd PyQt4_gpl_x11-4.12.1
$ python configure.py
Error: This version of PyQt requires SIP v4.19.1 or later
$ pip install SIP
Collecting SIP
Could not find a version that satisfies the requirement SIP (from versions: )
No matching distribution found for SIP
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ cd PyQt4_gpl_x11-4.12.1
$ python configure.py --verbose
Determining the layout of your Qt installation...
/Bio/home/shenweiyan/software/Anaconda2/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../../../Anaconda2/include/qt -I../../../Anaconda2/include/qt/QtCore -I. -I../../../Anaconda2/mkspecs/linux-g++ -o qtdirs.o qtdirs.cpp
g++ -Wl,-O1 -Wl,-rpath,/Bio/home/shenweiyan/software/Anaconda2/lib -o qtdirs qtdirs.o -L/Bio/home/shenweiyan/software/Anaconda2/lib -lQt5Core -lpthread
/Bio/home/shenweiyan/software/Anaconda2/lib/libQt5Core.so: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
/Bio/home/shenweiyan/software/Anaconda2/lib/libQt5Core.so: undefined reference to `operator delete[](void*, unsigned long)@CXXABI_1.3.9'
/Bio/home/shenweiyan/software/Anaconda2/lib/libQt5Core.so: undefined reference to `operator delete(void*, unsigned long)@CXXABI_1.3.9'
collect2: error: ld returned 1 exit status
make: *** [qtdirs] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
$ python configure.py -q /Bio/home/shenweiyan/software/Qt-4.8.3/bin/qmake
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9.5 (licensed under the GNU General Public
License) for Python 2.7.3 on linux2.
Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
Do you accept the terms of the license? yes