/usr/bin/pear: exec: line 28: /usr/bin/php: not found
Package php-pear
version 5.3.2-r8
When try to use: pear install MDB2
Say: /usr/bin/pear: exec: line 28: /usr/bin/php: not found
This is the /usr/bin/pear file content:
#!/bin/sh
- first find which PHP binary to use
if test “x$PHP_PEAR_PHP_BIN” != “x”; then
PHP=“$PHP_PEAR_PHP_BIN”
else
if test “/usr/bin/php” = ‘'php_bin'
’; then
PHP=php
else
PHP=“/usr/bin/php”
fi
fi
- then look for the right pear include dir
if test “x$PHP_PEAR_INSTALL_DIR” != “x”; then
INCDIR=$PHP_PEAR_INSTALL_DIR
INCARG=“-d include_path=$PHP_PEAR_INSTALL_DIR”
else
if test “/usr/share/pear” = ‘'php_dir'
’; then
INCDIR=`dirname $0`
INCARG=“”
else
INCDIR=“/usr/share/pear”
INCARG=“-d include_path=/usr/share/pear”
fi
fi
exec $PHP -C -q $INCARG -d output_buffering=1 -d variables_order=EGPCS
-d open_basedir=“” -d safe_mode=0 -d register_argc_argv=“On” -d
auto_prepend_file=“” -d auto_append_file=“” INCDIR/pearcmd.php “
@”
sip:~# ls /usr/bin/php
ls: /usr/bin/php: No such file or directory
sip:~# find / -name php
/media/md0/usr/lib/php
/media/md0/etc/php
/usr/lib/php
/etc/php
Thanks
(from redmine: issue id 399, created on 2010-08-07, closed on 2010-08-13)
- Changesets:
- Revision 3c24c458 on 2010-08-10T14:54:29Z:
main/php: php-pear should depend on php-cli
fixes #399