【发布时间】:2015-02-24 10:52:25
【问题描述】:
在我的网络服务器上,我需要使用 ssh2。我尝试安装 libssh2-1、libssh2-1-dev 和 libssh2-php,重启 Apache2 后没有任何变化,当我想使用 ssh2_connect 函数时出现同样的错误。
为了解决我的问题,我尝试使用 PECL 安装 ssh2(来自本教程:http://lindev.fr/?post/2009/01/19/Installer-le-module-SSH2-pour-php),但是当我启动这个命令时:
phpize && ./configure --with-ssh2 && make
我遇到了这个错误:
PHP API 版本:20090626 Zend 模块 API 编号:20090626 Zend Extension API 编号:220090626 cp:无法统计
shtool': No such file or directory chmod: cannot access/usr/local/src/ssh2-0.11.0/build/shtool':没有这样的文件或目录 '/usr/local/src/ssh2-0.11.0/build/shtool' 处的 shtool 不存在或不可执行。 确保文件存在且可执行,然后重新运行此脚本。
有关信息,我使用 PHP5.3。 如何解决我的问题?
【问题讨论】:
-
文件
/usr/local/src/ssh2-0.11.0/build/shtool是否存在?如果是,它是可执行的吗?
标签: php apache zend-framework debian