当前位置: 首页 > 工具软件 > TreeLine > 使用案例 >

Fedora 7 下日记本TreeLine的安装

仉刚洁
2023-12-01

Tree Line的安装

花蘑菇

2007/7/29


.下载

http://bellz.org/treeline/download.html (http://bellz.org/treeline/require.html)

最新稳定版本为treeline-1.0.2.tar.gz(356KB)

最新开发版本为treeline-1.1.9.tar.gz(464KB)


我下载了1.1.9的版本.

其软件包要求为:

The unstable development version of TreeLine requires the following libraries and programs:

  • Qt Version 4.1 or higher

  • Python Version 2.3 or higher

  • PyQt Version 4.0 or higher (see Riverbank for more information)

  • An XML parser is required, such as the expat library or the PyXML package

  • If spell checking capability is desired, either the aspell (preferred) or ispell programs are required (these are packaged with most distributions)


解压:

tar xzvf treeline-1.1.9.tar.gz

得目录TreeLine

进入TreeLine

cd TreeLine

打开目录doc下的README.html,用浏览器打开,按照里面的步骤安装


.安装

只需要在TreeLine目录下执行python install.py

(其中install.pyTreeLine目录下的文件,此目录下还有uninstall.py文件.)

执行结果失败,显示

Python Version 2.5.0->OK

Sorry,Qt Version 4.1 or higher and PyQt Version 4.0 or higher are required.


.Qt 4安装

1.下载

http://www.trolltech.com/download/opensource.html网站点选Qt Downloads,然后Qt/X11 Open Source Edition,在下面的网页中选择一个地址下载,得到文件:qt-x11-opensource-src-4.3.0.tar.gz,40MB,将此文件放到/tmp.

这是最新版本.


2.解压

进入/tmp目录,用下面命令解压qt-x11-opensource-src-4.3.0.tar.gz

tar xzvf qt-x11-opensource-src-4.3.0.tar.gz

得目录 qt-x11-opensource-src-4.3.0


cd qt-x11-opensource-src-4.3.0进入目录


解压的目录下有文件INSTALL,里面有安装提示.


3.安装(root登录)

执行:

./configure

缺省情况下Qt被安装在/usr/local/Trolltech/Qt-4.3.0的目录下,如果想改变目录,可在./configure后加-prefix 选项,选项可用./configure -helpr查睦.


提示是否同意相关协议,键入yes.配置时间约五分钟.

然后提示配置好了,gmake来进行编译,编译结束后用gmake install来安装.

Qt is now configured for building.Just run 'gmake'.

Once everything is built,you must run 'gmake install'.

Qt will beinstalled into /usr/local/Trolltech/Qt-4.3.0


To reconfigure,fun'gmake confclean'and 'configure'.



键入命令gmake

然后就开始漫长的编译了.约个小时.然后

gmake install

提示要用root执行.几分钟后OK.



4.若要在同样路径中重新配置或编译Qt,则要在编译目录中用

make confclean

然后再configure重新配置脚本.




.PyQt 4安装

安装PyQt需要先编译Qt,然后安装sip,最后再编译PyQt.

前面Qt已安装,现在来安装sip.

()安装SIP

1.下载SIP

http://riverbankcomputing.co.uk/sip/download.php

可下到最新版本的SIP,sip-4.6.tar.gz

解压tar xzvf sip-4.6.tar.gz 得目录sip-4.6

进入目录cd sip-4.6,根据README步骤安装


2.安装SIP

执行:

python configure.py

make

make install (root执行)

OK


()安装PyQt 4

yum可以找到PyQt,不过版本较低,3.17-1.fc7,qscintilla-devel,qscintillaexamples三个软件包.下面我们自己下载软件安装.


1.下载PyQt 4

http://www.riverbankcomputing.co.uk/pyqt/download.php下载

解压tar xzvf PyQt-x11-gpl-4.2.tar.gz

得到目录PyQt-x11-gpl-4.2

进入 目录

cd PyQt-x11-gpl-4.2

按照文件READEM步骤安装.


2.安装

执行python configure.by

提示出错:Error Failed to create ./qtdirs.Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicityly specify a working Qt v4 qmake.

原因是Qt编译狂慢,还没装好,要先装好Qt才好安装PyQt.

等待...

Qt装完后再执行python configure.by

又出错Error:Failed to create ./qtdirs. Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working Qt v4 qmake.

原来是因为PyQt默认Qt的安装路径是/usr/lib/qt-3.3/bin/qmake,而我们实际的安装路径是在/usr/local/Trolltech/Qt-4.3.0.可能通过选项来指明实际的安装路径.

python configure.py -h可以查看帮助,其中-q选项是用来指定qmake的路径的.

于是重新执行python configure.py -q /usr/local/Trolltech/Qt-4.3.0/bin/qmake


提示询问是否接受license,键入yes同意.

make 也比较慢,22分钟.

make install

OK


关于PyQt 4的安装,参考http://www.mangbar.com/task/docview/5d023b210fd218fd010fd22aae190002


.继续安装TreeLine

进到TreeLine目录下执行python install.py (root)

OK


.使用TreeLine

直接命令treeline即可打开.

 

七.评价

好用,树形目录,支持中文,当然安装的是最新开发版,1.0.2的稳定版好像是不支持中文的,有一个语言支持包,只支持法语,德语,葡萄牙语,俄语和西班牙语.

缺点,安装够烦琐的.

 

八.日记小结

推荐TreeLine.

 
 类似资料: