当尝试通过pecl安装ssh2扩展时,我遇到了以下错误消息。我正在使用基于
重现步骤: - 安装PHP 7.3.2 - 安装包
那么我该如何成功安装
php:7.3.2-fpm
的docker容器。重现步骤: - 安装PHP 7.3.2 - 安装包
libssh2-1-dev
和libssh2-1
- 尝试通过pecl install ssh2-1.1.2
安装ssh2扩展那么我该如何成功安装
ssh2
扩展呢?...
/tmp/pear/temp/ssh2/ssh2_fopen_wrappers.c: In function 'php_ssh2_fopen_wrapper_tunnel':
/tmp/pear/temp/ssh2/ssh2_fopen_wrappers.c:1265:42: error: invalid operands to binary == (have 'zend_string {aka struct _zend_string}' and 'int')
if (resource->path && resource->path[0] == '/') {
~~~~~~~~~~~~~~~~~ ^~
/tmp/pear/temp/ssh2/ssh2_fopen_wrappers.c:1268:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
host = resource->path + 1;
^
Makefile:196: recipe for target 'ssh2_fopen_wrappers.lo' failed
make: *** [ssh2_fopen_wrappers.lo] Error 1
ERROR: `make' failed
我在首次搜索的时候发现了这个问题未得到回答并被放置在超级用户上。我认为它更适合在这里发布。
ssh2.sftp://
包装器时,ssh2经常会给我带来段错误和更糟糕的问题。 - Marco