Swoole安装make报错 因为php-config配错
生活随笔
收集整理的這篇文章主要介紹了
Swoole安装make报错 因为php-config配错
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
報錯?
NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0方法
./configure少了--with-php-config=/usr/local/php-5.4.17/bin/php-config
系統(tǒng)中存在很多php-config? 找錯誤了? 所以報錯了! 只有一個的話 就不用了設(shè)置--with-php-config了
php版本和編譯時使用的phpize和php-config不對應(yīng),需要使用絕對路徑來進行編譯。使用絕對路徑執(zhí)行PHP。/usr/local/php-5.4.17/bin/phpize ./configure --with-php-config=/usr/local/php-5.4.17/bin/php-config /usr/local/php-5.4.17/bin/php server.php?
總結(jié)
以上是生活随笔為你收集整理的Swoole安装make报错 因为php-config配错的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么微粒贷无法通过评估 可能这几个原
- 下一篇: PHP的void mixed