Categories: Linux筆記

CentOS6 with CutyCapt

vi /etc/yum.repos.d/atrpms.repo
[atrpms]
name=CentOS $releasever – $basearch – ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=1

[atrpms-testing]
name=CentOS $releasever – $basearch – ATrpms testing
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=1

yum install qt47 qt47-devel qt47-webkit qt47-webkit-devel
yum -y install subversion
yum -y install gcc+ gcc-c++
svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
vi /etc/profile
export QTDIR=/usr/lib64/qt47
export QTLIB=/usr/lib64/qt47/lib
export QTINC=/usr/lib64/qt47/include
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$PATH

mv cutycapt/CutyCapt /usr/local/cutycapt
cd /usr/local/cutycapt
qmake
make

wget http://www.flexthinker.com/wp-content/uploads/2009/11/xvfb-run.sh.txt
mv ./xvfb-run.sh.txt /usr/local/cutycapt/xvfb-run.sh
chmod u+x /usr/local/cutycapt/xvfb-run.sh
yum install xorg-x11-server-Xvfb
yum install cjkuni-ukai-fonts cjkuni-uming-fonts -y

yan

Share
Published by
yan
Tags: cutycapt