Magic 1.2 B4上安装 Eric3
Magic 1.2 B4上安装 Eric3Eric3,一个KDE下的Python IDE。喜欢的朋友可以安装了试试。
官方站:
http://www.die-offenbachs.de/detlev/eric3.html
Screenshots:
http://www.die-offenbachs.de/detlev/eric3-screenshots.html
Eric3的安装和运行需要你的系统先安装以下几个软件包(这里列出的是最新版本,按安装的先后顺序排列):
sip-4.1.1.tar.gz
qscintilla-1.61-gpl-1.4.tar.gz
PyQt-x11-gpl-3.13.tar.gz
这三个软件包都可以在这里下载:
http://www.riverbankcomputing.co.uk
这里安装的是Eric3的最新版本:eric-3.5.0
安装各个软件包:
# Step 1 : Install package sip-4.1.1.tar.gz
$ tar zxf sip-4.1.1.tar.gz
$ cd sip-4.1.1
$ python configure.py -l qt &&make
# make install <-- please do it as root
# Step 2 : Install package QScintilla
$ tar zxf qscintilla-1.61-gpl-1.4.tar.gz
$ cd qscintilla-1.61-gpl-1.4
$ cd qt
$ qmake qscintilla.pro &&make
# cp qextscintilla*.h $QTDIR/include <-- please do it as root
# cp qscintilla*.qm $QTDIR/translations <-- please do it as root
# /sbin/ldconfig <-- please do it as root
# Step 3 : Install package PyQt
$ tar zxf PyQt-x11-gpl-3.13.tar.gz
$ cd PyQt-x11-gpl-3.13
$ python configure.py && make
# make install <-- please do it as root
# Step 4 : Install package Eric3
$ tar zxf eric-3.5.0.tar.gz
$ cd eric-3.5.0
# python install.py <-- please do it as root
这个是用来下载并安装 Eric3 的shell脚本,在Magic 1.2 B4上测试通过,大家可以试试。
有问题的话,反馈给我,谢谢。 :-)
#!/bin/bash
# Purpose:Download all dependent packages and install eric3(a python ide) on Magic Linux 1.
2 Beta4.
# Author : VimChina -- A Magic Linux Fan. ^_^
export ROOTDIR=$(pwd)
function down(){
# URL to download these packages.
url_sip='http://www.river-bank.demon.co.uk/download/sip/sip-4.1.1.tar.gz'
url_qscintilla='http://www.river-bank.demon.co.uk/download/QScintilla/qscintilla-1.61-gpl-1.4.tar.gz'
url_pyqt='http://www.river-bank.demon.co.uk/download/PyQt/PyQt-x11-gpl-3.13.tar.gz'
url_eric='http://jaist.dl.sourceforge.net/sourceforge/eric-ide/eric-3.5.0.tar.gz'
# For package eric3 ,you can choose a mirror from this webpage:
# http://prdownloads.sourceforge.net/eric-ide/eric-3.5.0.tar.gz?download
# Download these packages.
for URL in $url_sip $url_qscintilla $url_pyqt $url_eric
do
PKG=$(basename $URL)
if [ -f $PKG ]
then
echo -e "\tPackage $PKG ... \t found"
else
echo "Package $PKG seem not exist,download it now."
echo "Please wait ..."
sleep 1
proz -r -k=4 $URL
fi
done
}
function PkgInstall(){
# Extracting all packages.
echo -e "\n\tScript is extracting all packages now.\n\tPlease wait ...\n"
tar zxf sip-4.1.1.tar.gz
tar zxf qscintilla-1.61-gpl-1.4.tar.gz
tar zxf PyQt-x11-gpl-3.13.tar.gz
tar zxf eric-3.5.0.tar.gz
# Install package sip-4.1.1
echo -e "\n\tInstall package sip-4.1.1.tar.gz now.\n\tPlease wait ...\n"
cd $ROOTDIR/sip-4.1.1&&python configure.py -l qt&&make&&make install&& \
echo -e "\n\tPackage sip-4.1.1.tar.gz has beed installed.\n"&&sleep 2
# Install package qscintilla-1.61-gpl-1.4
echo -e "\n\tInstall package qscintilla-1.61-gpl-1.4.tar.gz now.\n\tPlease wait ...\n"
cd $ROOTDIR/qscintilla-1.61-gpl-1.4/qt&& \
qmake qscintilla.pro&&make&& \
cp -f qextscintilla*.h $QTDIR/include&& \
cp -f qscintilla*.qm $QTDIR/translations&& \
/sbin/ldconfig&& \
echo -e "\n\tPackage qscintilla-1.61-gpl-1.4.tar.gz has beed installed.\n"&&sleep 2
# Install package PyQt-x11-gpl-3.13
echo -e "\n\tInstall package PyQt-x11-gpl-3.13.tar.gz now.\n\tPlease wait ...\n"
cd $ROOTDIR/PyQt-x11-gpl-3.13&& \
python configure.py &&make&&make install&& \
echo -e "\n\tPackage PyQt-x11-gpl-3.13.tar.gz has beed installed.\n"&&sleep 2
# Install package eric-3.5.0
echo -e "\n\tInstall package eric-3.5.0.tar.gz now.\n\tPlease wait ...\n"
cd $ROOTDIR/eric-3.5.0&&python install.py&& \
echo -e "\n\tPackage eric-3.5.0.tar.gz has beed installed.\n"&&sleep 2
}
# ------- main ----------
echo
# Step 1: Download all packages.
down&& \
# Step 2: Install all packages.
PkgInstall&& \
echo "All done!"
不错不错,精华!不知道在gnome里面好不好用。 不知道在gnome里面好不好用
gnome下还没试过,抱歉 :neutral:
不过,你可以试试,呵呵 :-)
页:
[1]