QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1804|回复: 3

Magic 1.2 B4上安装 Eric3

[复制链接]
发表于 2004-11-28 17:01:49 | 显示全部楼层 |阅读模式
Magic 1.2 B4上安装 Eric3

Eric3,一个KDE下的Python IDE。喜欢的朋友可以安装了试试。

官方站:
http://www.die-offenbachs.de/detlev/eric3.html
Screenshots:
http://www.die-offenbachs.de/detlev/eric3-screenshots.html

Eric3的安装和运行需要你的系统先安装以下几个软件包(这里列出的是最新版本,按安装的先后顺序排列):
[code:1]
sip-4.1.1.tar.gz
qscintilla-1.61-gpl-1.4.tar.gz
PyQt-x11-gpl-3.13.tar.gz
[/code:1]

这三个软件包都可以在这里下载:
http://www.riverbankcomputing.co.uk

这里安装的是Eric3的最新版本:eric-3.5.0

安装各个软件包:
[code:1]
# 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
[/code:1]
 楼主| 发表于 2004-11-28 17:06:38 | 显示全部楼层
这个是用来下载并安装 Eric3 的shell脚本,在Magic 1.2 B4上测试通过,大家可以试试。
有问题的话,反馈给我,谢谢。 :-)

[code:1]
#!/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!"

[/code:1]
回复

使用道具 举报

发表于 2004-11-29 09:23:37 | 显示全部楼层
不错不错,精华!不知道在gnome里面好不好用。
回复

使用道具 举报

 楼主| 发表于 2004-11-29 13:44:42 | 显示全部楼层
[quote:5015ebcc41="EricNeon"]不知道在gnome里面好不好用[/quote]
gnome下还没试过,抱歉 :neutral:
不过,你可以试试,呵呵 :-)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-30 11:59 , Processed in 0.087319 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表