Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

pear and php in windows7 path

C:\Program Files (x86)\NuSphere>dir
 Volume in drive C is ACER
 Volume Serial Number is A4DC-28C4

 Directory of C:\Program Files (x86)\NuSphere

07/23/2011  12:42 PM    <DIR>          .
07/23/2011  12:42 PM    <DIR>          ..
03/17/2014  11:02 PM    <DIR>          PhpED
               0 File(s)              0 bytes
               3 Dir(s)   8,306,847,744 bytes free

C:\Program Files (x86)\NuSphere>cd phped

C:\Program Files (x86)\NuSphere\PhpED>dir
 Volume in drive C is ACER
 Volume Serial Number is A4DC-28C4

 Directory of C:\Program Files (x86)\NuSphere\PhpED

03/17/2014  11:02 PM    <DIR>          .
03/17/2014  11:02 PM    <DIR>          ..
03/17/2014  11:02 PM    <DIR>          php
03/17/2014  11:02 PM    <DIR>          php5
03/17/2014  11:02 PM    <DIR>          php54
               0 File(s)              0 bytes
               5 Dir(s)   8,306,847,744 bytes free

C:\Program Files (x86)\NuSphere\PhpED>cd php54

C:\Program Files (x86)\NuSphere\PhpED\php54>dir
 Volume in drive C is ACER
 Volume Serial Number is A4DC-28C4

 Directory of C:\Program Files (x86)\NuSphere\PhpED\php54

03/17/2014  11:02 PM    <DIR>          .
03/17/2014  11:02 PM    <DIR>          ..
03/17/2014  11:02 PM    <DIR>          extensions
03/17/2014  11:02 PM    <DIR>          extras
12/11/2013  02:22 AM         1,377,280 glib-2.dll
12/11/2013  02:22 AM            16,384 gmodule-2.dll
12/11/2013  02:22 AM        17,956,864 icudt49.dll
12/11/2013  02:22 AM         1,686,528 icuin49.dll
12/11/2013  02:22 AM            47,104 icuio49.dll
12/11/2013  02:22 AM           196,096 icule49.dll
12/11/2013  02:22 AM            44,032 iculx49.dll
12/11/2013  02:22 AM            55,808 icutest49.dll
12/11/2013  02:22 AM           147,456 icutu49.dll
12/11/2013  02:22 AM         1,289,728 icuuc49.dll
12/11/2013  02:22 AM            86,061 install.txt
12/11/2013  02:22 AM         1,020,416 libeay32.dll
12/11/2013  02:22 AM            43,008 libenchant.dll
12/11/2013  02:22 AM            44,544 libenchant_ispell.dll
12/11/2013  02:22 AM           293,888 libenchant_myspell.dll
12/11/2013  02:22 AM            97,792 libpq.dll
12/11/2013  02:22 AM            68,608 libsasl.dll
12/11/2013  02:22 AM             3,286 license.txt
12/11/2013  02:22 AM           421,664 news.txt
12/11/2013  02:22 AM                39 phar.phar.bat
12/11/2013  02:22 AM            53,240 pharcommand.phar
12/11/2013  02:22 AM            49,152 php-cgi.exe
12/11/2013  02:22 AM            26,624 php-win.exe
12/11/2013  02:22 AM            61,440 php.exe
12/11/2013  02:22 AM             2,523 php.gif
03/17/2014  11:02 PM            69,235 php.ini
04/30/2004  03:37 PM                 0 php.ini-bak
12/11/2013  02:22 AM            68,786 php.ini-development
12/11/2013  02:22 AM            68,818 php.ini-production
12/11/2013  02:22 AM            26,112 php5apache2_2.dll
12/11/2013  02:22 AM            23,552 php5apache2_2_filter.dll
12/11/2013  02:22 AM            26,624 php5apache2_4.dll
12/11/2013  02:22 AM            19,456 php5nsapi.dll
12/11/2013  02:22 AM         6,123,008 php5ts.dll
12/11/2013  02:22 AM               135 pws-php5cgi.reg
12/11/2013  02:22 AM               139 pws-php5isapi.reg
12/11/2013  02:22 AM            21,360 readme-redist-bins.txt
12/11/2013  02:22 AM             1,170 snapshot.txt
12/11/2013  02:22 AM           214,016 ssleay32.dll
03/17/2014  11:02 PM            19,641 unins000.dat
03/17/2014  11:02 PM           429,360 unins000.exe
03/17/2014  11:02 PM            21,091 unins000.msg
              42 File(s)     32,222,068 bytes
               4 Dir(s)   8,306,847,744 bytes free

C:\Program Files (x86)\NuSphere\PhpED\php54>php-cli.exe
'php-cli.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>php-win.exe

C:\Program Files (x86)\NuSphere\PhpED\php54>php -v
PHP 5.4.23 (cli) (built: Dec 11 2013 00:56:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with DBG v6.1.7, (C) 2000,2014, by Dmitri Dmitrienko

C:\Program Files (x86)\NuSphere\PhpED\php54>pear install html_quickform2
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>php pear install html_quickform2
Could not open input file: pear

C:\Program Files (x86)\NuSphere\PhpED\php54>pear -v
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>php pear -v
Could not open input file: pear

C:\Program Files (x86)\NuSphere\PhpED\php54>pear -V
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear list-all
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear info pear
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear info pear
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear list-all
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear -V
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>php pear install html_quickform2
Could not open input file: pear

C:\Program Files (x86)\NuSphere\PhpED\php54>pear install html_quickform2
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>pear -V
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>php -v
PHP 5.4.23 (cli) (built: Dec 11 2013 00:56:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with DBG v6.1.7, (C) 2000,2014, by Dmitri Dmitrienko

C:\Program Files (x86)\NuSphere\PhpED\php54>php -v
PHP 5.4.23 (cli) (built: Dec 11 2013 00:56:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with DBG v6.1.7, (C) 2000,2014, by Dmitri Dmitrienko

C:\Program Files (x86)\NuSphere\PhpED\php54>dir

Open in new window



for nusphere phped ide
pear is installed (using ide->settings->external tools)
how can I put php in windows7 path
how can I put pear in windows7 path
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Select Computer from the Start menu
Choose System Properties from the context menu
Click Advanced system settings > Advanced tab
Click on Environment Variables, under System Variables, find PATH, and click on it.
Click Modify button
At the end of the edit box add this string

';C:\Program Files (x86)\NuSphere\PhpED\php54;'

Be sure there is a semicolon between the end value of your path and the one you're adding.

Then click Ok, Ok.

Now, running command line you should be able to do

php -v

pear info pear

and get what you want
Avatar of rgb192

ASKER

C:\Program Files (x86)\NuSphere\PhpED\php54>php -v
PHP 5.4.23 (cli) (built: Dec 11 2013 00:56:37)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with DBG v6.1.7, (C) 2000,2014, by Dmitri Dmitrienko

C:\Program Files (x86)\NuSphere\PhpED\php54>pear info pear
'pear' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\NuSphere\PhpED\php54>
Mmmhh, I think are you sure Pear is installed, isn't it?
Personally, I use xampp and pear is in a directory wirhin php directory:

C:\xampp\php\pear

I see you don't have pear in the directories listed under C:\Program Files (x86)\NuSphere\PhpED, so I think pear isn't installed in your system, unless it don't be in another directory... Have you tried to use Windows search engine to look for pear installation in C:\?
Avatar of rgb192

ASKER

C:\Users\Acer\AppData\Roaming\PEAR

User generated image

do I add this:
Click on Environment Variables, under System Variables, find PATH, and click on it.




and this is pear folder screenshot

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

C:\Users\Acer\AppData\Roaming\PEAR>pear -v
Commands:
build                  Build an Extension From C Source
bundle                 Unpacks a Pecl Package
channel-add            Add a Channel
channel-alias          Specify an alias to a channel name
channel-delete         Remove a Channel From the List
channel-discover       Initialize a Channel from its server
channel-info           Retrieve Information on a Channel
channel-login          Connects and authenticates to remote channel server
channel-logout         Logs out from the remote channel server
channel-update         Update an Existing Channel
clear-cache            Clear Web Services Cache
config-create          Create a Default configuration file
config-get             Show One Setting
config-help            Show Information About Setting
config-set             Change Setting
config-show            Show All Settings
convert                Convert a package.xml 1.0 to package.xml 2.0 format
cvsdiff                Run a "cvs diff" for all files in a package
cvstag                 Set CVS Release Tag
download               Download Package
download-all           Downloads each available package from the default channel

info                   Display information about a package
install                Install Package
list                   List Installed Packages In The Default Channel
list-all               List All Packages
list-channels          List Available Channels
list-files             List Files In Installed Package
list-upgrades          List Available Upgrades
login                  Connects and authenticates to remote server [Deprecated i
n favor of channel-login]
logout                 Logs out from the remote server [Deprecated in favor of c
hannel-logout]
makerpm                Builds an RPM spec file from a PEAR package
package                Build Package
package-dependencies   Show package dependencies
package-validate       Validate Package Consistency
pickle                 Build PECL Package
remote-info            Information About Remote Packages
remote-list            List Remote Packages
run-scripts            Run Post-Install Scripts bundled with a package
run-tests              Run Regression Tests
search                 Search remote package database
shell-test             Shell Script Test
sign                   Sign a package distribution file
svntag                 Set SVN Release Tag
uninstall              Un-install Package
update-channels        Update the Channel List
upgrade                Upgrade Package
upgrade-all            Upgrade All Packages [Deprecated in favor of calling upgr
ade with no parameters]
Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help <command>" to get the help for the specified command.

C:\Users\Acer\AppData\Roaming\PEAR>



after putting in path and restarting nusphere phped ide


C:\wamp\www\phpvqp3_scripts\ch14>pear -v
'pear' is not recognized as an internal or external command,
operable program or batch file.
Avatar of rgb192

ASKER

Thank you
works after restart of computer

similar question is getting phpunit to run

does phpunit need to be in path

https://www.experts-exchange.com/questions/28394532/how-can-I-run-phpunit-from-anywhere-how-to-include-in-windows-path.html