2013-08-06 30 views
1

我在更新pecl inotify擴展時遇到問題。 但我認爲它適用於所有擴展。更新php擴展Ubuntu

我最近更新了我的服務器。 首先我得到了inotify.so沒有找到的錯誤。 所以我把它複製到新的PHP擴展目錄

@server:~# locate inotify.so 
/usr/lib/php5/20100525/inotify.so 
/usr/lib/php5/20121212/inotify.so 

,但現在我得到的錯誤:

PHP Warning: PHP Startup: inotify: Unable to initialize module 
Module compiled with module API=20100525 
PHP compiled with module API=20121212 
These options need to match 

讓我怎麼更新/重新安裝/重新配置這些擴展?

+0

您複製的'.so'文件不是針對特定版本的PHP製作的。 – PeeHaa

+0

但你明顯發現的另一個是;將其複製到位。 – tripleee

+0

「另一個」是我複製的那個。所以他們都建立20100525. 我如何做一個具體的這個PHP版本? –

回答

2

「長」的方式。

pecl uninstall inotify 

pecl install inotify 

應該有更好的方法來重新配置php擴展。對?!
但現在這個工作!