php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56724 .so will not load
Submitted: 2005-12-15 14:05 UTC Modified: 2006-02-14 15:47 UTC
From: sunadmn at gmail dot com Assigned:
Status: Not a bug Package: expect (PECL)
PHP Version: 5.1.1 OS: gentoo
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sunadmn at gmail dot com
New email:
PHP Version: OS:

 

 [2005-12-15 14:05 UTC] sunadmn at gmail dot com
Description:
------------
PECL package will not load:

hwm06 src # php -m
PHP Warning:  PHP Startup: Unable to load dynamic library './expect.so' - ./expect.so: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
ctype
curl
date
dom
iconv
libxml
mysql
pcre
PDO
pdo_sqlite
posix
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml

[Zend Modules]

hwm06 src # pear list
PHP Warning:  PHP Startup: Unable to load dynamic library './expect.so' - ./expect.so: cannot open shared object file: No such file or directory in Unknown on line 0
Installed packages, channel pear.php.net:
=========================================
Package           Version   State
Archive_Tar       1.3.1     stable
Console_Getopt    1.2       stable
HTML_TreeMenu     1.2.0     stable
HTTP_Request      1.3.0     stable
Net_Socket        1.0.6     stable
Net_URL           1.0.14    stable
PEAR              1.4.5     stable
Services_Pingback 0.2.0dev2 devel
System_ProcWatch  0.4.2     beta
XML_Parser        1.2.7     stable
XML_RPC           1.4.4     stable
XML_Tree          2.0.0RC2  beta
expect            0.2       beta


hwm06 src # expect -v
expect version 5.43.0


Configure Command 	 './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/bin/mysql' '--with-curl=/usr/bin/curl' '--with-expect=/usr/bin/expect'




Reproduce code:
---------------
<?php
ini_set ("expect.loguser", "Off");

$stream = popen ("expect://ssh root@rlocalhost uptime", "r");

$cases = array (
         array (0 => "password:", 1 => password)
         );

switch (expect_expectl ($stream, $cases)) {
   case PASSWORD:
   fwrite ($stream, "password\n");
   break;

   default:
   die ("Error was occurred while connecting to the remote host!\n");
}

while ($line = fgets ($stream)) {
   print $line;
}
   fclose ($stream);
?>

Expected result:
----------------
returned uptime

Actual result:
--------------
[Thu Dec 15 11:59:19 2005] [error] [client my.host.com] PHP Fatal error:  Call to undefined function expect_expectl() in /var/www/localhost/htdocs/expect.php on line 10
sh: expect://ssh: No such file or directory


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-14 15:47 UTC] mike@php.net
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support/ as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

Set the right extension directory with

pear config-set ext_dir </ext/dir>
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Aug 26 10:01:28 2019 UTC