文章出处:http://hi.baidu.com/deacys/item/22d831e51bebfcf5e0a5d41f
由于网上很少有linux安装eric4的详细教程,大部分说得别人一头雾水。(没办法谁让别人是牛人,自己不是呢。)
所以找了很久后,总算安装上了,现在把安装的过程记录下来。留着以后自己重装系统的时候看。
话说,好记性不如烂笔头。
一、
安装SIP,是一个将python和c/c++库关联起来的工具,也是pyqt的依赖工具
http://www.riverbankcomputing.com/software/sip/download
make
注意:这里如果有g++:命令未找到的错误,那就是没有安装g++编译器,运行以下命令来安装:
sudo apt-get install g++
应该就好了,如果还没好,再安装这个:
sudo apt-get install pentium-builder
继续下一步
sudo make install
注意make有没有error,如果有Python.h未找到错误,说明没有安装对应python版本的dev包,解决方法是
sudo apt-get install python2.7-dev
当然你的python是什么版本就装什么
此外make install后包文件和解压的文件夹斗可以删除二、
输入:
sudo apt-get install libqt4-dev libqt4-debug libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig
如果提示libqt4-debug被引用。那就用libqt4-dbg替换掉。回车安装
三、安装QScintilla2:
地址:http://www.riverbankcomputing.com/software/qscintilla/download
cd QScintilla-gpl-2.7.1
cd Qt4Qt5
qmake qscintilla.pro
make
sudo make install
cd..
cd example-Qt4Qt5
qmake application.pro
make
Qt Designer Plugin:
cd..
cd designer-Qt4Qt5
qmake designer.pro
make
make install
四、安装PyQt4:
地址:http://www.riverbankcomputing.com/software/pyqt/download
cd PyQt-x11-gpl-4.10.1
sudo python3 configure.py
+++++++++++++++这里会问+++++++++++++++
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.10.1 (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,没办法,,NO就不让你装了
+++++++++++++++++++++++++++++++++++++
make
六、Python Bindings:
cd cd QScintilla-gpl-2.7.1
cd Python
sudo python configure.py
make
sudo make install
+++提示。如果configure.py无法make,,不妨用configure-old.py来make++++++++++++
五、安装Eric4:
地址:http://eric-ide.python-projects.org/eric-download.html
cd cd eric4.5.10
sudo python intall.py
--------------------------------------------------------------------------------
Checking dependencies
Python Version: 2.7.3
Found PyQt4
Found QtHelp
Found QScintilla2
Qt Version: 4.8.1
PyQt Version: 4.10.1
QScintilla Version: 2.7.1
All dependencies ok.
Compiling user interface files...
Compiling source files...
Installing eric4 ...
Installation complete.
++++++++++++如果要安装中文的话。记得下载eric的时候,一定要下载这个包eric4-i18n-zh_CN.GB2312-X.X.X.tar.gz+++++
x是你下载的eric版本。
另附:此处我已将第二步外的包下载共享到云盘里,找不到源的童鞋可到此处,「任君自取」