2013-03-20 110 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