html5中文学习网

您的位置: 首页 > 网络编程 > PHP编程 » 正文

linux下安装网页截图软件CutyCapt CutyCapt,网页截图,linux

[ ] 已经帮助:人解决问题

 srKHTML5中文学习网 - HTML5先行者学习网

[shell]代码

安装网站截图软件CutyCapt   一,先安装Qt47增加qt47的下载源vi /etc/yum.repos.d/atrpms.repo[atrpms]name=CentOS $releasever – $basearch – ATrpmsbaseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stablegpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpmsgpgcheck=1enabled=1      [atrpms-testing]name=CentOS $releasever – $basearch – ATrpms testingbaseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testinggpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpmsgpgcheck=1enabled=1      yum updateyum installqt47yum installqt47-develyum installqt47-webkityum installqt47-webkit-devel也许这里还会有报错提示warning: qt44-x11-4.4.3-10_4.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 66534c2berror: Failed dependencies:        libGLU.so.1()(64bit) is needed by qt44-x11-4.4.3-10_4.el5.x86_64        libmng.so.1()(64bit) is needed by qt44-x11-4.4.3-10_4.el5.x86_64解决:yum -y installqt-devel* 二,安装 CutyCaptcd /data0/softwaresvn co https://cutycapt.svn.sourceforge.net/svnroot/cutycaptmv cutycapt/CutyCapt /usr/local/cutycaptcd /usr/local/cutycaptqmakemake此处可能会报错make: *** [CutyCapt] Error 1解决:yum update sqlite再次执行 make 如果还不成功 qmake-qt47 再次执行make 三,下载x-server wget http://www.flexthinker.com/wp-content/uploads/2009/11/xvfb-run.sh.txtmv ./xvfb-run.sh.txt/usr/local/cutycapt/xvfb-run.shchmodu+x /usr/local/CutyCapt/xvfb-run.sh  四,安装中文包yum installfonts-chinese  五,安装ImageMagickyum installImageMagick 六,测试: /usr/local/cutycapt/xvfb-run.sh --server-args="-screen 0, 1024x768x24"/usr/local/cutycapt/CutyCapt --url=http://www.163.com --out=/tmp/163.jpg 163.jpg没有加载出flash 七,下载64位flash插件:cd /data0/software#wget http://119.188.72.26/1/ishare.down.sina.com.cn/14036482.so?ssig=YB70Xk7Ph9&Expires=1340899200&KID=sina,ishare&ip=1340777795,114.255.44.&fn=libflashplayer.so<a href="http://ishare.iask.sina.com.cn/f/13659493.html" target="_blank">http://ishare.iask.sina.com.cn/f/13659493.html</a>ll /usr/lib64/mozilla/plugins/lrwxrwxrwx 1 root root 41 06-27 14:00 libflashplayer.so ->/usr/lib64/flash-plugin/libflashplayer.socp /data0/software/libflashplayer.so /usr/lib64/flash-plugin/ 测试加载成功

 srKHTML5中文学习网 - HTML5先行者学习网

PHP利用CutyCapt实现网页截图实例:http://niutuku.com/tech/php/273577.shtmlsrKHTML5中文学习网 - HTML5先行者学习网

(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助