2013-03-20 115 views
1

我已经使用了这个功能,直到我在脸上蓝色 - 无论我尝试了什么,我似乎都无法安装bcompiler。不能安装bcompiler pecl扩展

我在Windows

# pecl install bcompiler 
downloading bcompiler-1.0.2.tgz ... 
Starting to download bcompiler-1.0.2.tgz (57,347 bytes) 
..............done: 57,347 bytes 
11 source files, building 
ERROR: The DSP bcompiler.dsp does not exist. 

我也尝试下载了延伸源和建设者,尽管这是一个小我的深度的运行XAMPP 1.8.1 - 然后我收到错误,从输出msdev不被理解。

我也试图要回XAMPP的几个版本并没有任何运气,但我真的想在PHP 5.4

赞赏任何帮助这个运行。

回答

1

只需从http://pecl.php.net/package/bcompiler

行动下载文件: - 只要确保,你读的输出,在一个点上,它会告诉你在哪里bcompiler.so文件已保存。

[email protected]# wget http://pecl.php.net/get/bcompiler-1.0.2.tgz 
[email protected]# tar -xvf bcompiler-1.0.2.tgz 
[email protected]# cd bcompiler-1.0.2 
[email protected]# phpize 
[email protected]# ./configure 
[email protected]# make 
[email protected]# make install 
[email protected]# make test 

如果不是bcompiler.so文件必须被放置到“内线”目录没有什么出了问题..

现在开始使用字节码编译,如果一切OK了:)

3

你可以做在Linux上安装字节码编译

[email protected]# wget http://pecl.php.net/get/bcompiler-1.0.2.tgz 

[email protected]# tar -xvf bcompiler-1.0.2.tgz 

[email protected]# cd bcompiler-1.0.2 

[email protected]# phpize 

[email protected]# ./configure 

[email protected]# make 

[email protected]# make install 

[email protected]# make test 

以下步骤最后你必须创建一个ini文件,里面bcompiler.ini

/etc/php5/apache2/conf.d 

,并添加此行

extension=bcompiler.so 

最后重新启动你的web服务器

将正常工作

+0

非常有帮助。谢谢... – 2014-08-08 13:13:20