|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2017-07-22 19:56 UTC] chris at kreuzberger dot cc
 Description:
------------
When trying to install pecl/ssh2 via "pear install pecl/ssh2-1.1.1", I get the following error:
ERROR: file /tmp/pear/temp/tmpgocDjp/ssh2-1.1.1/tests/ssh2_auth.phpt does not exist
According to the packages.xml, there should be the following files in the tgz which are missing:
    <contents>
        <dir name="/">
            ...
            <dir name="tests">
                <file role="test" name="ssh2_auth.phpt"/>
                <file role="test" name="ssh2_connect.phpt"/>
                <file role="test" name="ssh2_sftp_001.phpt"/>
                <file role="test" name="ssh2_sftp_002.phpt"/>
                <file role="test" name="ssh2_skip.inc"/>
                <file role="test" name="ssh2_test.inc"/>
            </dir>
        </dir>
    </contents>
Test script:
---------------
pear install pecl/ssh2-1.1.1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 00:00:01 2025 UTC | 
This is fixed with release 1.1.2. root@build-jessie:~# pear install pecl/ssh2-1.1.1 downloading ssh2-1.1.1.tgz ... Starting to download ssh2-1.1.1.tgz (27,551 bytes) .........done: 27,551 bytes ERROR: file /tmp/pear/temp/tmpc373X0/ssh2-1.1.1/tests/ssh2_auth.phpt does not exist root@build-jessie:~# pear install pecl/ssh2-1.1.2 downloading ssh2-1.1.2.tgz ... Starting to download ssh2-1.1.2.tgz (32,057 bytes) .........done: 32,057 bytes 6 source files, building running: phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 libssh2 prefix? [autodetect] : building in /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2 running: /tmp/pear/temp/ssh2/configure --with-php-config=/usr/bin/php-config --with-ssh2 checking for grep that handles long lines and -e... /bin/grep [**** cut some output here ****] /bin/bash /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/libtool --mode=install cp ./ssh2.la /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules libtool: install: cp ./.libs/ssh2.so /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/ssh2.so libtool: install: cp ./.libs/ssh2.lai /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules/ssh2.la libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules ---------------------------------------------------------------------- Libraries have been installed in: /tmp/pear/temp/pear-build-rootR6yINu/ssh2-1.1.2/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2" install Installing shared extensions: /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303/ running: find "/tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2" | xargs ls -dils 377669 4 drwxr-xr-x 3 root root 4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2 380559 4 drwxr-xr-x 3 root root 4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr 380561 4 drwxr-xr-x 3 root root 4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib 380562 4 drwxr-xr-x 3 root root 4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php 380564 4 drwxr-xr-x 2 root root 4096 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303 380556 264 -rwxr-xr-x 1 root root 264144 jul 23 17:27 /tmp/pear/temp/pear-build-rootR6yINu/install-ssh2-1.1.2/usr/lib/php/20160303/ssh2.so Build process completed successfully Installing '/usr/lib/php/20160303/ssh2.so' install ok: channel://pecl.php.net/ssh2-1.1.2 configuration option "php_ini" is not set to php.ini location You should add "extension=ssh2.so" to php.ini