so why is pear assuming incorrectly that the pear directory is at /usr/bin
root@debian:/home/eric# pear upgrade PEAR
/usr/bin/php: 1: cannot open ?php: No such file
/usr/bin/php: 2: Syntax error: word unexpected (expecting ")")
Presumably, this is why I am getting the "No such file" message below. Has anyone any suggestions?
root@debian:/home/eric# apt-get install php-pear
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
php5-dev
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/365 kB of archives.
After this operation, 2,609 kB of additional disk space will be used.
Selecting previously deselected package php-pear.
(Reading database … 124575 files and directories currently installed.)
Unpacking php-pear (from …/php-pear_5.3.3-7+squeeze3_all.deb) …
Setting up php-pear (5.3.3-7+squeeze3) …
root@debian:/home/eric# pear upgrade PEAR
/usr/bin/php: 1: cannot open ?php: No such file
/usr/bin/php: 2: Syntax error: word unexpected (expecting ")")
root@debian:/home/eric#
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have installed PHPUnit successfully on my Windows XP 64bit system.
I have failed to install PHPUnit on my Debian Linux 64bit system.
I have added my php directory ( i.e. /usr/share/php) to my $PATH as follows :-
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/share/php
so why is pear assuming incorrectly that the pear directory is at /usr/bin
root@debian:/home/eric# pear upgrade PEAR
/usr/bin/php: 1: cannot open ?php: No such file
/usr/bin/php: 2: Syntax error: word unexpected (expecting ")")
Presumably, this is why I am getting the "No such file" message below. Has anyone any suggestions?
root@debian:/home/eric# apt-get install php-pear
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
php5-dev
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/365 kB of archives.
After this operation, 2,609 kB of additional disk space will be used.
Selecting previously deselected package php-pear.
(Reading database … 124575 files and directories currently installed.)
Unpacking php-pear (from …/php-pear_5.3.3-7+squeeze3_all.deb) …
Setting up php-pear (5.3.3-7+squeeze3) …
root@debian:/home/eric# pear upgrade PEAR
/usr/bin/php: 1: cannot open ?php: No such file
/usr/bin/php: 2: Syntax error: word unexpected (expecting ")")
root@debian:/home/eric#