blitz 学习笔记

据说php模板引擎blitz快如闪电,正所谓世间功夫为快不破,何不潜修一番,怎奈一开始就遇到了难题。

想办法下载了源码压缩包 blitz-0.8.10.tar.gz,开始解压 tar -zxvf blitz-0.8.10.tar.gz,然后报错:

root@bamboo:/mnt/share/src# tar -zxvf blitz-0.8.14.tar.gz 
tar: 它似乎不像是一个 tar 归档文件
tar: 跳转到下一个头
tar: 由于前次错误,将以上次的错误状态退出

后求助于网络,得如下步骤:

root@bamboo:/mnt/share/src# gzip -d blitz-0.8.14.tar.gz 
root@bamboo:/mnt/share/src# ls
blitz-0.8.14.tar  
root@bamboo:/mnt/share/src# tar xvf blitz-0.8.14.tar

先使用gzip解包得文件blitz-0.8.14.tar,再对该文件使用tar来解压缩,遂得到源码文件列表。

再接下来就是例行公事:

root@bamboo:/mnt/share/src/blitz-0.8.14# phpize5
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

root@bamboo:/mnt/share/src/blitz-0.8.14# ./configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
...

root@bamboo:/mnt/share/src/blitz-0.8.14# make && make install
...

root@bamboo:/mnt/share/src/blitz-0.8.14# vim /etc/php5/fpm/php.ini

修改完php.ini,重启php-fpm:

root@bamboo:/mnt/share/src/blitz-0.8.14# /etc/init.d/php5-fpm reload

查看phpinfo终于安装成功!

posted on 2015-01-13 15:56  古道倦马  阅读(708)  评论(0编辑  收藏  举报

导航