我正在尝试安装,经过几个小时的工作之后,我几乎已经找到了它。我认为。
它已经编译,ssh2.so位于正确的目录中。我相信,问题在于版本不匹配。
这是它为我说的错误:
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0我差不多是死路一条了。如何获得正确的ssh2模块API?
发布于 2012-01-15 23:58:47
韦普,我已经想通了。我安装了PEAR,然后使用pecl来安装它,以获得正确的API。
我是国王。
发布于 2012-02-18 17:53:06
如果通过PEAR安装不是一个选项,因为对我来说不是,但是在编译apache模块时仍然会遇到API错配错误,请理解必须使用正确的phpize:
phpize-5.3如果安装了多个php版本,则使用正确的配置选项:
./configure --with-php-config=/usr/local/php53/bin/php-confighttps://serverfault.com/questions/350153
复制相似问题