Solved

pear and php in windows7 path

Posted on 2014-03-21
7
587 Views
Last Modified: 2014-03-21
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
0
Comment
Question by:rgb192
  • 4
  • 3
7 Comments
 
LVL 30

Expert Comment

by:Marco Gasi
ID: 39945188
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
0
 

Author Comment

by:rgb192
ID: 39946111
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>
0
 
LVL 30

Expert Comment

by:Marco Gasi
ID: 39946150
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:\?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:rgb192
ID: 39946170
C:\Users\Acer\AppData\Roaming\PEAR

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

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




and this is pear folder screenshot

pear-folder
0
 
LVL 30

Accepted Solution

by:
Marco Gasi earned 500 total points
ID: 39946233
Have you putted this (C:\Users\Acer\AppData\Roaming\PEAR) in system path?
0
 

Author Comment

by:rgb192
ID: 39946251
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.
0
 

Author Closing Comment

by:rgb192
ID: 39946312
Thank you
works after restart of computer

similar question is getting phpunit to run

does phpunit need to be in path

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28394532.html
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now