我刚刚安装了 python-dev:
$ sudo apt-get install python-dev
这样我就可以开始使用 P4Python。但是当我尝试导入 P4 时,我得到:
Traceback (most recent call last):
File "/opt/pycharm-2.5/helpers/pycharm/utrunner.py", line 113, in <module>
modules = [loadSource(a[0])]
File "/opt/pycharm-2.5/helpers/pycharm/utrunner.py", line 44, in loadSource
module = imp.load_source(moduleName, fileName)
File "/home/nyap/proj/p4-rollback/Tools/Perforce/util/p4_rollback_unit_test.py", line 32, in <module>
import P4
File "/home/nyap/proj/p4-rollback/Tools/Perforce/p4python/build/lib.linux-x86_64-2.7/P4.py", line 312, in <module>
import P4API
ImportError: /home/nyap/proj/p4-rollback/Tools/Perforce/p4python/build/lib.linux-x86_64-2.7/P4API.so: undefined symbol: clock_gettime
我需要做什么才能使其正常工作?